provider

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const AllWorkspaces = "all"
View Source
const ProviderBinaryEnv = "PRO_PROVIDER"

Variables

This section is empty.

Functions

func DialWorkspace

func DialWorkspace(baseClient client.Client, workspace *managementv1.DevPodWorkspaceInstance, subResource string, values url.Values) (*websocket.Conn, error)

func FindWorkspace

func FindWorkspace(ctx context.Context, baseClient client.Client, uid, projectName string) (*managementv1.DevPodWorkspaceInstance, error)

func FindWorkspaceByName

func FindWorkspaceByName(ctx context.Context, baseClient client.Client, name, projectName string) (*managementv1.DevPodWorkspaceInstance, error)

func NewDeleteCmd

func NewDeleteCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewDeleteCmd creates a new command

func NewProProviderCmd

func NewProProviderCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewProProviderCmd creates a new cobra command

func NewRebuildCmd

func NewRebuildCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewRebuildCmd creates a new command

func NewSshCmd

func NewSshCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewSshCmd creates a new command

func NewStatusCmd

func NewStatusCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewStatusCmd creates a new command

func NewStopCmd

func NewStopCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewStopCmd creates a new command

func NewUpCmd

func NewUpCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewUpCmd creates a new command

func OptionsFromEnv

func OptionsFromEnv(name string) url.Values

Types

type DeleteCmd

type DeleteCmd struct {
	*flags.GlobalFlags

	Log log.Logger
}

DeleteCmd holds the cmd flags

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(ctx context.Context, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

type RebuildCmd

type RebuildCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Project string
}

RebuildCmd holds the cmd flags

func (*RebuildCmd) Run

func (cmd *RebuildCmd) Run(ctx context.Context, args []string) error

type SshCmd

type SshCmd struct {
	*flags.GlobalFlags

	Log log.Logger
}

SshCmd holds the cmd flags

func (*SshCmd) Run

func (cmd *SshCmd) Run(ctx context.Context, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

type StatusCmd

type StatusCmd struct {
	*flags.GlobalFlags

	Log log.Logger
}

StatusCmd holds the cmd flags

func (*StatusCmd) Run

func (cmd *StatusCmd) Run(ctx context.Context, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

type StopCmd

type StopCmd struct {
	*flags.GlobalFlags

	Log log.Logger
}

StopCmd holds the cmd flags

func (*StopCmd) Run

func (cmd *StopCmd) Run(ctx context.Context, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

type UpCmd

type UpCmd struct {
	*flags.GlobalFlags

	Log log.Logger
}

UpCmd holds the cmd flags:

func (*UpCmd) Run

func (cmd *UpCmd) Run(ctx context.Context, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

type WorkspaceInfo

type WorkspaceInfo struct {
	ID          string
	UID         string
	ProjectName string
}

func GetWorkspaceInfoFromEnv

func GetWorkspaceInfoFromEnv() (*WorkspaceInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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