Documentation ¶
Index ¶
- func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST)
- type ManagedSeedSetStorage
- type REST
- type ScaleREST
- func (r *ScaleREST) Destroy()
- func (r *ScaleREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *ScaleREST) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind
- func (r *ScaleREST) New() runtime.Object
- func (r *ScaleREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type StatusREST
- func (r *StatusREST) Destroy()
- func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *StatusREST) New() runtime.Object
- func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST)
NewREST returns a RESTStorage object that will work with ManagedSeedSet objects.
Types ¶
type ManagedSeedSetStorage ¶
type ManagedSeedSetStorage struct { ManagedSeedSet *REST Status *StatusREST Scale *ScaleREST }
ManagedSeedSetStorage implements the storage for ManagedSeedSets and their status subresource.
func NewStorage ¶
func NewStorage(optsGetter generic.RESTOptionsGetter) ManagedSeedSetStorage
NewStorage creates a new ManagedSeedSetStorage object.
type REST ¶
type REST struct {
*genericregistry.Store
}
REST implements a RESTStorage for ManagedSeedSet.
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
type ScaleREST ¶ added in v1.22.0
type ScaleREST struct {
// contains filtered or unexported fields
}
ScaleREST implements a Scale for ManagedSeedSet.
func (*ScaleREST) Destroy ¶ added in v1.56.0
func (r *ScaleREST) Destroy()
Destroy cleans up its resources on shutdown.
func (*ScaleREST) Get ¶ added in v1.22.0
func (r *ScaleREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves object from Scale storage.
func (*ScaleREST) GroupVersionKind ¶ added in v1.22.0
func (r *ScaleREST) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind
GroupVersionKind returns GroupVersionKind for ManagedSeedSet Scale object.
func (*ScaleREST) Update ¶ added in v1.22.0
func (r *ScaleREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters scale subset of ManagedSeedSet object.
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a ManagedSeedSet.
func (*StatusREST) Destroy ¶ added in v1.56.0
func (r *StatusREST) Destroy()
Destroy cleans up its resources on shutdown.
func (*StatusREST) Get ¶
func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (*StatusREST) New ¶
func (r *StatusREST) New() runtime.Object
New creates a new (empty) internal ManagedSeedSet object.
func (*StatusREST) Update ¶
func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters the status subset of an object.