Documentation ¶
Index ¶
- func ConvertFromYAML(yaml string, entity interface{}) error
- func ConvertToYAML(entity interface{}) (string, error)
- func ConvertYAMLToJSON(input []byte) ([]byte, error)
- func Debug() bool
- func DumpYAML(entity interface{})
- func LoadFile(filename string) (data string, err error)
- func LoadYAML(filename string, entity interface{}) (err error)
- func LogDebug(context string, module string, info string)
- func LogError(context string, module string, info string)
- func LogFatal(context string, module string, info string)
- func LogInfo(context string, module string, info string)
- func LogLevel(level string)
- func LogPanic(context string, module string, info string)
- func LogWarn(context string, module string, info string)
- func ParseCommandLineOptions()
- func Print(format string, args ...interface{})
- func PullImage(image string, version string) error
- func SaveFile(filename string, data string) (err error)
- func SaveYAML(filename string, entity interface{}) error
- func StartContainer(image string, version string) (port int, err error)
- func StartLogging()
- func StopContainer(image string, version string) (err error)
- func UUID() string
- type Configuration
- type ContainerPort
- type ContainerSummmary
- type CoreConfiguration
- type ImageSummary
- type MsgConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFromYAML ¶
ConvertFromYAML transforms yaml into the structure of the entity
func ConvertToYAML ¶
ConvertToYAML show entity as yaml
func ConvertYAMLToJSON ¶
ConvertYAMLToJSON converts YAML to JSON
func DumpYAML ¶
func DumpYAML(entity interface{})
DumpYAML writes the entity as yaml data to the console
func ParseCommandLineOptions ¶
func ParseCommandLineOptions()
ParseCommandLineOptions parses the options of the CLI
func StartContainer ¶
StartContainer starts a new container
func StopContainer ¶
StopContainer stops a container
Types ¶
type Configuration ¶
type Configuration struct { MSG MsgConfiguration CORE CoreConfiguration CONTROLLERS []string // list of controller tags of the format "image-name:version" }
Configuration holds all configuration information for the application
func GetConfiguration ¶
func GetConfiguration() (*Configuration, error)
GetConfiguration retrieves the configuration.
func ReadConfiguration ¶
func ReadConfiguration(path string) (*Configuration, error)
ReadConfiguration reads a file from a specific path into a Configuration object
type ContainerPort ¶
type ContainerPort struct { IP string `yaml:"IP" json:"IP"` PrivatePort int `yaml:"PrivatePort" json:"PrivatePort"` PublicPort int `yaml:"PublicPort" json:"PublicPort"` Type string `yaml:"Type" json:"Type"` }
ContainerPort list details related to a container port
type ContainerSummmary ¶
type ContainerSummmary struct { ID string `yaml:"Id" json:"Id"` Image string `yaml:"Image" json:"Image"` Names []string `yaml:"Names" json:"Names"` Ports []ContainerPort `yaml:"Ports" json:"Ports"` Labels map[string]string `yaml:"Labels" json:"Labels"` State string `yaml:"State" json:"State"` }
ContainerSummmary has the details of a container
func ListContainers ¶
func ListContainers() ([]ContainerSummmary, error)
ListContainers lists all available containers
type CoreConfiguration ¶
CoreConfiguration holds all configuration information related to the orchestrator
type ImageSummary ¶
type ImageSummary struct { ID string `yaml:"Id" json:"Id"` Labels map[string]string `yaml:"Labels" json:"Labels"` RepoTags []string `yaml:"RepoTags" json:"RepoTags"` }
ImageSummary list details related to an image
type MsgConfiguration ¶
MsgConfiguration holds all configuration information for the MSG module