Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compose ¶
type Compose struct {
Version string `yaml:"version"`
Services map[string]Service `yaml:"services"`
Networks map[string]Networks `yaml:"networks"`
Volumes map[string]Volumes `yaml:"volumes"`
}
Compose - The main structure of the supported docker-compose syntax
type Config ¶
type Config struct {
Principal string
LogLevel string
MinVersion string
AppName string
EnableSyslog bool
Hostname string
Listen string
Domain string
Credentials UserCredentials
PrefixHostname string
PrefixTaskName string
CPU float64
Memory float64
Disk float64
RedisServer string
RedisPassword string
RedisDB int
SkipSSL bool
SSLKey string
SSLCrt string
Suppress bool
EventLoopTime time.Duration
ReconcileLoopTime time.Duration
VaultToken string
VaultURL string
VaultTimeout time.Duration
}
Config is a struct of the framework configuration
type Deploy ¶
type Deploy struct {
Placement Placement `yaml:"placement"`
Replicas string `yaml:"replicas"`
Resources struct {
Limits struct {
CPUs string `yaml:"cpus"`
Memory string `yaml:"memory"`
} `yaml:"limits"`
} `yaml:"resources"`
}
Deploy - The mesos resources to deploy a task
type MesosAgentContainers ¶ added in v0.3.0
type MesosAgentContainers []struct {
ContainerID string `json:"container_id"`
ExecutorID string `json:"executor_id"`
ExecutorName string `json:"executor_name"`
FrameworkID string `json:"framework_id"`
Source string `json:"source"`
Status struct {
ContainerID struct {
Value string `json:"value"`
} `json:"container_id"`
} `json:"status"`
}
MesosAgentContainers ..
type Networks ¶
type Networks struct {
External bool `yaml:"external"`
Name string `yaml:"name"`
Driver string `yaml:"driver"`
}
Networks - The docker-compose network syntax
type NetworksLong ¶ added in v0.4.2
type NetworksLong struct {
Aliases []string `yaml:"aliases"`
}
NetworksLong - Supportet structure for Networks
type Placement ¶ added in v0.4.2
type Placement struct {
Constraints []string `yaml:"constraints"`
}
Placement - The docker-compose placement
type Service ¶
type Service struct {
Network string `yaml:"network"`
Networks map[string]NetworksLong `yaml:"networks"`
Build string `yaml:"build"`
Restart string `yaml:"restart" default:"unless-stopped"`
Volumes []string `yaml:"volumes"`
Environment []string `yaml:"environment"`
DependsOn []string `yaml:"depends_on"`
Ports []string `yaml:"ports"`
Image string `yaml:"image"`
Labels map[string]interface{} `yaml:"labels"`
NetworkMode string `yaml:"network_mode"`
Privileged bool `yaml:"privileged"`
Command string `yaml:"command"`
Deploy Deploy `yaml:"deploy"`
Hostname string `yaml:"hostname"`
ContainerName string `yaml:"container_name"`
CapAdd []string `yaml:"cap_add"`
CapDrop []string `yaml:"cap_drop"`
PullPolicy string `yaml:"pull_policy" default:"always"`
}
Service - The docker-compose service parameters
type UserCredentials ¶
UserCredentials - The Username and Password to authenticate against this framework
Click to show internal directories.
Click to hide internal directories.