workspace

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteWorkspace

type DeleteWorkspace struct {
	Name      string
	Namespace string
	Path      string
	Context   string
}

func (*DeleteWorkspace) Run

func (t *DeleteWorkspace) Run(ctx context.Context) error

type ListWorkspace

type ListWorkspace struct {
	Path    string
	Context string

	Out io.Writer
	Cmd *cobra.Command
}

func (*ListWorkspace) Run

func (t *ListWorkspace) Run(ctx context.Context) error

type NewWorkspace

type NewWorkspace struct {
	Name              string
	Namespace         string
	Path              string
	Timeout           time.Duration
	TimeoutPod        time.Duration
	Context           string
	WorkspaceSpec     v1alpha1.WorkspaceSpec
	SecretSet         bool
	ServiceAccountSet bool

	Debug bool
	Out   io.Writer
}

func (*NewWorkspace) Run

func (t *NewWorkspace) Run(ctx context.Context) error

Create new workspace. First check values of secret and service account flags, if either are empty then search for respective resources named "stok" and if they exist, set in the workspace spec accordingly. Otherwise use user-supplied values and check they exist. Only then create the workspace resource and wait until it is reporting it is healthy, or the timeout expires.

Jump to

Keyboard shortcuts

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