workspace

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepository

func CloneRepository(ctx context.Context, local bool, workspaceDir, repository, branch, helper string, log log.Logger) error

func DownloadLocalFolder

func DownloadLocalFolder(ctx context.Context, workspaceDir string, client tunnel.TunnelClient, log log.Logger) error

func InstallDocker

func InstallDocker(log log.Logger) error

func NewBuildCmd

func NewBuildCmd(flags *flags.GlobalFlags) *cobra.Command

NewBuildCmd creates a new command

func NewDeleteCmd

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

NewDeleteCmd creates a new command

func NewGetResultCmd

func NewGetResultCmd(flags *flags.GlobalFlags) *cobra.Command

NewGetResultCmd creates a new command

func NewLogsDaemonCmd added in v0.0.3

func NewLogsDaemonCmd(flags *flags.GlobalFlags) *cobra.Command

NewLogsDaemonCmd creates a new command

func NewStartCmd

func NewStartCmd(flags *flags.GlobalFlags) *cobra.Command

NewStartCmd creates a new command

func NewStatusCmd

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

NewStatusCmd creates a new command

func NewStopCmd

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

NewStopCmd creates a new command

func NewUpCmd

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

NewUpCmd creates a new command

func NewUpdateConfigCmd

func NewUpdateConfigCmd(flags *flags.GlobalFlags) *cobra.Command

NewUpdateConfigCmd creates a new command

func NewWorkspaceCmd

func NewWorkspaceCmd(flags *flags.GlobalFlags) *cobra.Command

NewWorkspaceCmd returns a new command

func PingURL

func PingURL(ctx context.Context, url string) error

func PrepareImage

func PrepareImage(workspaceDir, image string) error

func StartContainer

func StartContainer(workspaceInfo *provider2.AgentWorkspaceInfo, log log.Logger) (*config.Result, error)

Types

type BuildCmd

type BuildCmd struct {
	*flags.GlobalFlags

	Repository    string
	WorkspaceInfo string
	Platforms     []string
}

BuildCmd holds the cmd flags

func (*BuildCmd) Run

func (cmd *BuildCmd) Run(ctx context.Context) error

Run runs the command logic

type DeleteCmd

type DeleteCmd struct {
	*flags.GlobalFlags

	Container bool
	Daemon    bool
	ID        string
}

DeleteCmd holds the cmd flags

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(ctx context.Context) error

type GetResultCmd

type GetResultCmd struct {
	*flags.GlobalFlags

	ID string
}

GetResultCmd holds the cmd flags

func (*GetResultCmd) Run

func (cmd *GetResultCmd) Run(ctx context.Context) error

type LogsDaemonCmd added in v0.0.3

type LogsDaemonCmd struct {
	*flags.GlobalFlags

	ID string
}

LogsDaemonCmd holds the cmd flags

func (*LogsDaemonCmd) Run added in v0.0.3

func (cmd *LogsDaemonCmd) Run(ctx context.Context) error

type StartCmd

type StartCmd struct {
	*flags.GlobalFlags

	ID string
}

StartCmd holds the cmd flags

func (*StartCmd) Run

func (cmd *StartCmd) Run(ctx context.Context) error

type StatusCmd

type StatusCmd struct {
	*flags.GlobalFlags

	ID string
}

StatusCmd holds the cmd flags

func (*StatusCmd) Run

func (cmd *StatusCmd) Run(ctx context.Context, log log.Logger) error

type StopCmd

type StopCmd struct {
	*flags.GlobalFlags

	ID string
}

StopCmd holds the cmd flags

func (*StopCmd) Run

func (cmd *StopCmd) Run(ctx context.Context) error

type UpCmd

type UpCmd struct {
	*flags.GlobalFlags

	WorkspaceInfo        string
	PrebuildRepositories []string

	ForceBuild bool
	Recreate   bool
}

UpCmd holds the up cmd flags

func (*UpCmd) Run

func (cmd *UpCmd) Run(ctx context.Context) error

Run runs the command logic

type UpdateConfigCmd

type UpdateConfigCmd struct {
	*flags.GlobalFlags

	WorkspaceInfo string
}

UpdateConfigCmd holds the cmd flags

func (*UpdateConfigCmd) Run

func (cmd *UpdateConfigCmd) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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