Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct { Message string `json:"message,omitempty"` Data interface{} `json:"data"` }
type ContainerData ¶
type ContainerData struct { Id string `json:"id"` Hostname string `json:"hostname"` // <internal port> -> <external port> Ports map[string]int `json:"ports"` }
func NewContainerData ¶
func NewContainerData(id, hostname string) *ContainerData
type ContainerFileMounts ¶
type ContainerMounts ¶
type ContainerMounts struct {
Files map[string]ContainerFileMounts
}
type Duration ¶
func (Duration) MarshalJSON ¶
func (Duration) ToDuration ¶
func (*Duration) UnmarshalJSON ¶
type EnvOptions ¶
type InputEnv ¶
type InputEnv struct { // Environment name Name string `json:"name"` // Environment description Description string `json:"description,omitempty"` // Templates to use Templates []*Tpl `json:"templates,omitempty"` // Additional env options Options *EnvOptions `json:"options"` }
type OutputEnv ¶
type OutputEnv struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` WsDir string `json:"ws_dir" mapstructure:"ws_dir"` MountDir string `json:"mount_dir" mapstructure:"mount_dir"` NetId string `json:"net_id" mapstructure:"net_id"` Created string `json:"created"` Keepalive string `json:"keep_alive" mapstructure:"keep_alive"` ExternalAddress string `json:"external_address" mapstructure:"external_address"` Templates map[string][]*TplData `json:"templates"` // tpl name -> [TplData] }
func (*OutputEnv) GetContainer ¶
func (*OutputEnv) GetContainerByPath ¶
func (e *OutputEnv) GetContainerByPath(path []string, contName string) (*ContainerData, error)
Path element must be defined in the format: <template>|<index>
type TplData ¶
type TplData struct { // Container name -> <internal port> -> "<host>:<external-port>" Containers map[string]*ContainerData `json:"containers"` // Imported templates -> tpl name -> [TplData] Templates map[string][]*TplData `json:"templates"` }
type TplInfo ¶
type TplInfo struct { Description string `json:"description,omitempty" mapstructure:"description"` Parameters map[string]*TplInfoParam `json:"parameters,omitempty" mapstructure:"parameters"` DataDir []string `json:"data_dir" mapstructure:"data_dir"` }
type TplInfoParam ¶
type TplInfoParam struct { Description string `json:"description,omitempty" mapstructure:"description"` Type string `json:"type,omitempty" mapstructure:"type"` Mandatory bool `json:"mandatory,omitempty" mapstructure:"mandatory"` Default interface{} `json:"default,omitempty" mapstructure:"default"` }
Click to show internal directories.
Click to hide internal directories.