PageRenderTime 23ms queryTime 40ms sortTime 0ms getByIdsTime 64ms findMatchingLines 104ms

100+ results results for 'regex uuid lang:go' (23 ms)

Not the results you expected?
rfc4122_test.go https://gitlab.com/CORP-RESELLER/amazon-ssm-agent | Go | 209 lines
                    
29	}
                    
30	if !parseUUIDRegex.MatchString(u.String()) {
                    
31		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
49	}
                    
50	if !parseUUIDRegex.MatchString(u.String()) {
                    
51		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
69	if Equal(u4, u) {
                    
70		t.Errorf("Expected UUIDs generated with the same namespace and different names to be different but got: %s and %s", u4, u)
                    
71	}
                    
97	}
                    
98	if !parseUUIDRegex.MatchString(u.String()) {
                    
99		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
117	}
                    
118	if !parseUUIDRegex.MatchString(u.String()) {
                    
119		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
                
rfc4122_test.go https://gitlab.com/vectorci/amazon-ssm-agent | Go | 209 lines
                    
29	}
                    
30	if !parseUUIDRegex.MatchString(u.String()) {
                    
31		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
49	}
                    
50	if !parseUUIDRegex.MatchString(u.String()) {
                    
51		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
69	if Equal(u4, u) {
                    
70		t.Errorf("Expected UUIDs generated with the same namespace and different names to be different but got: %s and %s", u4, u)
                    
71	}
                    
97	}
                    
98	if !parseUUIDRegex.MatchString(u.String()) {
                    
99		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
117	}
                    
118	if !parseUUIDRegex.MatchString(u.String()) {
                    
119		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
                
rfc4122_test.go https://gitlab.com/github-cloud-corp/amazon-ssm-agent | Go | 209 lines
                    
29	}
                    
30	if !parseUUIDRegex.MatchString(u.String()) {
                    
31		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
49	}
                    
50	if !parseUUIDRegex.MatchString(u.String()) {
                    
51		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
69	if Equal(u4, u) {
                    
70		t.Errorf("Expected UUIDs generated with the same namespace and different names to be different but got: %s and %s", u4, u)
                    
71	}
                    
97	}
                    
98	if !parseUUIDRegex.MatchString(u.String()) {
                    
99		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
117	}
                    
