crane

package
v0.6.4-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MPL-2.0 Imports: 8 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 devpod crane is installed in host system

func New

func New(cmd string) *command

func PullConfigFromSource

func PullConfigFromSource(workspaceInfo *provider2.AgentWorkspaceInfo, options *provider2.CLIOptions, log log.Logger) (string, error)

PullConfigFromSource pulls devcontainer config from configSource using git crane and returns config path

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