Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBucketNotFound error = errors.New("BUCKET_NOT_FOUND")
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type BuildImageOptions ¶
type Config ¶
type Config struct { Image string `json:"image"` Env []string `json:"env"` Cmd []string `json:"cmd"` Volumes []Volume `json:"volumes"` Mounts []Mount `json:"mounts"` DNS DNSConfig `json:"dns"` CPU CPUConfig `json:"cpu"` Ports []Port `json:"ports"` Memory MemoryConfig `json:"memory"` Entrypoint []string `json:"entrypoint"` }
type Container ¶
type Container struct { CID string `json:"cid"` Name string `json:"name,omitempty"` Image string `json:"image,omitempty"` Command string `json:"command,omitempty"` State State `json:"state,omitempty"` Ports []Port `json:"ports,omitempty"` Config Config HostConfig HostConfig LB struct { ID string APP string } `json:"-"` }
type HostConfig ¶
type HostConfig struct { DNS DNSConfig `json:"dns"` Binds []string `json:"binds"` CPU CPUConfig `json:"cpu"` Ports []Port `json:"ports"` RestartPolicy RestartPolicyConfig `json:"restart"` Memory MemoryConfig `json:"memory"` Privileged bool `json:"privileged"` }
type IContainers ¶
type IContainers interface { PullImage(i Image) error BuildImage(opts BuildImageOptions) error StartContainer(*Container) error StopContainer(*Container) error RestartContainer(*Container) error RemoveContainer(*Container) error ListImages() (map[string]Image, error) ListContainers() (map[string]Container, error) System() (*Node, error) }
type Image ¶
type Image struct { Name string `json:"name"` Auth AuthConfig `json:"auth,omitempty"` }
type MemoryConfig ¶
type Node ¶
type Node struct { UUID string Driver struct { Name string `json:"name"` Version string `json:"version"` } `json:"driver"` Hostname string `json:"hostname"` Architecture string `json:"arhitecture"` OS struct { Name string `json:"name"` Type string `json:"type"` } `json:"os"` CPU struct { Name string `json:"name"` Cores int64 `json:"cores"` } `json:"cpu"` Memory struct { Total int64 `json:"total"` } `json:"memory"` IPs []struct { Interface string `json:"interfaces,omitempty"` IP string `json:"ip,omitempty"` Main bool `json:"main,omitempty"` } `json:"ips"` Storage struct { Available string `json:"available"` Used string `json:"used"` Total string `json:"total"` } `json:"storage"` }
type RestartPolicyConfig ¶
type State ¶
type State struct { Running bool `json:"running,omitempty"` Paused bool `json:"paused,omitempty"` Restarting bool `json:"restarting,omitempty"` OOMKilled bool `json:"oomKilled,omitempty"` Pid int `json:"pid,omitempty"` ExitCode int `json:"exit_code,omitempty"` Error string `json:"error,omitempty"` Started time.Time `json:"started,omitempty"` Finished time.Time `json:"finished,omitempty"` }
Click to show internal directories.
Click to hide internal directories.