Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACPConfig ¶
type ACPConfig struct {
ToolsOnHost ToolsOnHostConfig `yaml:"tools_on_host"`
}
type AgentConfig ¶
type AgentConfig struct {
Docker DockerConfig `yaml:"docker"`
SetupScripts []SetupScriptsConfig `yaml:"setup_scripts"`
CopyFiles []FileCopyConfig `yaml:"copy_files"`
ACP ACPConfig `yaml:"acp"`
}
func FromYAMLFile ¶
func FromYAMLFile(path string) (*AgentConfig, error)
FromYAMLFile reads the YAML file at the given path and unmarshals it into an *AgentConfig.
type DockerConfig ¶
type FileCopyConfig ¶
type FileCopyConfig struct {
// Type is currently either "inline" or "path"
Type FileCopyType `yaml:"type"`
// Source is the content or file path of the source
Source string `yaml:"source"`
// Target is the destination path on the agent
Target string `yaml:"target"`
}
type FileCopyType ¶
type FileCopyType string
FileCopyType is an enum type. It exists solely so UnmarshalYAML can validate the type field.
const ( FileCopyTypeInline FileCopyType = "inline" FileCopyTypePath FileCopyType = "path" )
func (*FileCopyType) UnmarshalYAML ¶
func (t *FileCopyType) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML validates that the Type field is either "inline" or "path".
type SetupScriptType ¶
type SetupScriptType string
SetupScriptType is an enum type. It exists solely so UnmarshalYAML can validate the type field.
const ( SetupScriptTypeFile SetupScriptType = "file" SetupScriptTypeInline SetupScriptType = "inline" )
func (*SetupScriptType) UnmarshalYAML ¶
func (t *SetupScriptType) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML validates that the Type field is either "file" or "inline".
type SetupScriptsConfig ¶
type SetupScriptsConfig struct {
// Type is either "inline" or "file"
Type SetupScriptType `yaml:"type"`
// Source is the script content or file path
Source string `yaml:"source"`
}
type ToolsOnHostConfig ¶
Click to show internal directories.
Click to hide internal directories.