Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,513 for scoper (0.1 sec)

  1. pkg/registry/authentication/selfsubjectreview/rest.go

    var _ interface {
    	rest.Creater
    	rest.NamespaceScopedStrategy
    	rest.Scoper
    	rest.Storage
    } = &REST{}
    
    // REST implements a RESTStorage for selfsubjectreviews.
    type REST struct {
    }
    
    // NewREST returns a RESTStorage object that will work against selfsubjectreviews.
    func NewREST() *REST {
    	return &REST{}
    }
    
    // NamespaceScoped fulfill rest.Scoper
    func (r *REST) NamespaceScoped() bool {
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. pkg/registry/authorization/selfsubjectrulesreview/rest.go

    }
    
    // NewREST returns a RESTStorage object that will work against selfsubjectrulesreview.
    func NewREST(ruleResolver authorizer.RuleResolver) *REST {
    	return &REST{ruleResolver}
    }
    
    // NamespaceScoped fulfill rest.Scoper
    func (r *REST) NamespaceScoped() bool {
    	return false
    }
    
    // New creates a new selfsubjectrulesreview object.
    func (r *REST) New() runtime.Object {
    	return &authorizationapi.SelfSubjectRulesReview{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    		}
    		scoper, ok := parentStorage.(rest.Scoper)
    		if !ok {
    			return nil, nil, fmt.Errorf("%q must implement scoper", resource)
    		}
    		namespaceScoped = scoper.NamespaceScoped()
    
    	} else {
    		scoper, ok := storage.(rest.Scoper)
    		if !ok {
    			return nil, nil, fmt.Errorf("%q must implement scoper", resource)
    		}
    		namespaceScoped = scoper.NamespaceScoped()
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. pkg/registry/core/pod/storage/storage.go

    }
    
    // BindingREST implements the REST endpoint for binding pods to nodes when etcd is in use.
    type BindingREST struct {
    	store *genericregistry.Store
    }
    
    // NamespaceScoped fulfill rest.Scoper
    func (r *BindingREST) NamespaceScoped() bool {
    	return r.store.NamespaceScoped()
    }
    
    // New creates a new binding resource
    func (r *BindingREST) New() runtime.Object {
    	return &api.Binding{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/rest/rest.go

    	// Destroy has to be implemented in thread-safe way and be prepared
    	// for being called more than once.
    	Destroy()
    }
    
    // Scoper indicates what scope the resource is at. It must be specified.
    // It is usually provided automatically based on your strategy.
    type Scoper interface {
    	// NamespaceScoped returns true if the storage is namespaced
    	NamespaceScoped() bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  6. pkg/test/framework/scope.go

    	"istio.io/istio/pkg/test/framework/resource"
    	"istio.io/istio/pkg/test/scopes"
    )
    
    // scope hold resources in a particular scope.
    type scope struct {
    	// friendly name for the scope for debugging purposes.
    	id string
    
    	parent *scope
    
    	resources []resource.Resource
    
    	closers []io.Closer
    
    	children []*scope
    
    	closeChan chan struct{}
    
    	topLevel bool
    
    	skipDump bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 21:55:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. pkg/log/scope.go

    			s.nameToEmit = name
    		}
    
    		scopes[name] = s
    	}
    
    	s.labels = make(map[string]any)
    
    	return s
    }
    
    // FindScope returns a previously registered scope, or nil if the named scope wasn't previously registered
    func FindScope(scope string) *Scope {
    	lock.RLock()
    	defer lock.RUnlock()
    
    	s := scopes[scope]
    	return s
    }
    
    // Scopes returns a snapshot of the currently defined set of scopes
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. pkg/ctrlz/topics/scopes.go

    }
    
    // ScopeTopic returns a ControlZ topic that allows visualization of process logging scopes.
    func ScopeTopic() fw.Topic {
    	return scopeTopic{}
    }
    
    func (scopeTopic) Title() string {
    	return "Logging Scopes"
    }
    
    func (scopeTopic) Prefix() string {
    	return "scope"
    }
    
    func getScopeInfo(s *log.Scope) *scopeInfo {
    	return &scopeInfo{
    		Name:            s.Name(),
    		Description:     s.Description(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. src/go/types/scope.go

    // and looked up by name. The zero value for Scope is a ready-to-use
    // empty scope.
    type Scope struct {
    	parent   *Scope
    	children []*Scope
    	number   int               // parent.children[number-1] is this scope; 0 if there is no parent
    	elems    map[string]Object // lazily allocated
    	pos, end token.Pos         // scope extent; may be invalid
    	comment  string            // for debugging only
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/scope.go

    func NewScope(parent *Scope, pos, end syntax.Pos, comment string) *Scope {
    	s := &Scope{parent, nil, 0, nil, pos, end, comment, false}
    	// don't add children to Universe scope!
    	if parent != nil && parent != Universe {
    		parent.children = append(parent.children, s)
    		s.number = len(parent.children)
    	}
    	return s
    }
    
    // Parent returns the scope's containing (parent) scope.
    func (s *Scope) Parent() *Scope { return s.parent }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top