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 ¶
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 ¶
func (r *TokenRequestREST) GroupVersionKind(schema.GroupVersion) schema.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.