Documentation ¶
Overview ¶
Package agent provides a daemon capable of running remote operations on behalf of a user.
Index ¶
Constants ¶
View Source
const ( DefaultID = "agent-001" DefaultConcurrency = 5 )
View Source
const HashicorpReleasesHost = "releases.hashicorp.com"
Variables ¶
Functions ¶
func NewExternalAgent ¶
NewExternalAgent constructs an external agent, which communicates with otfd via http
Types ¶
type Config ¶
type Config struct { Organization *string // only process runs belonging to org External bool // dedicated agent (true) or integrated into otfd (false) Concurrency int // number of workers Sandbox bool // isolate privileged ops within sandbox Debug bool // toggle debug mode PluginCache bool // toggle use of terraform's shared plugin cache TerraformBinDir string // destination directory for terraform binaries }
Config is configuration for an agent.
func NewConfigFromFlags ¶
type Downloader ¶
type Downloader interface {
// contains filtered or unexported methods
}
Downloader downloads a specific version of a binary and returns its path
type ExternalConfig ¶
ExternalConfig is configuration for an external agent
func NewExternalConfigFromFlags ¶
func NewExternalConfigFromFlags(flags *pflag.FlagSet) *ExternalConfig
Click to show internal directories.
Click to hide internal directories.