agentconfig

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 3 Imported by: 0

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 DockerConfig struct {
	Image        string      `yaml:"image"`
	HostMounts   []HostMount `yaml:"host_mounts"`
	AgentCommand []string    `yaml:"agent_command"`
}

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 HostMount

type HostMount struct {
	Source      string `yaml:"source"`
	Destination string `yaml:"destination"`
}

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

type ToolsOnHostConfig struct {
	Files    bool `yaml:"files"`
	Terminal bool `yaml:"terminal"`
}

Jump to

Keyboard shortcuts

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