apps

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppCreateEventType     = "AppCreate"
	AppDeleteEventType     = "AppDelete"
	AppSpecUpdateEventType = "AppSpecUpdate"
)

Variables

This section is empty.

Functions

func NewConfirmUpgrade

func NewConfirmUpgrade(c client.WithWatch) rest.Storage

func NewPullAppImage

func NewPullAppImage(c client.WithWatch) rest.Storage

func NewStorage

func NewStorage(c kclient.WithWatch, clientFactory *client.Factory, recorder event.Recorder, middlewares ...middleware.CompleteStrategy) rest.Storage

Types

type AppSpecCreateEventDetails added in v0.7.0

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 added in v0.7.0

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 added in v0.7.0

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) Create

func (*ConfirmUpgradeStrategy) New

type Logs

type Logs struct {
	*strategy.DestroyAdapter
	// contains filtered or unexported fields
}

func NewLogs

func NewLogs(c client.WithWatch, cfg *clientgo.Config) (*Logs, error)

func (*Logs) Connect

func (i *Logs) Connect(ctx context.Context, id string, options runtime.Object, r rest.Responder) (http.Handler, error)

func (*Logs) ConnectMethods

func (i *Logs) ConnectMethods() []string

func (*Logs) NamespaceScoped

func (i *Logs) NamespaceScoped() bool

func (*Logs) New

func (i *Logs) New() runtime.Object

func (*Logs) NewConnectOptions

func (i *Logs) NewConnectOptions() (runtime.Object, bool, string)

type PullAppImageNameValidator added in v0.7.0

type PullAppImageNameValidator struct{}

func (PullAppImageNameValidator) ValidateName added in v0.7.0

func (v PullAppImageNameValidator) ValidateName(ctx context.Context, obj runtime.Object) (result field.ErrorList)

type PullAppImageStrategy

type PullAppImageStrategy struct {
	// contains filtered or unexported fields
}

func (*PullAppImageStrategy) Create

func (*PullAppImageStrategy) New

type Translator

type Translator struct {
}

func (*Translator) FromPublic

func (s *Translator) FromPublic(obj mtypes.Object) mtypes.Object

func (*Translator) ToPublic

func (s *Translator) ToPublic(obj mtypes.Object) mtypes.Object

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(client kclient.Client, clientFactory *client.Factory, deleter strategy.Deleter) *Validator

func (*Validator) Get added in v0.7.0

func (s *Validator) Get(ctx context.Context, namespace, name string) (types.Object, error)

func (*Validator) Validate

func (s *Validator) Validate(ctx context.Context, obj runtime.Object) (result field.ErrorList)

func (*Validator) ValidateUpdate

func (s *Validator) ValidateUpdate(ctx context.Context, obj, old runtime.Object) (result field.ErrorList)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL