manager

package
v0.0.0-...-e51d0cd Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(restConfig *rest.Config, s release.Store, c *config.Config) *manager

Types

type ExecOption

type ExecOption interface {
	// contains filtered or unexported methods
}

func WithExecCommand

func WithExecCommand(command []string) ExecOption

func WithExecEnvs

func WithExecEnvs(envs map[string]string) ExecOption

func WithExecUser

func WithExecUser(user string) ExecOption

type Manager

type Manager interface {
	Run(ctx context.Context, devkName, namespace string, mutators ...mutator.Mutator) error
	Delete(ctx context.Context, devkName, namespace string, force bool) error
	Update(ctx context.Context, devkName, namespace string, force bool, mutators ...mutator.Mutator) error
	Exec(ctx context.Context, devkName, namespace string, opts ...ExecOption) error
	PortForward(ctx context.Context, devkName, namespace string, opts ...PortForwardOption) error
	Start(ctx context.Context, devkName, namespace string, mutators ...mutator.Mutator) error
	Stop(ctx context.Context, devkName, namespace string, force bool) error
	List(ctx context.Context, namespace string) ([]info.DevkInfoAccessor, error)
	Protect(ctx context.Context, devkName, namespace string) error
	Unprotect(ctx context.Context, devkName, namespace string) error
	Events(ctx context.Context, devkName, namespace string, watch bool, handler func(obj runtime.Object) error) error
}

type PortForwardOption

type PortForwardOption interface {
	// contains filtered or unexported methods
}

func WithPortForwardAddresses

func WithPortForwardAddresses(addresses []string) PortForwardOption

func WithPortForwardPorts

func WithPortForwardPorts(ports []string) PortForwardOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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