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 )
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 ExternalConfig ¶
ExternalConfig is configuration for an external agent
func NewExternalConfigFromFlags ¶
func NewExternalConfigFromFlags(flags *pflag.FlagSet) *ExternalConfig
type LocalClient ¶ added in v0.1.9
type LocalClient struct { tokens.TokensService variable.VariableService state.StateService workspace.WorkspaceService internal.HostnameService configversion.ConfigurationVersionService run.RunService logs.LogsService }
LocalClient is the client for an internal agent.
Click to show internal directories.
Click to hide internal directories.