Documentation ¶
Index ¶
- Constants
- Variables
- func NewContainerCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewCredentialsServerCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewDaemonCmd() *cobra.Command
- func NewOpenVSCodeAsyncCmd() *cobra.Command
- func NewSetupContainerCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewSetupLoftPlatformAccessCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewVSCodeAsyncCmd() *cobra.Command
- type CredentialsServerCmd
- type DaemonCmd
- type OpenVSCodeAsyncCmd
- type SetupContainerCmd
- type SetupLoftPlatformAccessCmd
- type VSCodeAsyncCmd
Constants ¶
const ExitCodeIO int = 64
Variables ¶
var DockerlessImageConfigOutput = "/.dockerless/image.json"
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 NewOpenVSCodeAsyncCmd ¶ added in v0.0.3
NewOpenVSCodeAsyncCmd creates a new command
func NewSetupContainerCmd ¶
func NewSetupContainerCmd(flags *flags.GlobalFlags) *cobra.Command
NewSetupContainerCmd creates a new command
func NewSetupLoftPlatformAccessCmd ¶ added in v0.5.20
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 ¶
NewVSCodeAsyncCmd creates a new command
Types ¶
type CredentialsServerCmd ¶
type CredentialsServerCmd struct { *flags.GlobalFlags User string ConfigureGitHelper bool ConfigureDockerHelper bool ForwardPorts bool GitUserSigningKey string Runner bool }
CredentialsServerCmd holds the cmd flags
func (*CredentialsServerCmd) RunRunner ¶ added in v0.5.21
func (cmd *CredentialsServerCmd) RunRunner(ctx context.Context, port int) error
RunRunner starts the runners credentials server It's connected directly to a services server on the runner instead of on the origin developer machine
The origin credentials server (default: port 12049) and the runner credentials server (default: port 12050) communicate through https. Since both are connected to their respective peers over stdio, the default mode is to always connect external tools (git, docker) to the origin instance. It is then responsible for pinging the runners server first. The runner will either send a valid response to use, an empty response meaning "no decision" or an error, indicating abortion.
type OpenVSCodeAsyncCmd ¶ added in v0.0.3
type OpenVSCodeAsyncCmd struct { *flags.GlobalFlags SetupInfo string }
OpenVSCodeAsyncCmd holds the cmd flags
type SetupContainerCmd ¶
type SetupContainerCmd struct { *flags.GlobalFlags ChownWorkspace bool StreamMounts bool InjectGitCredentials bool ContainerWorkspaceInfo string SetupInfo string }
SetupContainerCmd holds the cmd flags
type SetupLoftPlatformAccessCmd ¶ added in v0.5.20
type SetupLoftPlatformAccessCmd struct { *flags.GlobalFlags Context string Provider string Port int }
type VSCodeAsyncCmd ¶
type VSCodeAsyncCmd struct { *flags.GlobalFlags SetupInfo string Flavor string }
VSCodeAsyncCmd holds the cmd flags