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

crane

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 New

func New(cmd string) *command

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 added in v1.20.0

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

type Content

type Content struct {
	Files map[string]string `json:"files"`
}

Jump to

Keyboard shortcuts

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