apps

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Install(ctx context.Context, name, namespace string, version string, opt map[string]string) error
	Uninstall(ctx context.Context, name, namespace string) error
	Search(ctx context.Context, name string) (string, error)
	Workloads(ctx context.Context, namespace string) ([]corev1.ObjectReference, error)
}

App represents a K8s applications than can be managed with kbrew recipes

type AppRunner added in v0.0.7

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

func NewAppRunner added in v0.0.7

func NewAppRunner(op Method, log *log.Logger, status *log.Status) *AppRunner

func (*AppRunner) Run added in v0.0.7

func (r *AppRunner) Run(ctx context.Context, appName, namespace, appConfigPath string) error

Run fetches recipe from registry for the app and performs given operation

type Method

type Method string

Method defines operation performed on the apps

const (
	// Install method to install the app
	Install Method = "install"
	// Uninstall method to uninstall the app
	Uninstall Method = "uninstall"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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