Documentation ¶
Index ¶
- func ValidateExportObjectAndTenantID(ctx context.Context, store *registry.Store, name string, ...) (runtime.Object, error)
- func ValidateGetObjectAndTenantID(ctx context.Context, store *registry.Store, name string, ...) (runtime.Object, error)
- type REST
- func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *REST) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (r *REST) Export(ctx context.Context, name string, options metav1.ExportOptions) (runtime.Object, error)
- func (r *REST) Get(ctx context.Context, platformName string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *REST) ShortNames() []string
- func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type REST ¶
REST implements a RESTStorage for platforms against etcd.
func (*REST) Delete ¶
func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Delete enforces life-cycle rules for cluster termination
func (*REST) DeleteCollection ¶
func (r *REST) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternal.ListOptions) (runtime.Object, error)
DeleteCollection selects all resources in the storage matching given 'listOptions' and deletes them.
func (*REST) Export ¶
func (r *REST) Export(ctx context.Context, name string, options metav1.ExportOptions) (runtime.Object, error)
Export an object. Fields that are not user specified are stripped out Returns the stripped object.
func (*REST) Get ¶
func (r *REST) Get(ctx context.Context, platformName string, options *metav1.GetOptions) (runtime.Object, error)
Get finds a resource in the storage by name and returns it.
func (*REST) List ¶
func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
List selects resources in the storage which match to the selector. 'options' can be nil.
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (*REST) Update ¶
func (r *REST) 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 object subset of an object.
type Storage ¶
type Storage struct {
Platform *REST
}
Storage includes storage for platforms and all sub resources.
func NewStorage ¶
func NewStorage(optsGetter genericregistry.RESTOptionsGetter, businessClient *businessinternalclient.BusinessClient, privilegedUsername string) *Storage
NewStorage returns a Storage object that will work against platforms.