txagent

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, fallback string) string

GetEnv gets an environment variable or sets a default if one does not exist.

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

func SetEnvIfEmpty(env string, fallback string) (envVal string)

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

type AgentOptions struct {
	LogOut  io.Writer
	LogName string
}

type DockerStatus

type DockerStatus struct {
	Status string
}

DockerStatus messages

Jump to

Keyboard shortcuts

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