// Name is name of the role mapping to retrieve.
160094
func (s *XPackSecurityGetRoleMappingService) Name(name string) *XPackSecurityGetRoleMappingService {
	s.name = name
	return s
}
807669
func (joy *Joystick) Name() string {
	return (C.GoString)(C.SDL_JoystickName(joy.cptr()))
}
713214
func (d *destination) name() string {
	return fmt.Sprintf("%v/%v", d.service.vserver.String(), d.String())
}
372416
func Name(s string) func(*Client) {
	return func(c *Client) {
		c.config.Name = s
	}
}
776895
func (r *Router) Name(name string) *Route {
	return r.NewRoute().Name(name)
}
941690
func (c Common) Name() string {
	if c.InventoryPath == "" {
		return ""
	}
	return path.Base(c.InventoryPath)
}
512745
func (s *LookupService) Name(ctx context.Context, resource platform.ResourceType, id platform.ID) (string, error) {
	return s.NameFn(ctx, resource, id)
}
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
}
302752
func (s *XPackSecurityPutRoleMappingService) Name(name string) *XPackSecurityPutRoleMappingService {
	s.name = name
	return s
}
1091637
func (_PublicResolver *PublicResolverSession) Name(node [32]byte) (string, error) {
	return _PublicResolver.Contract.Name(&_PublicResolver.CallOpts, node)
}
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)
	}
}
1245924
func (c *Client) GetRole(name string) (services.Role, error) {
	if name == "" {
		return nil, trace.BadParameter("missing name")
	}
	out, err := c.Get(c.Endpoint("roles", name), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	role, err := services.GetRoleMarshaler().UnmarshalRole(out.Bytes(), services.SkipValidation())
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return role, nil
}
682977
func (r *Route) Name(name string) *Route {
	r.name = name
	r.group.router.namedRoutes[name] = r
	return r
}
659104
func (s *Service) Name(name string) (*ResultName, error) {
	entry, err := s.nameReg.GetName(name)
	if err != nil {
		return nil, err
	}
	if entry == nil {
		return nil, fmt.Errorf("name %s not found", name)
	}
	return &ResultName{Entry: entry}, nil
}
655398
func (s *Session) Name() string {
	if s.sessionType == apitypes.MachineSession {
		return s.identity.(*envelope.Machine).Body.Name
	}

	return s.identity.(envelope.UserInf).Name()
}
869133
func Name(modelName, appName string, revision int) string {
	return fmt.Sprintf("%s%s-%s-%d", Prefix, modelName, appName, revision)
}
1243890
func (r *Route) Name(name string) *Route {
	r.route.Name(name)
	return r
}