docker

package
v0.0.0-...-7eb5d47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	GENERATE_IMAGE       = "generate-image"
	LOAD_IMAGE           = "load-image"
	EXISTS_IMAGE         = "exists-image"
	MASTER_DEPLOY        = "master-deploy"
	APPEND_DEPLOY        = "append-deploy"
	NAME_CONTAINERS      = "name-containers"
	TOTAL_CONTAINERS     = "total-containers"
	OPERATION_CONTAINERS = "operation-containers"
	REMOVE_CONTAINER     = "remove-container"
	EMPTY_STR            = ""
)

Variables

This section is empty.

Functions

func RegisterOperationDocker

func RegisterOperationDocker(operation string)

func ResponseDocker

func ResponseDocker(body <-chan []byte)

Types

type Action

type Action struct {
	To        string
	From      string
	Container string
	Action    string
}

type Args

type Args struct {
	Name  string `xml:"name,attr,omitempty"`
	Value string `xml:",chardata"`
}

type Container

type Container struct {
	Name string `xml:"name,omitempty"`
}

type Deploy

type Deploy struct {
	To              string
	From            string
	Customer        string
	ApplicationName string
	Name            string
	Cpus            string
	Memory          string
	Ports           []Ports
	Args            []Args
	CreateImage     bool
	Image           string
}

type Element

type Element struct {
	XMLName xml.Name
	Value   string `xml:",chardata"`
}

type Elements

type Elements struct {
	ID              string           `xml:"id,omitempty"`
	Name            string           `xml:"name,omitempty"`
	Operation       string           `xml:"operation,omitempty"`
	Path            string           `xml:"path,omitempty"`
	Key             string           `xml:"key,omitempty"`
	Customer        string           `xml:"customer,omitempty"`
	ApplicationName string           `xml:"application-name,omitempty"`
	TotalContainers int              `xml:"total-containers,omitempty"`
	Cpus            string           `xml:"cpus,omitempty"`
	Memory          string           `xml:"memory,omitempty"`
	BuildName       string           `xml:"build-name,omitempty"`
	Tag             string           `xml:"tag,omitempty"`
	Image           string           `xml:"image,omitempty"`
	Address         string           `xml:"address,omitempty"`
	CreateImage     bool             `xml:"create-image,omitempty"`
	Minion          string           `xml:"minion,omitempty"`
	PortsContainer  []PortsContainer `xml:"portsContainer,omitempty"`
	Ports           []Ports          `xml:"ports,omitempty"`
	Containers      []Container      `xml:"containers,omitempty"`
	Args            []Args           `xml:"arg,omitempty"`
}

type IQ

type IQ struct {
	XMLName xml.Name `xml:"iq"`
	From    string   `xml:"from,attr,omitempty"`
	To      string   `xml:"to,attr,omitempty"`
	Type    string   `xml:"type,attr,omitempty"`
	ID      string   `xml:"id,attr,omitempty"`
	Error   *IQError
	Query   interface{}
}

func ActionContainer

func ActionContainer(action Action) (IQ, error)

func AppendDeploy

func AppendDeploy(deploy Deploy) (IQ, error)

func ExistsImage

func ExistsImage(image Image) (IQ, error)

func GenerateImage

func GenerateImage(image Image) (IQ, error)

func LoadImage

func LoadImage(image Image) (IQ, error)

func MasterDeploy

func MasterDeploy(deploy Deploy) (IQ, error)

func NameContainers

func NameContainers(from, to string) (IQ, error)

func RemoveContainer

func RemoveContainer(action Action) (IQ, error)

func TotalContainers

func TotalContainers(from, to string) (IQ, error)

type IQError

type IQError struct {
	XMLName xml.Name `xml:"jabber:client error"`
	Code    string   `xml:"code,attr,omitempty"`
	Type    string   `xml:"type,attr,omitempty"`
	Text    string   `xml:"text,omitempty"`
}

type Image

type Image struct {
	To        string
	From      string
	Name      string
	BuildName string
	Tag       string
	Path      string
}

type Ports

type Ports struct {
	Port     int    `xml:"port,omitempty"`
	Protocol string `xml:"protocol,omitempty"`
}

type PortsContainer

type PortsContainer struct {
	Source       string   `xml:"source,omitempty"`
	Destinations []string `xml:"destinations,omitempty"`
}

type QueryDocker

type QueryDocker struct {
	XMLName xml.Name `xml:"jabber:iq:docker query"`
	Action  string   `xml:"action,attr,omitempty"`
	Elements
}

type Response

type Response struct {
	Error    error
	Elements Elements
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL