package storage
import "k8s.io/kubernetes/pkg/registry/core/serviceaccount/storage"
Index ¶
- type REST
- func NewREST(optsGetter generic.RESTOptionsGetter, issuer token.TokenGenerator, auds authenticator.Audiences, max time.Duration, podStorage, secretStorage, nodeStorage rest.Getter, extendExpiration bool, maxExtendedExpiration time.Duration) (*REST, error)
- func (r *REST) ShortNames() []string
- type TokenREST
- func (r *TokenREST) Create(ctx context.Context, name string, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
- func (r *TokenREST) Destroy()
- func (r *TokenREST) GroupVersionKind(schema.GroupVersion) schema.GroupVersionKind
- func (r *TokenREST) New() runtime.Object
Types ¶
type REST ¶
type REST struct { *genericregistry.Store Token *TokenREST }
func NewREST ¶
func NewREST(optsGetter generic.RESTOptionsGetter, issuer token.TokenGenerator, auds authenticator.Audiences, max time.Duration, podStorage, secretStorage, nodeStorage rest.Getter, extendExpiration bool, maxExtendedExpiration time.Duration) (*REST, error)
NewREST returns a RESTStorage object that will work against service accounts.
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
type TokenREST ¶
type TokenREST struct {
// contains filtered or unexported fields
}
func (*TokenREST) Create ¶
func (r *TokenREST) Create(ctx context.Context, name string, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*TokenREST) Destroy ¶
func (r *TokenREST) Destroy()
Destroy cleans up resources on shutdown.
func (*TokenREST) GroupVersionKind ¶
func (r *TokenREST) GroupVersionKind(schema.GroupVersion) schema.GroupVersionKind
func (*TokenREST) New ¶
Source Files ¶
storage.go token.go
- Version
- v1.33.1 (latest)
- Published
- May 15, 2025
- Platform
- linux/amd64
- Imports
- 31 packages
- Last checked
- 2 hours ago –
Tools for package owners.