Help us shape the future of Go! Take the 2026 Go Developer Survey

container

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MPL-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootDir          = agent.ContainerDataDir
	DaemonConfigPath = "/var/run/secrets/" + config2.BinaryName + "/daemon_config"
)
View Source
const ExitCodeIO int = 64

Variables

This section is empty.

Functions

func NewContainerCmd

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

NewContainerCmd returns a new command.

func NewCredentialsServerCmd

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

NewCredentialsServerCmd creates a new command.

func NewDaemonCmd

func NewDaemonCmd() *cobra.Command

NewDaemonCmd creates the merged daemon command.

func NewDeferredHooksCmd added in v1.1.0

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

NewDeferredHooksCmd creates a new command.

func NewOpenVSCodeAsyncCmd

func NewOpenVSCodeAsyncCmd() *cobra.Command

NewOpenVSCodeAsyncCmd creates a new command.

func NewPostAttachCmd

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

NewPostAttachCmd creates a new command.

func NewSSHServerCmd

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

NewSSHServerCmd creates a new ssh command.

func NewSetupContainerCmd

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

NewSetupContainerCmd creates a new command.

func NewSetupLoftPlatformAccessCmd

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

NewSetupLoftPlatformAccessCmd creates a new setup-loft-platform-access command This agent command can be used to inject loft platform configuration from local machine to workspace.

func NewVSCodeAsyncCmd

func NewVSCodeAsyncCmd() *cobra.Command

NewVSCodeAsyncCmd creates a new command.

Types

type CredentialsServerCmd

type CredentialsServerCmd struct {
	*flags.GlobalFlags

	User string

	ConfigureGitHelper    bool
	ConfigureDockerHelper bool

	ForwardPorts      bool
	GitUserSigningKey string
}

CredentialsServerCmd holds the cmd flags.

func (*CredentialsServerCmd) Run

func (cmd *CredentialsServerCmd) Run(ctx context.Context, port int) error

Run runs the command logic.

type DaemonCmd

type DaemonCmd struct {
	Config *agentd.DaemonConfig
}

func (*DaemonCmd) Run

func (cmd *DaemonCmd) Run(c *cobra.Command, args []string) error

type DeferredHooksCmd added in v1.1.0

type DeferredHooksCmd struct {
	*flags.GlobalFlags
	SetupInfo      string
	Prebuild       bool
	DotfilesRepo   string
	DotfilesScript string
	SecretsEnv     []string
}

DeferredHooksCmd runs deferred lifecycle hooks as a detached background process.

func (*DeferredHooksCmd) Run added in v1.1.0

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

Run executes the deferred lifecycle hooks.

type OpenVSCodeAsyncCmd

type OpenVSCodeAsyncCmd struct {
	*flags.GlobalFlags

	SetupInfo string
}

OpenVSCodeAsyncCmd holds the cmd flags.

func (*OpenVSCodeAsyncCmd) Run

func (cmd *OpenVSCodeAsyncCmd) Run(_ *cobra.Command, _ []string) error

Run runs the command logic.

type PostAttachCmd

type PostAttachCmd struct {
	*flags.GlobalFlags
	SetupInfo  string
	SecretsEnv []string
}

PostAttachCmd runs postAttachCommand hooks as a detached background process.

func (*PostAttachCmd) Run

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

Run runs the postAttachCommand lifecycle hooks.

type SSHServerCmd

type SSHServerCmd struct {
	*flags.GlobalFlags

	Address    string
	Workdir    string
	RemoteUser string
}

SSHServerCmd holds the ssh server cmd flags.

func (*SSHServerCmd) Run

func (cmd *SSHServerCmd) Run(_ *cobra.Command, _ []string) error

Run runs the command logic.

type SetupContainerCmd

type SetupContainerCmd struct {
	*flags.GlobalFlags

	ChownWorkspace         bool
	StreamMounts           bool
	InjectGitCredentials   bool
	Prebuild               bool
	ContainerWorkspaceInfo string
	SetupInfo              string
	AccessKey              string
	PlatformHost           string
	WorkspaceHost          string
	DotfilesRepo           string
	DotfilesScript         string
}

SetupContainerCmd holds the cmd flags.

func (*SetupContainerCmd) Run

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

Run runs the command logic.

type SetupLoftPlatformAccessCmd

type SetupLoftPlatformAccessCmd struct {
	*flags.GlobalFlags

	Context  string
	Provider string
	Port     int
}

func (*SetupLoftPlatformAccessCmd) Run

Run executes main command logic. It fetches Devsy Platform credentials from credentials server and sets it up inside the workspace.

type VSCodeAsyncCmd

type VSCodeAsyncCmd struct {
	*flags.GlobalFlags

	SetupInfo string
	Flavor    string
}

VSCodeAsyncCmd holds the cmd flags.

func (*VSCodeAsyncCmd) Run

func (cmd *VSCodeAsyncCmd) Run(_ *cobra.Command, _ []string) error

Run runs the command logic.

Jump to

Keyboard shortcuts

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