Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileExists ¶
Types ¶
type ContainerWorkerConfig ¶
type ContainerWorkerConfig struct {
AllowSelfDelete bool `yaml:"allowSelfDelete"`
}
type DevicedConfig ¶
type DevicedConfig struct {
ContainerConfig ContainerWorkerConfig `yaml:"containerConfig"`
ImageConfig ImageWorkerConfig `yaml:"imageConfig"`
DockerConfig DockerClientConfig `yaml:"dockerConfig"`
Repos []*RemoteRepository `yaml:"repos"`
Containers []*TargetContainer `yaml:"containers"`
Networks []*dcapi.NetworkCreateRequest `yaml:"networks"`
}
func (*DevicedConfig) CreateOrRead ¶
func (c *DevicedConfig) CreateOrRead(confPath string) bool
func (*DevicedConfig) FillWithDefaults ¶
func (c *DevicedConfig) FillWithDefaults()
func (*DevicedConfig) ReadFrom ¶
func (c *DevicedConfig) ReadFrom(confPath string) error
func (*DevicedConfig) WriteConfig ¶
func (c *DevicedConfig) WriteConfig(path string) bool
type DevicedConfigWatcher ¶
func (*DevicedConfigWatcher) Close ¶
func (cw *DevicedConfigWatcher) Close()
func (*DevicedConfigWatcher) Init ¶
func (cw *DevicedConfigWatcher) Init() int
type DockerClientConfig ¶
type DockerClientConfig struct {
LoadFromEnvironment bool `yaml:"loadFromEnvironment,omitempty"`
UseTls bool `yaml:"useTls,omitempty"`
TlsConfig DockerClientTlsConfig `yaml:"tlsConfig,omitempty"`
Endpoint string `yaml:"endpoint,omitempty"`
}
func (*DockerClientConfig) BuildClient ¶
func (c *DockerClientConfig) BuildClient() (*dockerclient.Client, error)
func (*DockerClientConfig) FillWithDefaults ¶
func (c *DockerClientConfig) FillWithDefaults()
type DockerClientTlsConfig ¶
type DockerClientTlsConfig struct {
CaPemPath string `yaml:"caPemPath,omitempty"`
CertPemPath string `yaml:"certPemPath,omitempty"`
KeyPemPath string `yaml:"keyPemPath,omitempty"`
}
func (*DockerClientTlsConfig) LoadTLSConfig ¶
func (c *DockerClientTlsConfig) LoadTLSConfig() (*tls.Config, error)
func (*DockerClientTlsConfig) Validate ¶
func (c *DockerClientTlsConfig) Validate() bool
type ImageWorkerConfig ¶
type ImageWorkerConfig struct {
RecheckPeriod int `yaml:"recheckPeriod"`
}
func (*ImageWorkerConfig) FillWithDefaults ¶
func (c *ImageWorkerConfig) FillWithDefaults()
type LifecycleExecHook ¶
type LifecycleHook ¶
type LifecycleHook struct {
Exec *LifecycleExecHook
}
type LifecycleHookSet ¶
type LifecycleHookSet struct {
OnStop []LifecycleHook
}
type RemoteRepository ¶
type RemoteRepository struct {
Url string `yaml:"url"`
PullPrefix string `yaml:"pullPrefix"`
Username string `yaml:"username,omitempty"`
Password string `yaml:"password,omitempty"`
MetaHeaders map[string][]string `yaml:"metaHeaders,omitempty"`
Insecure bool `yaml:"insecure,omitempty"`
}
func (*RemoteRepository) BuildBase64Creds ¶
func (r *RemoteRepository) BuildBase64Creds() string
func (*RemoteRepository) RequiresAuth ¶
func (r *RemoteRepository) RequiresAuth() bool
func (*RemoteRepository) Validate ¶
func (r *RemoteRepository) Validate() bool
Later validate that it's a OK URL
type TargetContainer ¶
type TargetContainer struct {
// unique ID
Id string `yaml:"id"`
// [namespace/]name no version
Image string `yaml:"image"`
// acceptable version tags, in order of priority
Versions []string `yaml:"versions"`
UseAnyVersion bool `yaml:"useAnyVersion,omitempty"`
NoArchTag bool `yaml:"noArchTag,omitempty"`
RestartExited bool `yaml:"restartExited"`
DockerConfig dcapi.Config `yaml:"dockerConfig,omitempty"`
DockerHostConfig dcapi.HostConfig `yaml:"dockerHostConfig,omitempty"`
DockerNetworkingConfig dcapi.NetworkingConfig `yaml:"dockerNetworkingConfig,omitempty"`
LifecycleHooks LifecycleHookSet `yaml:"lifecycleHooks,omitempty"`
}
func (*TargetContainer) ContainerVersionScore ¶
func (tc *TargetContainer) ContainerVersionScore(version string) uint
Click to show internal directories.
Click to hide internal directories.