118	if !parseUUIDRegex.MatchString(u.String()) {
                    
119		t.Errorf("Expected string representation to be valid, given: %s", u.String())
                    
                
azure.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 301 lines
                    
23	"net/http"
                    
24	"regexp"
                    
25	"strconv"
                    
165	const resourceIDPatternText = `(?i)subscriptions/(.+)/resourceGroups/(.+)/providers/(.+?)/(.+?)/(.+)`
                    
166	resourceIDPattern := regexp.MustCompile(resourceIDPatternText)
                    
167	match := resourceIDPattern.FindStringSubmatch(resourceID)
                    
211// WithReturningClientID returns a PrepareDecorator that adds an HTTP extension header of
                    
212// x-ms-client-request-id whose value is the passed, undecorated UUID (e.g.,
                    
213// "0F39878C-5F76-4DB8-A25D-61D2C193C3CA"). It also sets the x-ms-return-client-request-id
                    
213// "0F39878C-5F76-4DB8-A25D-61D2C193C3CA"). It also sets the x-ms-return-client-request-id
                    
214// header to true such that UUID accompanies the http.Response.
                    
215func WithReturningClientID(uuid string) autorest.PrepareDecorator {
                    
216	preparer := autorest.CreatePreparer(
                    
217		WithClientID(uuid),
                    
218		WithReturnClientID(true))
                    
                
host_path.go https://gitlab.com/vectorci/kubernetes | Go | 308 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
262func (r *hostPathProvisioner) NewPersistentVolumeTemplate() (*api.PersistentVolume, error) {
                    
263	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", util.NewUUID())
                    
264	return &api.PersistentVolume{
                    
302func (r *hostPathDeleter) Delete() error {
                    
303	regexp := regexp.MustCompile("/tmp/.+")
                    
304	if !regexp.MatchString(r.GetPath()) {
                    
                
host_path.go https://gitlab.com/hasura/kubernetes | Go | 308 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
262func (r *hostPathProvisioner) NewPersistentVolumeTemplate() (*api.PersistentVolume, error) {
                    
263	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", util.NewUUID())
                    
264	return &api.PersistentVolume{
                    
302func (r *hostPathDeleter) Delete() error {
                    
303	regexp := regexp.MustCompile("/tmp/.+")
                    
304	if !regexp.MatchString(r.GetPath()) {
                    
                
host_path.go https://gitlab.com/jasonbishop/contrib | Go | 311 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
265func (r *hostPathProvisioner) NewPersistentVolumeTemplate() (*api.PersistentVolume, error) {
                    
266	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", util.NewUUID())
                    
267	return &api.PersistentVolume{
                    
305func (r *hostPathDeleter) Delete() error {
                    
306	regexp := regexp.MustCompile("/tmp/.+")
                    
307	if !regexp.MatchString(r.GetPath()) {
                    
                
host_path.go https://gitlab.com/cybok/kubernetes | Go | 308 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
262func (r *hostPathProvisioner) NewPersistentVolumeTemplate() (*api.PersistentVolume, error) {
                    
263	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", util.NewUUID())
                    
264	return &api.PersistentVolume{
                    
302func (r *hostPathDeleter) Delete() error {
                    
303	regexp := regexp.MustCompile("/tmp/.+")
                    
304	if !regexp.MatchString(r.GetPath()) {
                    
                
host_path.go https://gitlab.com/CORP-RESELLER/kubernetes | Go | 325 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
25	"k8s.io/kubernetes/pkg/types"
                    
26	"k8s.io/kubernetes/pkg/util/uuid"
                    
27	"k8s.io/kubernetes/pkg/volume"
                    
264func (r *hostPathProvisioner) Provision() (*api.PersistentVolume, error) {
                    
265	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", uuid.NewUUID())
                    
266
                    
307func (r *hostPathDeleter) Delete() error {
                    
308	regexp := regexp.MustCompile("/tmp/.+")
                    
309	if !regexp.MatchString(r.GetPath()) {
                    
                
downwardapi_volume.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 474 lines
                    
61	framework.ConformanceIt("should set DefaultMode on files ", func() {
                    
62		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
63		defaultMode := int32(0400)
                    
76	framework.ConformanceIt("should set mode on item file ", func() {
                    
77		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
78		mode := int32(0400)
                    
186	framework.ConformanceIt("should provide container's cpu limit ", func() {
                    
187		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
188		pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/cpu_limit")
                    
214	framework.ConformanceIt("should provide container's cpu request ", func() {
                    
215		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
216		pod := downwardAPIVolumeForContainerResources(podName, "/etc/podinfo/cpu_request")
                    
256	framework.ConformanceIt("should provide node allocatable (memory) as default memory limit if the limit is not set ", func() {
                    
257		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
258		pod := downwardAPIVolumeForDefaultContainerResources(podName, "/etc/podinfo/memory_limit")
                    
                
results.go https://gitlab.com/vectorci/kubernetes | Go | 316 lines
                    
59	Name string `mapstructure:"name" json:"name"`
                    
60	// Specifies the request URL this rule should match for this origin to be used. Regex is supported.
                    
61	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
124	Name string `mapstructure:"name" json:"name"`
                    
125	// Specifies the request URL this rule should match for this TTL to be used. Regex is supported.
                    
126	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
203	// Specifies the service ID that represents distributed content. The value is
                    
204	// a UUID, such as 96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0, that is generated by the server.
                    
205	ID string `mapstructure:"id"`
                    
                
sandbox_decoder.go https://gitlab.com/karouf/heka | Go | 383 lines
                    
22	"path/filepath"
                    
23	"regexp"
                    
24	"sync"
                    
32	"github.com/mozilla-services/heka/sandbox/lua"
                    
33	"github.com/pborman/uuid"
                    
34)
                    
60func (s *SandboxDecoder) SetName(name string) {
                    
61	re := regexp.MustCompile("\\W")
                    
62	s.name = re.ReplaceAllString(name, "_")
                    
225			if s.pack.Message.Uuid == nil {
                    
226				s.pack.Message.SetUuid(uuid.NewRandom()) // UUID should always be unique
                    
227				s.pack.TrustMsgBytes = false
                    
                
results.go https://gitlab.com/shiphitchcock3/kubernetes | Go | 316 lines
                    
59	Name string `mapstructure:"name" json:"name"`
                    
60	// Specifies the request URL this rule should match for this origin to be used. Regex is supported.
                    
61	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
124	Name string `mapstructure:"name" json:"name"`
                    
125	// Specifies the request URL this rule should match for this TTL to be used. Regex is supported.
                    
126	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
203	// Specifies the service ID that represents distributed content. The value is
                    
204	// a UUID, such as 96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0, that is generated by the server.
                    
205	ID string `mapstructure:"id"`
                    
                
sandbox_decoder.go https://gitlab.com/wilane/heka | Go | 383 lines
                    
22	"path/filepath"
                    
23	"regexp"
                    
24	"sync"
                    
32	"github.com/mozilla-services/heka/sandbox/lua"
                    
33	"github.com/pborman/uuid"
                    
34)
                    
60func (s *SandboxDecoder) SetName(name string) {
                    
61	re := regexp.MustCompile("\\W")
                    
62	s.name = re.ReplaceAllString(name, "_")
                    
225			if s.pack.Message.Uuid == nil {
                    
226				s.pack.Message.SetUuid(uuid.NewRandom()) // UUID should always be unique
                    
227				s.pack.TrustMsgBytes = false
                    
                
results.go https://gitlab.com/Red54/machine | Go | 316 lines
                    
59	Name string `mapstructure:"name" json:"name"`
                    
60	// Specifies the request URL this rule should match for this origin to be used. Regex is supported.
                    
61	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
124	Name string `mapstructure:"name" json:"name"`
                    
125	// Specifies the request URL this rule should match for this TTL to be used. Regex is supported.
                    
126	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
203	// Specifies the service ID that represents distributed content. The value is
                    
204	// a UUID, such as 96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0, that is generated by the server.
                    
205	ID string `mapstructure:"id"`
                    
                
results.go https://gitlab.com/cybok/kubernetes | Go | 316 lines
                    
59	Name string `mapstructure:"name" json:"name"`
                    
60	// Specifies the request URL this rule should match for this origin to be used. Regex is supported.
                    
61	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
124	Name string `mapstructure:"name" json:"name"`
                    
125	// Specifies the request URL this rule should match for this TTL to be used. Regex is supported.
                    
126	RequestURL string `mapstructure:"request_url" json:"request_url"`
                    
203	// Specifies the service ID that represents distributed content. The value is
                    
204	// a UUID, such as 96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0, that is generated by the server.
                    
205	ID string `mapstructure:"id"`
                    
                
validation.go https://gitlab.com/unofficial-mirrors/openshift-origin | Go | 163 lines
                    
4	"fmt"
                    
5	"regexp"
                    
6
                    
14
                    
15var ParameterNameRegexp = regexp.MustCompile(`^[a-zA-Z0-9_]+$`)
                    
16
                    
22	}
                    
23	if !ParameterNameRegexp.MatchString(param.Name) {
                    
24		allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), param.Name, fmt.Sprintf("does not match %v", ParameterNameRegexp)))
                    
129
                    
130var uuidRegex = regexp.MustCompile("^(?i)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$")
                    
131
                    
132func nameIsUUID(name string, prefix bool) []string {
                    
133	if uuidRegex.MatchString(name) {
                    
134		return nil
                    
                
azure.go https://bitbucket.org/Jake-Qu/kubernetes-mirror.git | Go | 301 lines
                    
23	"net/http"
                    
24	"regexp"
                    
25	"strconv"
                    
165	const resourceIDPatternText = `(?i)subscriptions/(.+)/resourceGroups/(.+)/providers/(.+?)/(.+?)/(.+)`
                    
166	resourceIDPattern := regexp.MustCompile(resourceIDPatternText)
                    
167	match := resourceIDPattern.FindStringSubmatch(resourceID)
                    
211// WithReturningClientID returns a PrepareDecorator that adds an HTTP extension header of
                    
212// x-ms-client-request-id whose value is the passed, undecorated UUID (e.g.,
                    
213// "0F39878C-5F76-4DB8-A25D-61D2C193C3CA"). It also sets the x-ms-return-client-request-id
                    
213// "0F39878C-5F76-4DB8-A25D-61D2C193C3CA"). It also sets the x-ms-return-client-request-id
                    
214// header to true such that UUID accompanies the http.Response.
                    
215func WithReturningClientID(uuid string) autorest.PrepareDecorator {
                    
216	preparer := autorest.CreatePreparer(
                    
217		WithClientID(uuid),
                    
218		WithReturnClientID(true))
                    
                
host_path.go https://gitlab.com/leetchang/kubernetes | Go | 298 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
248func (r *hostPathCreater) Create() (*api.PersistentVolume, error) {
                    
249	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", util.NewUUID())
                    
250	err := os.MkdirAll(fullpath, 0750)
                    
292func (r *hostPathDeleter) Delete() error {
                    
293	regexp := regexp.MustCompile("/tmp/.+")
                    
294	if !regexp.MatchString(r.GetPath()) {
                    
                
openstack.go https://gitlab.com/github-cloud-corporation/kubernetes | Go | 443 lines
                    
25	"net/http"
                    
26	"regexp"
                    
27	"strings"
                    
153
                    
154// parseMetadataUUID reads JSON from OpenStack metadata server and parses
                    
155// instance ID out of it.
                    
156func parseMetadataUUID(jsonData []byte) (string, error) {
                    
157	// We should receive an object with { 'uuid': '<uuid>' } and couple of other
                    
158	// properties (which we ignore).
                    
159
                    
160	obj := struct{ UUID string }{}
                    
161	err := json.Unmarshal(jsonData, &obj)
                    
165
                    
166	uuid := obj.UUID
                    
167	if uuid == "" {
                    
                
openstack.go https://gitlab.com/admin-github-cloud/kubernetes | Go | 443 lines
                    
25	"net/http"
                    
26	"regexp"
                    
27	"strings"
                    
153
                    
154// parseMetadataUUID reads JSON from OpenStack metadata server and parses
                    
155// instance ID out of it.
                    
156func parseMetadataUUID(jsonData []byte) (string, error) {
                    
157	// We should receive an object with { 'uuid': '<uuid>' } and couple of other
                    
158	// properties (which we ignore).
                    
159
                    
160	obj := struct{ UUID string }{}
                    
161	err := json.Unmarshal(jsonData, &obj)
                    
165
                    
166	uuid := obj.UUID
                    
167	if uuid == "" {
                    
                
operators_test.go https://bitbucket.org/asardak/atm-store.git | Go | 231 lines
                    
69		{"NotIn", NotIn(f("name"), "Joe", "Jane"), 1},
                    
70		{"MatchRegexCase upper", MatchRegexCase(f("name"), "J.*"), 2},
                    
71		{"MatchRegexCase lower", MatchRegexCase(f("name"), "j.*"), 0},
                    
71		{"MatchRegexCase lower", MatchRegexCase(f("name"), "j.*"), 0},
                    
72		{"MatchRegex upper", MatchRegex(f("name"), "J.*"), 2},
                    
73		{"MatchRegex lower", MatchRegex(f("name"), "j.*"), 2},
                    
73		{"MatchRegex lower", MatchRegex(f("name"), "j.*"), 2},
                    
74		{"NotMatchRegexCase upper", NotMatchRegexCase(f("name"), "J.*"), 1},
                    
75		{"NotMatchRegexCase lower", NotMatchRegexCase(f("name"), "j.*"), 3},
                    
75		{"NotMatchRegexCase lower", NotMatchRegexCase(f("name"), "j.*"), 3},
                    
76		{"NotMatchRegex upper", NotMatchRegex(f("name"), "J.*"), 1},
                    
77		{"NotMatchRegex lower", NotMatchRegex(f("name"), "j.*"), 1},
                    
93	s.create(`CREATE TABLE slices (
                    
94		id uuid PRIMARY KEY,
                    
95		elems bigint[]
                    
                
utils.go https://gitlab.com/apachipa/docker-1 | Go | 352 lines
                    
8	"os/exec"
                    
9	"regexp"
                    
10	"runtime"
                    
13
                    
14	"github.com/pborman/uuid"
                    
15)
                    
40
                    
41	id := uuid.New()
                    
42	joinedArgs := strings.Join(cmd.Args, " ")
                    
190// matches (+1) or (-1)
                    
191var referenceCountRegex = regexp.MustCompile("\\(([+-]\\d+?)\\)")
                    
192
                    
193func parseReferenceCount(field string) (int, error) {
                    
194	matches := referenceCountRegex.FindStringSubmatch(field)
                    
195	if matches == nil {
                    
                
utils.go https://gitlab.com/vectorci/docker-1 | Go | 352 lines
                    
8	"os/exec"
                    
9	"regexp"
                    
10	"runtime"
                    
13
                    
14	"github.com/pborman/uuid"
                    
15)
                    
40
                    
41	id := uuid.New()
                    
42	joinedArgs := strings.Join(cmd.Args, " ")
                    
190// matches (+1) or (-1)
                    
191var referenceCountRegex = regexp.MustCompile("\\(([+-]\\d+?)\\)")
                    
192
                    
193func parseReferenceCount(field string) (int, error) {
                    
194	matches := referenceCountRegex.FindStringSubmatch(field)
                    
195	if matches == nil {
                    
                
pods.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 241 lines
                    
22	"net/http"
                    
23	"regexp"
                    
24	"strconv"
                    
30	"k8s.io/apimachinery/pkg/labels"
                    
31	"k8s.io/apimachinery/pkg/util/uuid"
                    
32	"k8s.io/apimachinery/pkg/util/wait"
                    
51			By("creating the pod")
                    
52			name := "pod-submit-remove-" + string(uuid.NewUUID())
                    
53			value := strconv.Itoa(time.Now().Nanosecond())
                    
123			output := string(buf[:n])
                    
124			proxyRegexp := regexp.MustCompile("Starting to serve on 127.0.0.1:([0-9]+)")
                    
125			match := proxyRegexp.FindStringSubmatch(output)
                    
203			By("creating the pod")
                    
204			name := "pod-qos-class-" + string(uuid.NewUUID())
                    
205			pod := &v1.Pod{
                    
                
utils.go https://gitlab.com/prima101112/test-quiz | Go | 264 lines
                    
7	"reflect"
                    
8	"regexp"
                    
9	"runtime"
                    
25// Copied from golint
                    
26var commonInitialisms = []string{"API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "LHS", "QPS", "RAM", "RHS", "RPC", "SLA", "SMTP", "SSH", "TLS", "TTL", "UI", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XSRF", "XSS"}
                    
27var commonInitialismsReplacer *strings.Replacer
                    
173		_, file, line, ok := runtime.Caller(i)
                    
174		if ok && (!regexp.MustCompile(`jinzhu/gorm/.*.go`).MatchString(file) || regexp.MustCompile(`jinzhu/gorm/.*test.go`).MatchString(file)) {
                    
175			return fmt.Sprintf("%v:%v", file, line)
                    
                
utils.go https://gitlab.com/0072016/0072016-docker | Go | 352 lines
                    
8	"os/exec"
                    
9	"regexp"
                    
10	"runtime"
                    
13
                    
14	"github.com/pborman/uuid"
                    
15)
                    
40
                    
41	id := uuid.New()
                    
42	joinedArgs := strings.Join(cmd.Args, " ")
                    
190// matches (+1) or (-1)
                    
191var referenceCountRegex = regexp.MustCompile("\\(([+-]\\d+?)\\)")
                    
192
                    
193func parseReferenceCount(field string) (int, error) {
                    
194	matches := referenceCountRegex.FindStringSubmatch(field)
                    
195	if matches == nil {
                    
                
host_path_test.go https://gitlab.com/0072016/Facebook-php | Go | 273 lines
                    
92func TestDeleter(t *testing.T) {
                    
93	// Deleter has a hard-coded regex for "/tmp".
                    
94	tempPath := fmt.Sprintf("/tmp/hostpath/%s", util.NewUUID())
                    
150func TestProvisioner(t *testing.T) {
                    
151	tempPath := fmt.Sprintf("/tmp/hostpath/%s", util.NewUUID())
                    
152	defer os.RemoveAll(tempPath)
                    
                
prepared_query.go https://github.com/backstage/backstage.git | Go | 353 lines
                    
4	"fmt"
                    
5	"regexp"
                    
6
                    
11
                    
12// validUUID is used to check if a given string looks like a UUID
                    
13var validUUID = regexp.MustCompile(`(?i)^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$`)
                    
14
                    
15// isUUID returns true if the given string is a valid UUID.
                    
16func isUUID(str string) bool {
                    
16func isUUID(str string) bool {
                    
17	return validUUID.MatchString(str)
                    
18}
                    
148	// queries from ever making it into the state store. Note that we have
                    
149	// to see if the name looks like a UUID before checking since the UUID
                    
150	// index will complain if we look up something that's not formatted
                    
                
utils.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 210 lines
                    
21	"path/filepath"
                    
22	"regexp"
                    
23	"strings"
                    
53
                    
54// formatVirtualDiskUUID removes any spaces and hyphens in UUID
                    
55// Example UUID input is 42375390-71f9-43a3-a770-56803bcd7baa and output after format is 4237539071f943a3a77056803bcd7baa
                    
55// Example UUID input is 42375390-71f9-43a3-a770-56803bcd7baa and output after format is 4237539071f943a3a77056803bcd7baa
                    
56func formatVirtualDiskUUID(uuid string) string {
                    
57	uuidwithNoSpace := strings.Replace(uuid, " ", "", -1)
                    
57	uuidwithNoSpace := strings.Replace(uuid, " ", "", -1)
                    
58	uuidWithNoHypens := strings.Replace(uuidwithNoSpace, "-", "", -1)
                    
59	return strings.ToLower(uuidWithNoHypens)
                    
159
                    
160//IsValidUUID checks if the string is a valid UUID.
                    
161func IsValidUUID(uuid string) bool {
                    
                
control.go https://gitlab.com/craig6/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/marc.par10/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/imnomak/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
host_path.go https://gitlab.com/github-cloud-corporation/kubernetes | Go | 329 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
25	"k8s.io/kubernetes/pkg/types"
                    
26	"k8s.io/kubernetes/pkg/util/uuid"
                    
27	"k8s.io/kubernetes/pkg/volume"
                    
268func (r *hostPathProvisioner) Provision() (*api.PersistentVolume, error) {
                    
269	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", uuid.NewUUID())
                    
270
                    
311func (r *hostPathDeleter) Delete() error {
                    
312	regexp := regexp.MustCompile("/tmp/.+")
                    
313	if !regexp.MatchString(r.GetPath()) {
                    
                
host_path.go https://gitlab.com/admin-github-cloud/kubernetes | Go | 329 lines
                    
21	"os"
                    
22	"regexp"
                    
23
                    
25	"k8s.io/kubernetes/pkg/types"
                    
26	"k8s.io/kubernetes/pkg/util/uuid"
                    
27	"k8s.io/kubernetes/pkg/volume"
                    
268func (r *hostPathProvisioner) Provision() (*api.PersistentVolume, error) {
                    
269	fullpath := fmt.Sprintf("/tmp/hostpath_pv/%s", uuid.NewUUID())
                    
270
                    
311func (r *hostPathDeleter) Delete() error {
                    
312	regexp := regexp.MustCompile("/tmp/.+")
                    
313	if !regexp.MatchString(r.GetPath()) {
                    
                
host_path_test.go https://gitlab.com/github-cloud-corporation/kubernetes | Go | 275 lines
                    
30	"k8s.io/kubernetes/pkg/util"
                    
31	"k8s.io/kubernetes/pkg/util/uuid"
                    
32	"k8s.io/kubernetes/pkg/volume"
                    
94	// Deleter has a hard-coded regex for "/tmp".
                    
95	tempPath := fmt.Sprintf("/tmp/hostpath/%s", uuid.NewUUID())
                    
96	defer os.RemoveAll(tempPath)
                    
151func TestProvisioner(t *testing.T) {
                    
152	tempPath := fmt.Sprintf("/tmp/hostpath/%s", uuid.NewUUID())
                    
153	defer os.RemoveAll(tempPath)
                    
                
host_path_test.go https://gitlab.com/admin-github-cloud/kubernetes | Go | 275 lines
                    
30	"k8s.io/kubernetes/pkg/util"
                    
31	"k8s.io/kubernetes/pkg/util/uuid"
                    
32	"k8s.io/kubernetes/pkg/volume"
                    
94	// Deleter has a hard-coded regex for "/tmp".
                    
95	tempPath := fmt.Sprintf("/tmp/hostpath/%s", uuid.NewUUID())
                    
96	defer os.RemoveAll(tempPath)
                    
151func TestProvisioner(t *testing.T) {
                    
152	tempPath := fmt.Sprintf("/tmp/hostpath/%s", uuid.NewUUID())
                    
153	defer os.RemoveAll(tempPath)
                    
                
control.go https://gitlab.com/atsaloli/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/zhaojun12/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/zyfran/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/RioKierkels/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/davefinster/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/aaronarduino/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/vilhelmen/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/efendingk1/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/rawkode/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
config.go https://gitlab.com/zanderwong/lantern | Go | 374 lines
                    
9	"path/filepath"
                    
10	"regexp"
                    
11	"sort"
                    
13
                    
14	"code.google.com/p/go-uuid/uuid"
                    
15
                    
38	m   *yamlconf.Manager
                    
39	r   = regexp.MustCompile("\\d+\\.\\d+")
                    
40)
                    
333		// MACs is trivially mapped, especially since the salt would be known
                    
334		cfg.Client.DeviceID = base64.StdEncoding.EncodeToString(uuid.NodeID())
                    
335	}
                    
                
backend_test.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 158 lines
                    
21	"reflect"
                    
22	"regexp"
                    
23	"testing"
                    
25
                    
26	"github.com/pborman/uuid"
                    
27
                    
47			&auditinternal.Event{
                    
48				AuditID: types.UID(uuid.NewRandom().String()),
                    
49			},
                    
61				RequestReceivedTimestamp: metav1.NewMicroTime(time.Now()),
                    
62				AuditID:                  types.UID(uuid.NewRandom().String()),
                    
63				Stage:                    auditinternal.StageRequestReceived,
                    
79			&auditinternal.Event{
                    
80				AuditID: types.UID(uuid.NewRandom().String()),
                    
81				Level:   auditinternal.LevelMetadata,
                    
                
list_test.go https://github.com/dotcloud/docker.git | Go | 144 lines
                    
12	"github.com/docker/docker/image"
                    
13	"github.com/google/uuid"
                    
14	"github.com/opencontainers/go-digest"
                    
37	var (
                    
38		id              = uuid.New().String()
                    
39		computedImageID = digest.FromString(id)
                    
109
                    
110	// moby/moby #37453 - ^ regex not working due to prefix slash
                    
111	// not being stripped
                    
                
control.go https://gitlab.com/marcoshenrich/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
format_checkers.go https://bitbucket.org/RusAlex/cryptocoins.git | Go | 250 lines
                    
62
                    
63	// UUIDFormatChecker validates a UUID is in the correct format
                    
64	UUIDFormatChecker struct{}
                    
65
                    
66	// RegexFormatChecker validates a regex is in the correct format
                    
67	RegexFormatChecker struct{}
                    
81			"uri-reference": URIReferenceFormatChecker{},
                    
82			"uuid":      	 UUIDFormatChecker{},
                    
83			"regex":     	 RegexFormatChecker{},
                    
87	// Regex credit: https://github.com/asaskevich/govalidator
                    
88	rxEmail = regexp.MustCompile("^(((([a-zA-Z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])+(\\.([a-zA-Z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])|(\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-zA-Z]|\\d|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])|(([a-zA-Z]|\\d|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])([a-zA-Z]|\\d|-|\\.|_|~|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])*([a-zA-Z]|\\d|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])))\\.)+(([a-zA-Z]|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])|(([a-zA-Z]|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])([a-zA-Z]|\\d|-|\\.|_|~|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])*([a-zA-Z]|[\\x{00A0}-\\x{D7FF}\\x{F900}-\\x{FDCF}\\x{FDF0}-\\x{FFEF}])))\\.?$")
                    
89
                    
92
                    
93	rxUUID = regexp.MustCompile("^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")
                    
94)
                    
                
control.go https://gitlab.com/minhajuddin/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
handler.go https://gitlab.com/0072016/docker-registry | Go | 235 lines
                    
9	"path/filepath"
                    
10	"regexp"
                    
11	"time"
                    
15	Method  string
                    
16	Regexp  *regexp.Regexp
                    
17	Handler func(http.ResponseWriter, *http.Request, [][]string)
                    
19
                    
20func GenerateUUID() string {
                    
21	f, _ := os.Open("/dev/urandom")
                    
185	}
                    
186	h.Mappings = append(h.Mappings, &Mapping{t, regexp.MustCompile("/v(\\d+)/" + re), f})
                    
187}
                    
203	started := time.Now()
                    
204	uuid := GenerateUUID()
                    
205	w.Header().Add("X-Request-ID", uuid)
                    
                
control.go https://gitlab.com/krkl/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
batch_controller.go https://gitlab.com/achedeuzot/fhir | Go | 326 lines
                    
7	"reflect"
                    
8	"regexp"
                    
9	"sort"
                    
94			// We need to process conditionals referencing temp IDs in a second pass, so skip them here
                    
95			if strings.Contains(entry.Request.Url, "urn:uuid:") {
                    
96				continue
                    
110		if entry.Request.Method == "PUT" && isConditional(entry) {
                    
111			// Use a regex to swap out the temp IDs with the new IDs
                    
112			for oldID, ref := range refMap {
                    
112			for oldID, ref := range refMap {
                    
113				re := regexp.MustCompile("([=,])" + oldID + "(&|,|$)")
                    
114				entry.Request.Url = re.ReplaceAllString(entry.Request.Url, "${1}"+ref.Reference+"${2}")
                    
116
                    
117			if strings.Contains(entry.Request.Url, "urn:uuid:") {
                    
118				c.AbortWithError(http.StatusNotImplemented,
                    
                
upnp.go https://gitlab.com/shinvdu/syncthing | Go | 440 lines
                    
22	"net/url"
                    
23	"regexp"
                    
24	"runtime"
                    
92			if existingResult.ID() == result.ID() {
                    
93				l.Debugf("Skipping duplicate result %s with services:", result.uuid)
                    
94				for _, service := range result.services {
                    
203
                    
204	deviceUUID := strings.TrimPrefix(strings.Split(deviceUSN, "::")[0], "uuid:")
                    
205	matched, err := regexp.MatchString("[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", deviceUUID)
                    
206	if !matched {
                    
207		l.Infoln("Invalid IGD response: invalid device UUID", deviceUUID, "(continuing anyway)")
                    
208	}
                    
240	return IGD{
                    
241		uuid:           deviceUUID,
                    
242		friendlyName:   upnpRoot.Device.FriendlyName,
                    
                
checks_test.go https://gitlab.com/gitlab-org/gitaly | Go | 554 lines
                    
14
                    
15	"github.com/google/uuid"
                    
16	"github.com/stretchr/testify/assert"
                    
218			if tc.expectErr {
                    
219				assert.Regexp(t, "^the following nodes are not healthy: .+", err)
                    
220				return
                    
369			setup: func(t *testing.T, db testdb.DB) config.DB {
                    
370				role := "praefect_ro_role_" + strings.ReplaceAll(uuid.New().String(), "-", "")
                    
371
                    
                
patterns.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 83 lines
                    
13	UUID5          string = "^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                    
14	UUID           string = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    
15	Alpha          string = "^[a-zA-Z]+$"
                    
52	rxEmail          = regexp.MustCompile(Email)
                    
53	rxCreditCard     = regexp.MustCompile(CreditCard)
                    
54	rxISBN10         = regexp.MustCompile(ISBN10)
                    
55	rxISBN13         = regexp.MustCompile(ISBN13)
                    
56	rxUUID3          = regexp.MustCompile(UUID3)
                    
57	rxUUID4          = regexp.MustCompile(UUID4)
                    
58	rxUUID5          = regexp.MustCompile(UUID5)
                    
59	rxUUID           = regexp.MustCompile(UUID)
                    
60	rxAlpha          = regexp.MustCompile(Alpha)
                    
64	rxFloat          = regexp.MustCompile(Float)
                    
65	rxHexadecimal    = regexp.MustCompile(Hexadecimal)
                    
66	rxHexcolor       = regexp.MustCompile(Hexcolor)
                    
                
types.go git://github.com/eclark/exl.git | Go | 550 lines
                    
29	NullType
                    
30	RegexType
                    
31	dbPointerType
                    
47	OldBinaryType
                    
48	UUIDType
                    
49	MD5Type  BinSubtype = 5
                    
340
                    
341type Regex struct {
                    
342	Pattern string
                    
345
                    
346func (re *Regex) WriteTo(w io.Writer) (n int64, err os.Error) {
                    
347	return write(w, []byte(re.Pattern), byte(0), []byte(re.Options), byte(0))
                    
349
                    
350func (re *Regex) ReadFrom(r io.Reader) (n int64, err os.Error) {
                    
351	var v byte
                    
                
regexes.go https://gitlab.com/nidhomriza/handbook-tes | Go | 97 lines
                    
70	iSBN13Regex                = regexp.MustCompile(iSBN13RegexString)
                    
71	uUID3Regex                 = regexp.MustCompile(uUID3RegexString)
                    
72	uUID4Regex                 = regexp.MustCompile(uUID4RegexString)
                    
72	uUID4Regex                 = regexp.MustCompile(uUID4RegexString)
                    
73	uUID5Regex                 = regexp.MustCompile(uUID5RegexString)
                    
74	uUIDRegex                  = regexp.MustCompile(uUIDRegexString)
                    
74	uUIDRegex                  = regexp.MustCompile(uUIDRegexString)
                    
75	uUID3RFC4122Regex          = regexp.MustCompile(uUID3RFC4122RegexString)
                    
76	uUID4RFC4122Regex          = regexp.MustCompile(uUID4RFC4122RegexString)
                    
77	uUID5RFC4122Regex          = regexp.MustCompile(uUID5RFC4122RegexString)
                    
78	uUIDRFC4122Regex           = regexp.MustCompile(uUIDRFC4122RegexString)
                    
79	aSCIIRegex                 = regexp.MustCompile(aSCIIRegexString)
                    
85	sSNRegex                   = regexp.MustCompile(sSNRegexString)
                    
86	hostnameRegexRFC952        = regexp.MustCompile(hostnameRegexStringRFC952)
                    
87	hostnameRegexRFC1123       = regexp.MustCompile(hostnameRegexStringRFC1123)
                    
                
downwardapi_volume.go https://gitlab.com/github-cloud-corporation/kubernetes | Go | 411 lines
                    
50	It("should set DefaultMode on files [Conformance]", func() {
                    
51		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
52		defaultMode := int32(0400)
                    
60	It("should set mode on item file [Conformance]", func() {
                    
61		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
62		mode := int32(0400)
                    
70	It("should provide podname as non-root with fsgroup [Feature:FSGroup]", func() {
                    
71		podName := "metadata-volume-" + string(uuid.NewUUID())
                    
72		uid := int64(1001)
                    
119		annotations["builder"] = "bar"
                    
120		podName := "annotationupdate" + string(uuid.NewUUID())
                    
121		pod := downwardAPIVolumePodForUpdateTest(podName, map[string]string{}, annotations, "/etc/annotations")
                    
159	It("should provide container's memory limit", func() {
                    
160		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
161		pod := downwardAPIVolumeForContainerResources(podName, "/etc/memory_limit")
                    
                
downwardapi_volume.go https://gitlab.com/admin-github-cloud/kubernetes | Go | 411 lines
                    
50	It("should set DefaultMode on files [Conformance]", func() {
                    
51		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
52		defaultMode := int32(0400)
                    
60	It("should set mode on item file [Conformance]", func() {
                    
61		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
62		mode := int32(0400)
                    
70	It("should provide podname as non-root with fsgroup [Feature:FSGroup]", func() {
                    
71		podName := "metadata-volume-" + string(uuid.NewUUID())
                    
72		uid := int64(1001)
                    
119		annotations["builder"] = "bar"
                    
120		podName := "annotationupdate" + string(uuid.NewUUID())
                    
121		pod := downwardAPIVolumePodForUpdateTest(podName, map[string]string{}, annotations, "/etc/annotations")
                    
159	It("should provide container's memory limit", func() {
                    
160		podName := "downwardapi-volume-" + string(uuid.NewUUID())
                    
161		pod := downwardAPIVolumeForContainerResources(podName, "/etc/memory_limit")
                    
                
patterns.go https://gitlab.com/github-cloud-corporation/kubernetes | Go | 83 lines
                    
13	UUID5          string = "^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                    
14	UUID           string = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    
15	Alpha          string = "^[a-zA-Z]+$"
                    
52	rxEmail          = regexp.MustCompile(Email)
                    
53	rxCreditCard     = regexp.MustCompile(CreditCard)
                    
54	rxISBN10         = regexp.MustCompile(ISBN10)
                    
55	rxISBN13         = regexp.MustCompile(ISBN13)
                    
56	rxUUID3          = regexp.MustCompile(UUID3)
                    
57	rxUUID4          = regexp.MustCompile(UUID4)
                    
58	rxUUID5          = regexp.MustCompile(UUID5)
                    
59	rxUUID           = regexp.MustCompile(UUID)
                    
60	rxAlpha          = regexp.MustCompile(Alpha)
                    
64	rxFloat          = regexp.MustCompile(Float)
                    
65	rxHexadecimal    = regexp.MustCompile(Hexadecimal)
                    
66	rxHexcolor       = regexp.MustCompile(Hexcolor)
                    
                
patterns.go https://gitlab.com/admin-github-cloud/kubernetes | Go | 83 lines
                    
13	UUID5          string = "^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                    
14	UUID           string = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    
15	Alpha          string = "^[a-zA-Z]+$"
                    
52	rxEmail          = regexp.MustCompile(Email)
                    
53	rxCreditCard     = regexp.MustCompile(CreditCard)
                    
54	rxISBN10         = regexp.MustCompile(ISBN10)
                    
55	rxISBN13         = regexp.MustCompile(ISBN13)
                    
56	rxUUID3          = regexp.MustCompile(UUID3)
                    
57	rxUUID4          = regexp.MustCompile(UUID4)
                    
58	rxUUID5          = regexp.MustCompile(UUID5)
                    
59	rxUUID           = regexp.MustCompile(UUID)
                    
60	rxAlpha          = regexp.MustCompile(Alpha)
                    
64	rxFloat          = regexp.MustCompile(Float)
                    
65	rxHexadecimal    = regexp.MustCompile(Hexadecimal)
                    
66	rxHexcolor       = regexp.MustCompile(Hexcolor)
                    
                
message_matcher.go https://gitlab.com/karouf/heka | Go | 245 lines
                    
72	switch stmt.field.tokenId {
                    
73	case VAR_UUID:
                    
74		return msg.GetUuidString()
                    
124	case OP_RE:
                    
125		if stmt.value.regexp != nil {
                    
126			return stmt.value.regexp.MatchString(s)
                    
132	case OP_NRE:
                    
133		if stmt.value.regexp != nil {
                    
134			return !stmt.value.regexp.MatchString(s)
                    
182		switch stmt.field.tokenId {
                    
183		case VAR_UUID, VAR_TYPE, VAR_LOGGER, VAR_PAYLOAD,
                    
184			VAR_ENVVERSION, VAR_HOSTNAME:
                    
                
control.go https://gitlab.com/larsla/gitlab-ci-multi-runner | Go | 271 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/artem-forks/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/otaviof/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/mehdy/gitlab-ci-multi-runner | Go | 243 lines
                    
12	"os/exec"
                    
13	"regexp"
                    
14	"runtime"
                    
73
                    
74	versionRe := regexp.MustCompile(`prlctl version (\d+\.\d+.\d+)`)
                    
75	matches := versionRe.FindStringSubmatch(string(out))
                    
117			snapshot = strings.TrimSpace(snapshot)
                    
118			if len(snapshot) > 0 { // It uses UUID so it should be 38
                    
119				return snapshot, nil
                    
193	stdoutString := strings.TrimSpace(output)
                    
194	re := regexp.MustCompile("net0.* mac=([0-9A-F]{12}) card=.*")
                    
195	macMatch := re.FindAllStringSubmatch(stdoutString, 1)
                    
222
                    
223	re := regexp.MustCompile("(.*)=\"(.*),(.*)," + strings.ToLower(mac) + ",.*\"")
                    
224	mostRecentIP := ""
                    
                
control.go https://gitlab.com/panzm/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/kiview/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/ashang/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/f3rdy/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/SueF/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/olirogers/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/mbode/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/schabrolles/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/Hagbarth/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/jbijlsma/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/raynax/gitlab-ci-multi-runner | Go | 271 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/ZeWaren/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/Mishkan/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/stanclai/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/thomas.k1/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/HeeroYui/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/dagwieers/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/Saltychipmunk/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/vichak/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/RapidSport/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
legacy_deployment_state_migrator.go https://gitlab.com/JamesClonk/bosh-init | Go | 168 lines
                    
11	boshsys "github.com/cloudfoundry/bosh-init/internal/github.com/cloudfoundry/bosh-utils/system"
                    
12	boshuuid "github.com/cloudfoundry/bosh-init/internal/github.com/cloudfoundry/bosh-utils/uuid"
                    
13)
                    
21	fs                     boshsys.FileSystem
                    
22	uuidGenerator          boshuuid.Generator
                    
23	logger                 boshlog.Logger
                    
29	fs boshsys.FileSystem,
                    
30	uuidGenerator boshuuid.Generator,
                    
31	logger boshlog.Logger,
                    
35		fs:            fs,
                    
36		uuidGenerator: uuidGenerator,
                    
37		logger:        logger,
                    
89	} else {
                    
90		uuid, err := m.uuidGenerator.Generate()
                    
91		if err != nil {
                    
                
control.go https://gitlab.com/Srivichai.P/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/paulom/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/akasurde/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/craig6/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/marc.par10/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/imnomak/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/vodinhtao1995/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/archv/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/mmatoscom/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/ngpestelos/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/deckar01/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
patterns.go https://gitlab.com/epicglue/govalidator | Go | 83 lines
                    
13	UUID5          string = "^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                    
14	UUID           string = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    
15	Alpha          string = "^[a-zA-Z]+$"
                    
52	rxEmail          = regexp.MustCompile(Email)
                    
53	rxCreditCard     = regexp.MustCompile(CreditCard)
                    
54	rxISBN10         = regexp.MustCompile(ISBN10)
                    
55	rxISBN13         = regexp.MustCompile(ISBN13)
                    
56	rxUUID3          = regexp.MustCompile(UUID3)
                    
57	rxUUID4          = regexp.MustCompile(UUID4)
                    
58	rxUUID5          = regexp.MustCompile(UUID5)
                    
59	rxUUID           = regexp.MustCompile(UUID)
                    
60	rxAlpha          = regexp.MustCompile(Alpha)
                    
64	rxFloat          = regexp.MustCompile(Float)
                    
65	rxHexadecimal    = regexp.MustCompile(Hexadecimal)
                    
66	rxHexcolor       = regexp.MustCompile(Hexcolor)
                    
                
patterns.go https://gitlab.com/tsauter/webdisk | Go | 91 lines
                    
13	UUID5          string = "^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                    
14	UUID           string = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    
15	Alpha          string = "^[a-zA-Z]+$"
                    
60	rxEmail          = regexp.MustCompile(Email)
                    
61	rxCreditCard     = regexp.MustCompile(CreditCard)
                    
62	rxISBN10         = regexp.MustCompile(ISBN10)
                    
63	rxISBN13         = regexp.MustCompile(ISBN13)
                    
64	rxUUID3          = regexp.MustCompile(UUID3)
                    
65	rxUUID4          = regexp.MustCompile(UUID4)
                    
66	rxUUID5          = regexp.MustCompile(UUID5)
                    
67	rxUUID           = regexp.MustCompile(UUID)
                    
68	rxAlpha          = regexp.MustCompile(Alpha)
                    
72	rxFloat          = regexp.MustCompile(Float)
                    
73	rxHexadecimal    = regexp.MustCompile(Hexadecimal)
                    
74	rxHexcolor       = regexp.MustCompile(Hexcolor)
                    
                
control.go https://gitlab.com/guang1986413/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/Dinduks/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/savitojs/gitlab-ci-multi-runner | Go | 271 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/jayme-github/gitlab-runner | Go | 271 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/dikarel/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/juliusv/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/etews/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/michaeltandy/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/respopuk/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
patterns.go https://gitlab.com/unofficial-mirrors/openshift-origin | Go | 83 lines
                    
13	UUID5          string = "^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                    
14	UUID           string = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    
15	Alpha          string = "^[a-zA-Z]+$"
                    
52	rxEmail          = regexp.MustCompile(Email)
                    
53	rxCreditCard     = regexp.MustCompile(CreditCard)
                    
54	rxISBN10         = regexp.MustCompile(ISBN10)
                    
55	rxISBN13         = regexp.MustCompile(ISBN13)
                    
56	rxUUID3          = regexp.MustCompile(UUID3)
                    
57	rxUUID4          = regexp.MustCompile(UUID4)
                    
58	rxUUID5          = regexp.MustCompile(UUID5)
                    
59	rxUUID           = regexp.MustCompile(UUID)
                    
60	rxAlpha          = regexp.MustCompile(Alpha)
                    
64	rxFloat          = regexp.MustCompile(Float)
                    
65	rxHexadecimal    = regexp.MustCompile(Hexadecimal)
                    
66	rxHexcolor       = regexp.MustCompile(Hexcolor)
                    
                
control.go https://gitlab.com/atsaloli/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/zhaojun12/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/dipaksavaliya/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/binsoopark/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/Sublio/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/fabikaze/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/zyfran/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/RioKierkels/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/davefinster/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/aaronarduino/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/vilhelmen/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/atcharatip9035/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/efendingk1/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/rawkode/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
sysinfo.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 203 lines
                    
18	"fmt"
                    
19	"regexp"
                    
20	"strconv"
                    
26
                    
27var schedulerRegExp = regexp.MustCompile(`.*\[(.*)\].*`)
                    
28
                    
70		if err == nil {
                    
71			matches := schedulerRegExp.FindSubmatch([]byte(blkSched))
                    
72			if len(matches) >= 2 {
                    
200
                    
201func GetSystemUUID(sysFs sysfs.SysFs) (string, error) {
                    
202	return sysFs.GetSystemUUID()
                    
                
message_matcher.go https://gitlab.com/wilane/heka | Go | 245 lines
                    
72	switch stmt.field.tokenId {
                    
73	case VAR_UUID:
                    
74		return msg.GetUuidString()
                    
124	case OP_RE:
                    
125		if stmt.value.regexp != nil {
                    
126			return stmt.value.regexp.MatchString(s)
                    
132	case OP_NRE:
                    
133		if stmt.value.regexp != nil {
                    
134			return !stmt.value.regexp.MatchString(s)
                    
182		switch stmt.field.tokenId {
                    
183		case VAR_UUID, VAR_TYPE, VAR_LOGGER, VAR_PAYLOAD,
                    
184			VAR_ENVVERSION, VAR_HOSTNAME:
                    
                
control.go https://gitlab.com/guanguan241/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/MattLaw0/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/terrencebenade/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/deanrock/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/vincentriemer/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/markdowney/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/mr-mencel/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/donnut/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/siadat/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/eminence/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/jan4/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/loukash/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/stalinkay/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
password.go https://gitlab.com/e0/harbor | Go | 201 lines
                    
105			URL:  harborURL,
                    
106			UUID: uuid,
                    
107		})
                    
147
                    
148	resetUUID := rpc.GetString("reset_uuid")
                    
149	if resetUUID == "" {
                    
162	if user != nil {
                    
163		rpc.Data["ResetUuid"] = user.ResetUUID
                    
164		rpc.ForwardTo("page_title_reset_password", "reset-password")
                    
172
                    
173	resetUUID := cc.GetString("reset_uuid")
                    
174	if resetUUID == "" {
                    
177
                    
178	queryUser := models.User{ResetUUID: resetUUID}
                    
179	user, err := dao.GetUser(queryUser)
                    
                
control.go https://gitlab.com/cheungpat/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/marcoshenrich/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/drewcrawford/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/remohammadi/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/YuriyIlyin/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/he037/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/abner/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/pragnesh.ritpritech/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/eyecreate/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/arose/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/houqp/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/huytv593/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/aleksey.solntsev/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
user_event.go https://github.com/backstage/backstage.git | Go | 265 lines
                    
4	"fmt"
                    
5	"regexp"
                    
6
                    
7	"github.com/hashicorp/consul/consul/structs"
                    
8	"github.com/hashicorp/go-uuid"
                    
9)
                    
56	if params.NodeFilter != "" {
                    
57		if _, err := regexp.Compile(params.NodeFilter); err != nil {
                    
58			return fmt.Errorf("Invalid node filter: %v", err)
                    
82	var err error
                    
83	if params.ID, err = uuid.GenerateUUID(); err != nil {
                    
84		return fmt.Errorf("UUID generation failed: %v", err)
                    
163
                    
164		var tagRe *regexp.Regexp
                    
165		if msg.TagFilter != "" {
                    
                
device_plugin.go https://bitbucket.org/Jake-Qu/kubernetes-mirror.git | Go | 314 lines
                    
24
                    
25	"regexp"
                    
26
                    
28	"k8s.io/apimachinery/pkg/api/resource"
                    
29	"k8s.io/apimachinery/pkg/util/uuid"
                    
30
                    
199func makeBusyboxPod(resourceName, cmd string) *v1.Pod {
                    
200	podName := "device-plugin-test-" + string(uuid.NewUUID())
                    
201	rl := v1.ResourceList{v1.ResourceName(resourceName): *resource.NewQuantity(1, resource.DecimalSI)}
                    
248	framework.Logf("got pod logs: %v", logs)
                    
249	regex := regexp.MustCompile(re)
                    
250	matches := regex.FindStringSubmatch(logs)
                    
                
control.go https://gitlab.com/minhajuddin/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/MeneDev/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/amol.bhanushali/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/pharada/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/maoaizaga/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/vmsqwe/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/warren.postma/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/sreesamb/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
control.go https://gitlab.com/jon-walton/gitlab-ci-multi-runner | Go | 276 lines
                    
10	"os/exec"
                    
11	"regexp"
                    
12	"strings"
                    
107	}
                    
108	portRe := regexp.MustCompile(`guestssh.*host port = (\d+)`)
                    
109	sshPort := portRe.FindStringSubmatch(info)
                    
148	}
                    
149	allPortsRe := regexp.MustCompile(`host port = (\d+)`)
                    
150	usedPorts = allPortsRe.FindAllStringSubmatch(output, -1)
                    
208	}
                    
209	snapshotRe := regexp.MustCompile(fmt.Sprintf(`(?m)^Snapshot(Name|UUID)[^=]*="%s"$`, regexp.QuoteMeta(snapshotName)))
                    
210	snapshot := snapshotRe.FindStringSubmatch(output)
                    
218	}
                    
219	snapshotRe := regexp.MustCompile(`(?m)^CurrentSnapshotName="([^"]*)"$`)
                    
220	snapshot := snapshotRe.FindStringSubmatch(output)
                    
                
 

Source

Language