Documentation
¶
Index ¶
- Constants
- func IsAvailable() bool
- func New(cmd string) *command
- func PullConfigFromSource(workspaceInfo *provider2.AgentWorkspaceInfo, options *provider2.CLIOptions) (string, error)
- func PullConfigFromSourceWithContext(ctx context.Context, workspaceInfo *provider2.AgentWorkspaceInfo, ...) (string, error)
- func ShouldUse(cliOptions *provider2.CLIOptions) bool
- type Content
Constants ¶
View Source
const ( PullCommand = "pull" DecryptCommand = "decrypt" EnvironmentCrane = "environment" )
Variables ¶
This section is empty.
Functions ¶
func IsAvailable ¶
func IsAvailable() bool
IsAvailable checks if devsy crane is installed in host system.
func PullConfigFromSource ¶
func PullConfigFromSource( workspaceInfo *provider2.AgentWorkspaceInfo, options *provider2.CLIOptions, ) (string, error)
PullConfigFromSource pulls devcontainer config from configSource using git crane and returns config path.
func PullConfigFromSourceWithContext ¶
func PullConfigFromSourceWithContext( ctx context.Context, workspaceInfo *provider2.AgentWorkspaceInfo, options *provider2.CLIOptions, ) (string, error)
PullConfigFromSourceWithContext pulls a config using the caller's context.
func ShouldUse ¶
func ShouldUse(cliOptions *provider2.CLIOptions) bool
ShouldUse takes CLIOptions and returns true if crane should be used.
Types ¶
Click to show internal directories.
Click to hide internal directories.