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 ChartStorage
- type FinalizeREST
- func (r *FinalizeREST) Export(ctx context.Context, name string, options metav1.ExportOptions) (runtime.Object, error)
- func (r *FinalizeREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *FinalizeREST) New() runtime.Object
- func (r *FinalizeREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, 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, messageName 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 StatusREST
- func (r *StatusREST) Export(ctx context.Context, name string, options metav1.ExportOptions) (runtime.Object, error)
- 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)
- type Storage
- type VersionREST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChartStorage ¶ added in v1.4.0
type FinalizeREST ¶ added in v1.4.0
type FinalizeREST struct {
// contains filtered or unexported fields
}
FinalizeREST implements the REST endpoint for finalizing a chart.
func (*FinalizeREST) Export ¶ added in v1.4.0
func (r *FinalizeREST) 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 (*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 REST ¶
REST implements a RESTStorage for charts 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, messageName 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 finds a resource in the storage and updates it.
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a chart request.
func (*StatusREST) Export ¶
func (r *StatusREST) 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 (*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 { Chart *REST Status *StatusREST Finalize *FinalizeREST }
Storage includes storage for charts 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 charts.
type VersionREST ¶ added in v1.4.0
type VersionREST struct {
// contains filtered or unexported fields
}
VersionREST adapts a service registry into apiserver's RESTStorage model.
func NewVersionREST ¶ added in v1.4.0
func NewVersionREST( store ChartStorage, platformClient platformversionedclient.PlatformV1Interface, registryClient *registryinternalclient.RegistryClient, registryConfig *registryconfig.RegistryConfiguration, externalScheme string, externalHost string, externalPort int, externalCAFile string, authorizer authorizer.Authorizer, helmClient *helm.APIClient, ) *VersionREST
NewVersionREST 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 (*VersionREST) Connect ¶ added in v1.4.0
func (r *VersionREST) Connect(ctx context.Context, chartName string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the chart proxy
func (*VersionREST) ConnectMethods ¶ added in v1.4.0
func (r *VersionREST) ConnectMethods() []string
ConnectMethods returns the list of HTTP methods that can be proxied
func (*VersionREST) New ¶ added in v1.4.0
func (r *VersionREST) New() runtime.Object
New creates a new chart proxy options object
func (*VersionREST) NewConnectOptions ¶ added in v1.4.0
func (r *VersionREST) NewConnectOptions() (runtime.Object, bool, string)
NewConnectOptions returns versioned resource that represents proxy parameters