Documentation
¶
Index ¶
- Constants
- func DefaultPathEnv(os string) string
- func ImageConfigStr(labels map[string]string, ports map[string]struct{}, entrypoint []string) (string, error)
- func ParseExportCache(exportCaches, legacyExportCacheOpts []string) ([]client.CacheOptionsEntry, error)
- func ParseFromStr(fromStr string) (string, string, error)
- func ParseImportCache(importCaches []string) ([]gatewayclient.CacheOptionsEntry, error)
- type Builder
- type Options
Constants ¶
View Source
const DefaultPathEnvUnix = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin:/usr/local/julia/bin"
DefaultPathEnvUnix is unix style list of directories to search for executables. Each directory is separated from the next by a colon ':' character .
View Source
const DefaultPathEnvWindows = "c:\\Windows\\System32;c:\\Windows"
DefaultPathEnvWindows is windows style list of directories to search for executables. Each directory is separated from the next by a colon ';' character .
Variables ¶
This section is empty.
Functions ¶
func DefaultPathEnv ¶
func ImageConfigStr ¶
func ParseExportCache ¶ added in v0.2.0
func ParseExportCache(exportCaches, legacyExportCacheOpts []string) ([]client.CacheOptionsEntry, error)
ParseExportCache parses --export-cache (and legacy --export-cache-opt) Refer to github.com/moby/buildkit/cmd/buildctl/build/exportcache.go
func ParseImportCache ¶ added in v0.2.0
func ParseImportCache(importCaches []string) ([]gatewayclient.CacheOptionsEntry, error)
ParseImportCache parses --import-cache
Types ¶
type Builder ¶
type Options ¶ added in v0.2.0
type Options struct {
// ManifestFilePath is the path to the manifest file `build.envd`.
ManifestFilePath string
// ConfigFilePath is the path to the config file `config.envd`.
ConfigFilePath string
// ProgressMode is the output mode (auto, plain).
ProgressMode string
// Tag is the name of the image.
Tag string
// BuildContextDir is the directory of the build context.
BuildContextDir string
// BuildFuncName is the name of the build func.
BuildFuncName string
// PubKeyPath is the path to the ssh public key.
PubKeyPath string
// OutputOpts is the output options.
OutputOpts string
// ExportCache is the option to export cache.
// e.g. type=registry,ref=docker.io/username/image
ExportCache string
// ImportCache is the option to import cache.
// e.g. type=registry,ref=docker.io/username/image
ImportCache string
}
Click to show internal directories.
Click to hide internal directories.