apps

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, m Method, appName, namespace, appConfigPath string) error

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

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