cmd

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MPL-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPodCompleted = fmt.Errorf("pod ran to completion")

ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.

View Source
var WorkspaceTimeoutErr = fmt.Errorf("timed out waiting for workspace to be in a healthy condition")

Functions

func CheckResourceExists added in v0.2.4

func CheckResourceExists(ctx context.Context, rc client.Client, name, namespace string, obj runtime.Object) (bool, error)

func Execute

func Execute(args []string) int

func FlagToEnvVarName added in v0.2.9

func FlagToEnvVarName(f *pflag.Flag) string

Types

type RunnerReporter added in v0.2.9

type RunnerReporter struct {
	k8s.Client
	// contains filtered or unexported fields
}

func (*RunnerReporter) Handler added in v0.2.9

func (r *RunnerReporter) Handler(ctx context.Context, events <-chan ctrl.Request) error

func (*RunnerReporter) MatchingObj added in v0.2.9

func (r *RunnerReporter) MatchingObj(obj interface{}) bool

func (*RunnerReporter) Register added in v0.2.9

func (r *RunnerReporter) Register(c cache.Cache) (cache.Informer, error)

type WorkspacePodReporter added in v0.2.9

type WorkspacePodReporter struct {
	k8s.Client
	Id string
}

func (*WorkspacePodReporter) Handler added in v0.2.9

func (r *WorkspacePodReporter) Handler(ctx context.Context, events <-chan ctrl.Request) error

func (*WorkspacePodReporter) MatchingObj added in v0.2.9

func (r *WorkspacePodReporter) MatchingObj(obj interface{}) bool

func (*WorkspacePodReporter) Register added in v0.2.9

type WorkspaceReporter added in v0.2.9

type WorkspaceReporter struct {
	k8s.Client
	Id    string
	CmdId string
}

func (*WorkspaceReporter) Handler added in v0.2.9

func (r *WorkspaceReporter) Handler(ctx context.Context, events <-chan ctrl.Request) error

func (*WorkspaceReporter) MatchingObj added in v0.2.9

func (r *WorkspaceReporter) MatchingObj(obj interface{}) bool

func (*WorkspaceReporter) Register added in v0.2.9

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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