Documentation ¶
Index ¶
- func ValidateGetObjectAndTenantID(ctx context.Context, store *registry.Store, name string, ...) (runtime.Object, error)
- type ChartGroupStorage
- type FinalizeREST
- type GenericREST
- func (r *GenericREST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *GenericREST) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (r *GenericREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *GenericREST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *GenericREST) ShortNames() []string
- func (r *GenericREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type REST
- func (rs *REST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (rs *REST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (rs *REST) Delete(ctx context.Context, id string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (rs *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (rs *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (rs *REST) NamespaceScoped() bool
- func (rs *REST) New() runtime.Object
- func (rs *REST) NewList() runtime.Object
- func (rs *REST) ShortNames() []string
- func (rs *REST) StorageVersion() runtime.GroupVersioner
- func (rs *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (rs *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
- type RepoUpdateREST
- type StatusREST
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChartGroupStorage ¶ added in v1.4.0
type ChartGroupStorage interface { rest.Scoper rest.Getter rest.Lister rest.CreaterUpdater rest.GracefulDeleter rest.Watcher rest.StorageVersionProvider }
type FinalizeREST ¶ added in v1.4.0
type FinalizeREST struct {
// contains filtered or unexported fields
}
FinalizeREST implements the GenericREST endpoint for finalizing a chartgroup.
func (*FinalizeREST) Get ¶ added in v1.4.0
func (r *FinalizeREST) 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 (*FinalizeREST) New ¶ added in v1.4.0
func (r *FinalizeREST) New() runtime.Object
New returns an empty object that can be used with Create and Update after request data has been put into it.
func (*FinalizeREST) Update ¶ added in v1.4.0
func (r *FinalizeREST) 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 finalizers subset of an object.
type GenericREST ¶ added in v1.4.0
GenericREST implements a RESTStorage for chart groups against etcd.
func (*GenericREST) Delete ¶ added in v1.4.0
func (r *GenericREST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Delete enforces life-cycle rules for chart group termination
func (*GenericREST) DeleteCollection ¶ added in v1.4.0
func (r *GenericREST) 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 (*GenericREST) Get ¶ added in v1.4.0
func (r *GenericREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get finds a resource in the storage by name and returns it.
func (*GenericREST) List ¶ added in v1.4.0
func (r *GenericREST) 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 (*GenericREST) ShortNames ¶ added in v1.4.0
func (r *GenericREST) ShortNames() []string
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (*GenericREST) Update ¶ added in v1.4.0
func (r *GenericREST) 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 REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST adapts a service registry into apiserver's RESTStorage model.
func NewREST ¶ added in v1.4.0
func NewREST( chartgroup ChartGroupStorage, registryClient *registryinternalclient.RegistryClient, authClient authversionedclient.AuthV1Interface, harborClient *harbor.APIClient, helmClient *helm.APIClient, ) *REST
NewREST returns a wrapper around the underlying generic storage and performs allocations and deallocations of various helm releases related resources like ports. TODO: all transactional behavior should be supported from within generic storage
or the strategy.
func (*REST) ConvertToTable ¶ added in v1.4.0
func (*REST) List ¶
func (rs *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*REST) NamespaceScoped ¶ added in v1.4.0
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (*REST) StorageVersion ¶ added in v1.4.0
func (rs *REST) StorageVersion() runtime.GroupVersioner
func (*REST) Update ¶
func (rs *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)
func (*REST) Watch ¶ added in v1.4.0
func (rs *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
type RepoUpdateREST ¶ added in v1.6.0
type RepoUpdateREST struct {
// contains filtered or unexported fields
}
RepoUpdateREST adapts a service registry into apiserver's RESTStorage model.
func NewRepoUpdateREST ¶ added in v1.6.0
func NewRepoUpdateREST( store ChartGroupStorage, registryClient *registryinternalclient.RegistryClient, authorizer authorizer.Authorizer, ) *RepoUpdateREST
NewRepoUpdateREST returns a wrapper around the underlying generic storage and performs allocations and deallocations of various chart. TODO: all transactional behavior should be supported from within generic storage
or the strategy.
func (*RepoUpdateREST) Connect ¶ added in v1.6.0
func (r *RepoUpdateREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the chartgroup proxy
func (*RepoUpdateREST) ConnectMethods ¶ added in v1.6.0
func (r *RepoUpdateREST) ConnectMethods() []string
ConnectMethods returns the list of HTTP methods that can be proxied
func (*RepoUpdateREST) New ¶ added in v1.6.0
func (r *RepoUpdateREST) New() runtime.Object
New creates a new chart proxy options object
func (*RepoUpdateREST) NewConnectOptions ¶ added in v1.6.0
func (r *RepoUpdateREST) NewConnectOptions() (runtime.Object, bool, string)
NewConnectOptions returns versioned resource that represents proxy parameters
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the GenericREST endpoint for changing the status of a chart group.
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 returns an empty object that can be used with Create and Update after request data has been put into it.
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.
type Storage ¶
type Storage struct { ChartGroup *GenericREST Status *StatusREST Finalize *FinalizeREST }
Storage includes storage for chart groups and all sub resources.
func NewStorage ¶
func NewStorage(optsGetter genericregistry.RESTOptionsGetter, registryClient *registryinternalclient.RegistryClient, authClient authversionedclient.AuthV1Interface, businessClient businessversionedclient.BusinessV1Interface, privilegedUsername string) *Storage
NewStorage returns a Storage object that will work against chart groups.