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"`
}
Yaml2Go
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
RedisServer string
RedisClient *goredis.Client
RedisCTX context.Context
}
Config is a struct of the framework configuration
type Service ¶
type Service struct {
Network []string `yaml:"network"`
Build string `yaml:"build"`
Restart string `yaml:"restart"`
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:"priviliged"`
Command []string `yaml:"command"`
Deploy Deploy `yaml:"deploy"`
Hostname string `yaml:"hostname"`
}
Web
type UserCredentials ¶
UserCredentials - The Username and Password to authenticate against this framework
Click to show internal directories.
Click to hide internal directories.