Documentation ¶
Index ¶
Constants ¶
View Source
const ( WrapperScript = "WrapperScript" Alias = "Alias" )
Values for ToolType
View Source
const ( Fixed = "Fixed" FromFile = "FromFile" )
Values for ImageTagType
View Source
const ( DoNotSpecify = "DoNotSpecify" ReuseName = "ReuseName" )
Values for CommandType
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandConfig ¶
type CommandConfig struct { Type CommandType // Following keys only when Type=ReuseName Folder string }
type CommandType ¶
type CommandType string
CommandType determines how to infer the executable name for the container
func (CommandType) IsDoNotSpecify ¶
func (commandType CommandType) IsDoNotSpecify() bool
func (CommandType) IsReuseName ¶
func (commandType CommandType) IsReuseName() bool
type Config ¶
type Config struct { OutputDir string TemplateFile string Engine string Tools map[string]ToolConfig }
Config represents the whole config file
func (Config) ApplyToolDefaults ¶
func (config Config) ApplyToolDefaults()
type ImageTagConfig ¶
type ImageTagConfig struct { Type ImageTagType // Following keys only when Type=Fixed Value string // Following keys only when Type=FromFile File string Sed []string Fallback string }
type ImageTagType ¶
type ImageTagType string
ImageTagType determines how the container image tag is determined
func (ImageTagType) IsFixed ¶
func (imageTagType ImageTagType) IsFixed() bool
func (ImageTagType) IsFromFile ¶
func (imageTagType ImageTagType) IsFromFile() bool
type MountConfig ¶
type ToolConfig ¶
type ToolConfig struct { Type ToolType // Following keys only when Type=WrapperScript ImageName string ImageTag ImageTagConfig WorkDir string HomeDir string Command CommandConfig Mounts []MountConfig Env []EnvConfig NetworkMode string CustomScript string // Following keys only when Type=Alias AliasFor string ForceTemplate bool }
ToolConfig represents the configuration for a CLI tool in the config file
Click to show internal directories.
Click to hide internal directories.