Documentation ¶
Index ¶
- Constants
- func NewConfirmUpgrade(c client.WithWatch) rest.Storage
- func NewIgnoreCleanup(c client.WithWatch) rest.Storage
- func NewInfo(c client.WithWatch) rest.Storage
- func NewPullAppImage(c client.WithWatch) rest.Storage
- func NewStorage(c kclient.WithWatch, clientFactory *client.Factory, recorder event.Recorder, ...) rest.Storage
- type AppSpecCreateEventDetails
- type AppSpecDeleteEventDetails
- type AppSpecUpdateEventDetails
- type ConfirmUpgradeStrategy
- type Icon
- type InfoStrategy
- type Logs
- type PullAppImageNameValidator
- type PullAppImageStrategy
- type Translator
- type Validator
- func (s *Validator) AllowNestedUpdate() *Validator
- func (s *Validator) Get(ctx context.Context, namespace, name string) (types.Object, error)
- func (s *Validator) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (s *Validator) Validate(ctx context.Context, obj runtime.Object) (result field.ErrorList)
- func (s *Validator) ValidateName(_ context.Context, obj runtime.Object) (result field.ErrorList)
- func (s *Validator) ValidateUpdate(ctx context.Context, obj, old runtime.Object) (result field.ErrorList)
Constants ¶
View Source
const ( AppCreateEventType = "AppCreate" AppDeleteEventType = "AppDelete" AppSpecUpdateEventType = "AppSpecUpdate" )
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage(c kclient.WithWatch, clientFactory *client.Factory, recorder event.Recorder, transport http.RoundTripper, middlewares ...middleware.CompleteStrategy) rest.Storage
Types ¶
type AppSpecCreateEventDetails ¶
type AppSpecCreateEventDetails struct { // ResourceVersion is the resourceVersion of the App created. ResourceVersion string `json:"resourceVersion"` }
AppSpecCreateEventDetails captures additional info about the creation of an App.
type AppSpecDeleteEventDetails ¶
type AppSpecDeleteEventDetails struct { // ResourceVersion is the resourceVersion of the App deleted. ResourceVersion string `json:"resourceVersion"` }
AppSpecDeleteEventDetails captures additional info about the deletion of an App.
type AppSpecUpdateEventDetails ¶
type AppSpecUpdateEventDetails struct { // ResourceVersion is the resourceVersion of the updated App. ResourceVersion string `json:"resourceVersion"` // OldSpec is the spec of the App before the update. OldSpec v1.AppInstanceSpec `json:"oldSpec"` // Patch is a JSON Patch that describes all changes made to OldSpec by the respective update. // See: https://datatracker.ietf.org/doc/html/rfc6902 Patch json.RawMessage `json:"patch"` }
AppSpecUpdateEventDetails captures additional info about an update to an App Spec.
type ConfirmUpgradeStrategy ¶
type ConfirmUpgradeStrategy struct {
// contains filtered or unexported fields
}
func (*ConfirmUpgradeStrategy) New ¶
func (s *ConfirmUpgradeStrategy) New() types.Object
type Icon ¶
type Icon struct { *strategy.DestroyAdapter // contains filtered or unexported fields }
func (*Icon) ConnectMethods ¶
func (*Icon) NamespaceScoped ¶
type InfoStrategy ¶
type InfoStrategy struct {
// contains filtered or unexported fields
}
func (*InfoStrategy) New ¶
func (s *InfoStrategy) New() types.Object
type Logs ¶
type Logs struct { *strategy.DestroyAdapter // contains filtered or unexported fields }
func (*Logs) ConnectMethods ¶
func (*Logs) NamespaceScoped ¶
type PullAppImageNameValidator ¶
type PullAppImageNameValidator struct{}
func (PullAppImageNameValidator) ValidateName ¶
type PullAppImageStrategy ¶
type PullAppImageStrategy struct {
// contains filtered or unexported fields
}
func (*PullAppImageStrategy) New ¶
func (s *PullAppImageStrategy) New() types.Object
type Translator ¶
type Translator struct { }
func (*Translator) FromPublic ¶
func (s *Translator) FromPublic(obj mtypes.Object) mtypes.Object
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func (*Validator) AllowNestedUpdate ¶
func (*Validator) PrepareForCreate ¶
func (*Validator) Validate ¶
Validate will validate the App but also populate the spec.ImageGrantedPermissions on the object. This is a bit odd but hard to do in a different way and not be terribly inefficient with API calls
func (*Validator) ValidateName ¶
Click to show internal directories.
Click to hide internal directories.