Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgent ¶
func NewAgent(cfgUrl string, authUrl string, poll int, opts AgentOptions) (agent txagent, err error)
NewAgent creates a new txagent from a configuration url and a polling interval
func SetEnvIfEmpty ¶
SetEnvIfEmpty sets an environment variable to itself or fallback if empty.
Types ¶
type AgentAuth ¶
type AgentAuth struct { Volumes []volume.VolumesCreateBody Networks map[string]types.NetworkCreate Containers map[string]AgentContainerCfg }
AgentCfg represents the entire json configuration file
type AgentCfg ¶
type AgentCfg struct { Volumes []volume.VolumesCreateBody Networks map[string]types.NetworkCreate Containers map[string]AgentContainerCfg }
AgentCfg represents the entire json configuration file
type AgentContainerCfg ¶
type AgentContainerCfg struct { Config container.Config HostConfig container.HostConfig NetworkingConfig network.NetworkingConfig }
AgentContainerCfg each container in the json configuration file
type AgentOptions ¶
Click to show internal directories.
Click to hide internal directories.