k8sclient

package
v0.0.0-...-d8cb705 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apps

type Apps interface {
	// Install will install the given app
	Install(ctx context.Context, spec opv1.AppSpec) error
	// Delete will delete the given app
	Delete(ctx context.Context, spec opv1.AppSpec) error
	// Update will update the given app
	//
	// NOTE: An empty value on the spec will be applied as empty and will NOT
	// default to the existing value.
	Update(ctx context.Context, spec opv1.AppSpec) error
	// Installed returns whether or not the app with the given name is currently installed
	Installed(ctx context.Context, name string) (installed bool, err error)
	// Healthcheck will retrieve the health of all installed apps
	Healthcheck(ctx context.Context) ([]*webv1.AppHealth, error)
	// InstalledApps will retrive all installed apps
	InstalledApps(ctx context.Context) ([]opv1.App, error)
	// AppStorage will retrive storage volumes for the given app list
	AppStorage(ctx context.Context, apps []opv1.App) ([]*webv1.AppStorage, error)
}

type Client

type Client interface {
	Apps
	System
}

func NewClient

func NewClient(logger chassis.Logger) Client

type System

type System interface {
	// CurrentImages will retrieve the current images of all system containers. System
	// containers are considered to be those in the `home-cloud-system` and `draft-system`
	// namespaces.
	CurrentImages(ctx context.Context) ([]*webv1.ImageVersion, error)
}

Jump to

Keyboard shortcuts

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