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 ApplicationStorage
- 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 GenericREST
- func (r *GenericREST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *GenericREST) Export(ctx context.Context, name string, options metav1.ExportOptions) (runtime.Object, error)
- func (r *GenericREST) Get(ctx context.Context, messageName 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 HistoryREST
- 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) Export(ctx context.Context, name string, opts metav1.ExportOptions) (runtime.Object, 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 ResourceREST
- type RollbackREST
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplicationStorage ¶
type FinalizeREST ¶
type FinalizeREST struct {
// contains filtered or unexported fields
}
FinalizeREST implements the REST endpoint for finalizing a chartgroup.
func (*FinalizeREST) Export ¶
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 ¶
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 ¶
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 ¶
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 ¶
GenericREST implements a RESTStorage for application against etcd.
func (*GenericREST) Delete ¶
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 cluster termination
func (*GenericREST) Export ¶
func (r *GenericREST) 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 (*GenericREST) Get ¶
func (r *GenericREST) 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 (*GenericREST) List ¶
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 ¶
func (r *GenericREST) ShortNames() []string
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (*GenericREST) Update ¶
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 finds a resource in the storage and updates it.
type HistoryREST ¶
type HistoryREST struct {
// contains filtered or unexported fields
}
HistoryREST adapts a service registry into apiserver's RESTStorage model.
func NewHistoryREST ¶
func NewHistoryREST( application ApplicationStorage, applicationClient *applicationinternalclient.ApplicationClient, platformClient platformversionedclient.PlatformV1Interface, ) *HistoryREST
NewHistoryREST returns a wrapper around the underlying generic storage and performs allocations and deallocations of various helm releases related histories. TODO: all transactional behavior should be supported from within generic storage
or the strategy.
func (*HistoryREST) Get ¶
func (rs *HistoryREST) 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 (*HistoryREST) New ¶
func (rs *HistoryREST) New() runtime.Object
New returns an empty object that can be used with Create and Update after request data has been put into it.
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST adapts a service registry into apiserver's RESTStorage model.
func NewREST ¶
func NewREST( application ApplicationStorage, applicationClient *applicationinternalclient.ApplicationClient, platformClient platformversionedclient.PlatformV1Interface, registryClient registryversionedclient.RegistryV1Interface, authorizer authorizer.Authorizer, repo appconfig.RepoConfiguration, ) *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 ¶
func (*REST) List ¶
func (rs *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*REST) NamespaceScoped ¶
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (*REST) StorageVersion ¶
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 ¶
func (rs *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
type ResourceREST ¶
type ResourceREST struct {
// contains filtered or unexported fields
}
ResourceREST adapts a service registry into apiserver's RESTStorage model.
func NewResourceREST ¶
func NewResourceREST( application ApplicationStorage, applicationClient *applicationinternalclient.ApplicationClient, platformClient platformversionedclient.PlatformV1Interface, ) *ResourceREST
NewResourceREST 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 (*ResourceREST) Get ¶
func (rs *ResourceREST) 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 (*ResourceREST) New ¶
func (rs *ResourceREST) New() runtime.Object
New returns an empty object that can be used with Create and Update after request data has been put into it.
type RollbackREST ¶
type RollbackREST struct {
// contains filtered or unexported fields
}
RollbackREST adapts a service registry into apiserver's RESTStorage model.
func NewRollbackREST ¶
func NewRollbackREST( store ApplicationStorage, applicationClient *applicationinternalclient.ApplicationClient, platformClient platformversionedclient.PlatformV1Interface, ) *RollbackREST
NewRollbackREST returns a wrapper around the underlying generic storage and performs rollback of helm releases. TODO: all transactional behavior should be supported from within generic storage
or the strategy.
func (*RollbackREST) Connect ¶
func (r *RollbackREST) Connect(ctx context.Context, appName string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the chart proxy
func (*RollbackREST) ConnectMethods ¶
func (r *RollbackREST) ConnectMethods() []string
ConnectMethods returns the list of HTTP methods that can be proxied
func (*RollbackREST) New ¶
func (r *RollbackREST) New() runtime.Object
New creates a new chart proxy options object
func (*RollbackREST) NewConnectOptions ¶
func (r *RollbackREST) 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 application 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 { App *GenericREST Status *StatusREST Finalize *FinalizeREST }
Storage includes storage for application and all sub resources.
func NewStorage ¶
func NewStorage(optsGetter genericregistry.RESTOptionsGetter, applicationClient *applicationinternalclient.ApplicationClient) *Storage
NewStorage returns a Storage object that will work against application.