// Name returns name for PortOpenCheck. If not known, will return "PortXXXX" based on port number
196169
func (poc PortOpenCheck) Name() string {
	if poc.label != "" {
		return poc.label
	}
	return fmt.Sprintf("Port-%d", poc.port)
}
570299
func Name(i interface{}) string {
	val := reflect.ValueOf(i)
	if !val.IsValid() {
		return ""
	}
	t := val.Type()
	switch t.Kind() {
	case reflect.Func:
		return runtime.FuncForPC(val.Pointer()).Name()
	default:
		return nameof(t)
	}
}
630495
func (b *Base) Name() string {
	b.mutex.RLock()
	defer b.mutex.RUnlock()

	return b.name
}
1373259
func (d Device) Name() (string, error) {
	if C.nvmlHandle == nil {
		return "", errLibraryNotLoaded
	}
	var name [szName]C.char
	r := C.nvmlDeviceGetName(d.dev, &name[0], szName)
	return C.GoString(&name[0]), errorString(r)
}
744078
func Name(name string) {
	switch def := dslengine.CurrentDefinition().(type) {
	case *design.ContactDefinition:
		def.Name = name
	case *design.LicenseDefinition:
		def.Name = name
	default:
		dslengine.IncompatibleDSL()
	}
}
578310
func (s *FileInfo) Name() string {
	s.Lock()
	_, name := filepath.Split(s.name)
	s.Unlock()
	return name
}
759848
func Name(name string) (should string) {
	should = lint.Name(name)

	for _, replace := range []struct {
		re *regexp.Regexp
		to string
	}{
		{re: reIDs, to: "IDs"},
		{re: reURLs, to: "URLs"},
		{re: reIDRef, to: "IDRef"},
	} {
		should = replace.re.ReplaceAllString(should, fmt.Sprintf("${1}%s${2}", replace.to))
	}

	return should
}
93253
func (fi headerFileInfo) Name() string {
	if fi.IsDir() {
		return path.Base(path.Clean(fi.h.Name))
	}
	return path.Base(fi.h.Name)
}
268766
func (p *Client) Name() string {
	p.RLock()
	defer p.RUnlock()
	return p.name
}
608157
func (i *InitToken) Name() string {
	return fmt.Sprintf("%s-%s", i.kubernetes.clusterID, i.Role)
}
592863
func (r repositoryEndpoint) Name() string {
	repoName := r.info.Name.Name()
	// If endpoint does not support CanonicalName, use the RemoteName instead
	if r.endpoint.TrimHostname {
		repoName = reference.Path(r.info.Name)
	}
	return repoName
}
356264
func (s *Switch) PortByName(name string) (p *mech.SwitchPort, err error) {
	err = errors.New("switch: port does not exist")

	s.PortIter(func(port *mech.SwitchPort) (ok bool) {
		if ok = port.Name != name; !ok {
			p, err = port, nil

			log.DebugLog("switch/PORT_BY_NAME",
				"Found port by name: ", name)
		}

		return
	})

	if err != nil {
		log.ErrorLog("switch/SWITCH_BY_NAME",
			"Failed to find switch by name: ", name)
	}

	return
}
1063200
func (r *Request) Name(s string) *Request {
	r.resourceName = &s
	return r
}
1024670
func (s *IndicesPutTemplateService) Name(name string) *IndicesPutTemplateService {
	s.name = name
	return s
}
792186
func (ix *Index) Name(fileid uint32) string {
	return string(ix.NameBytes(fileid))
}
645324
func (s *IndicesExistsTemplateService) Name(name string) *IndicesExistsTemplateService {
	s.name = name
	return s
}
1172039
func (i *index) Name() string {
	parts := strings.Split(i.id, "/")
	return parts[1]
}