storage

package
v1.98.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

type REST struct {
	*genericregistry.Store
}

REST implements a RESTStorage for WorkloadIdentity.

func NewREST

func NewREST(optsGetter generic.RESTOptionsGetter) *REST

NewREST returns a RESTStorage object that will work against WorkloadIdentity.

func (*REST) ShortNames

func (r *REST) ShortNames() []string

ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.

type TokenRequestREST

type TokenRequestREST struct {
	// contains filtered or unexported fields
}

TokenRequestREST implements a RESTStorage for a token request.

func NewTokenRequestREST

func NewTokenRequestREST(
	storage getter,
	issuer string,
	minDuration,
	maxDuration time.Duration,
) *TokenRequestREST

NewTokenRequestREST returns a new TokenRequestREST for workload identity token.

func (*TokenRequestREST) Create

func (r *TokenRequestREST) Create(ctx context.Context, name string, obj runtime.Object, createValidation rest.ValidateObjectFunc, _ *metav1.CreateOptions) (runtime.Object, error)

Create returns a TokenRequest with workload identity token based on - spec of the workload identity - spec of the token request - referenced context object - gardener installation

func (*TokenRequestREST) Destroy

func (r *TokenRequestREST) Destroy()

Destroy cleans up its resources on shutdown.

func (*TokenRequestREST) GroupVersionKind

GroupVersionKind returns the GVK for the workload identity request type.

func (*TokenRequestREST) New

func (r *TokenRequestREST) New() runtime.Object

New returns an instance of the object.

type WorkloadIdentityStorage

type WorkloadIdentityStorage struct {
	WorkloadIdentity *REST
	TokenRequest     *TokenRequestREST
}

WorkloadIdentityStorage implements the storage for WorkloadIdentity.

func NewStorage

func NewStorage(optsGetter generic.RESTOptionsGetter, issuer string, minExpiration, maxExpiration time.Duration) WorkloadIdentityStorage

NewStorage creates a new WorkloadIdentityStorage object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL