workspace

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCmd

func DeleteCmd(opts *cmdutil.Options) *cobra.Command

func ListCmd

func ListCmd(opts *cmdutil.Options) *cobra.Command

func SelectCmd

func SelectCmd(opts *cmdutil.Options) *cobra.Command

func ShowCmd

func ShowCmd(opts *cmdutil.Options) *cobra.Command

func WorkspaceCmd

func WorkspaceCmd(opts *cmdutil.Options) *cobra.Command

Types

type NewOptions

type NewOptions struct {
	*cmdutil.Options

	*client.Client

	Path        string
	Namespace   string
	Workspace   string
	KubeContext string

	// Stok Workspace's WorkspaceSpec
	WorkspaceSpec v1alpha1.WorkspaceSpec
	// Create a service acccount if it does not exist
	DisableCreateServiceAccount bool
	// Create a secret if it does not exist
	DisableCreateSecret bool
	// Timeout for workspace to be healthy
	TimeoutWorkspace time.Duration
	// Timeout for workspace pod to be running and ready
	TimeoutWorkspacePod time.Duration
	// Timeout for wait for handshake
	HandshakeTimeout time.Duration
	// Disable default behaviour of deleting resources upon error
	DisableResourceCleanup bool

	// Disable TTY detection
	DisableTTY bool
	// contains filtered or unexported fields
}

func NewCmd

func NewCmd(opts *cmdutil.Options) (*cobra.Command, *NewOptions)

func (*NewOptions) Run

func (o *NewOptions) Run(ctx context.Context) error

TODO: refactor to use a wrapper function, i.e. cleanupOnError()

Jump to

Keyboard shortcuts

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