Versions in this module Expand all Collapse all v1 v1.2.1 Jan 4, 2017 Changes in this version type HttpError + Message []byte v1.2.0 Dec 20, 2016 Changes in this version + var DCJar http.CookieJar + func NewNamespace(namespace string) func(*StreamParams) + func NewStreamFilter(filter *EventFilter) func(*StreamParams) + type EventFilter struct + Object string + Parents []string + Type string + type OnCloseFunc func(string) + type OnConnectFunc func(string) + type OnErrorFunc func(error) + type OnMessageFunc func(*Event) + type Stream struct + ErrorChan chan error + Filter *EventFilter + MessageChan chan *Event + Namespace string + ToClose bool + func NewStream(options ...func(*StreamParams)) *Stream + func (stream *Stream) Close() + func (stream *Stream) Connect() error + func (stream *Stream) Exit() + func (stream *Stream) OnClose(onClose OnCloseFunc) + func (stream *Stream) OnConnect(onConnect OnConnectFunc) + func (stream *Stream) OnError(onError OnErrorFunc) + func (stream *Stream) OnMessage(onMessage OnMessageFunc) + func (stream *Stream) RunForever() + type StreamParams struct + Filter *EventFilter + Namespace string v1.1.0 Jun 22, 2016 v1.0.9 Jun 13, 2016 v1.0.8 Jun 13, 2016 Changes in this version + var Namespace string v1.0.7 May 17, 2016 Changes in this version + type HttpError struct + Status string + StatusCode int + func (e HttpError) Error() string v1.0.6 May 5, 2016 Changes in this version + var Debug = false type Event + Data EventErrorMessage + type EventErrorMessage struct + ErrorMessage string type NodeCreateRequest + Provider_options *ProviderOption v1.0.5 Apr 29, 2016 v1.0.4 Apr 15, 2016 v1.0.3 Apr 13, 2016 v1.0.2 Apr 4, 2016 v1.0.1 Feb 24, 2016 Changes in this version + const PING_PERIOD + const PONG_WAIT + const WRITE_WAIT + var ApiKey string + var AuthHeader string + var BaseUrl = "https://cloud.docker.com/" + var BasicAuth string + var Password string + var StreamUrl = "wss://cloud.docker.com/" + var User string + func DockerCloudCall(url string, requestType string, requestBody []byte) ([]byte, error) + func Events(c chan Event, e chan error) + func IsAuthenticated() bool + func LoadAuth() error + func MockupResponse(response_file string) (string, error) + func SetBaseUrl() string + func SetUserAgent(name string) string + type AZ struct + Available bool + Name string + Resource_uri string + func GetAZ(az string) (AZ, error) + type AZListResponse struct + Meta Meta + Objects []AZ + func ListAZ() (AZListResponse, error) + type Action struct + Action string + Body string + End_date string + Ip string + Location string + Logs string + Method string + Object string + Path string + Resource_uri string + Start_date string + State string + Uuid string + func GetAction(uuid string) (Action, error) + func (self *Action) Cancel() (Action, error) + func (self *Action) GetLogs(c chan Logs) + func (self *Action) Retry() (Action, error) + type ActionListResponse struct + Meta Meta + Objects []Action + func ListActions() (ActionListResponse, error) + type AuthConfig struct + Auths Config + type AuthObject struct + Auth string + Email string + type BuildSettings struct + Autobuild bool + Branch string + Dockerfile string + Image string + Resource_uri string + State string + Tag string + type BuildSource struct + Autotest string + Build_Settings []string + Image []string + Owner string + Repository string + Type string + Uuid string + type CListResponse struct + Meta Meta + Objects []Container + func ListContainers() (CListResponse, error) + type Config map[string]AuthObject + type Container struct + Autodestroy string + Autorestart string + Bindings []ContainerBinding + Container_envvars []ContainerEnvvar + Container_ports []ContainerPortInfo + Cpu_shares int + Deployed_datetime string + Destroyed_datetime string + Entrypoint string + Exit_code int + Exit_code_message string + Image_name string + Image_tag string + Last_metric Metric + Link_variables map[string]string + Linked_to_container []ContainerLinkInfo + Memory int + Name string + Net string + Node string + Pid string + Private_ip string + Privileged bool + Public_dns string + Resource_uri string + Roles []string + Run_command string + Service string + Started_datetime string + State string + Stopped_datetime string + Synchronized bool + Uuid string + Working_dir string + func GetContainer(uuid string) (Container, error) + func (self *Container) Exec(command string, c chan Exec) + func (self *Container) Logs(c chan Logs) + func (self *Container) Redeploy(reuse_volume ReuseVolumesOption) error + func (self *Container) Run(command string, c chan Exec) + func (self *Container) Start() error + func (self *Container) Stop() error + func (self *Container) Terminate() error + type ContainerBinding struct + Container_path string + Host_path string + Rewritable bool + Volume string + type ContainerEnvvar struct + Key string + Value string + type ContainerLinkInfo struct + Endpoints map[string]string + From_container string + Name string + To_container string + type ContainerPortInfo struct + Container string + Inner_port int + Outer_port int + Protocol string + type Event struct + Action string + Parents []string + Resource_uri string + State string + Type string + type Exec struct + Output string + StreamType string + Type string + type IAM struct + Instance_profile_name string + type LayerStruct struct + Author string + Creation string + Docker_id string + Entrypoint string + Envvars []ContainerEnvvar + Ports []Port + Resource_uri string + Run_command string + Volumes []VolumePath + type Logs struct + Log string + StreamType string + Timestamp int + Type string + type Meta struct + Limit int + Next string + TotalCount int + type Metric struct + Cpu float64 + Disk float64 + Memory float64 + type Network struct + CIDR string + Name string + type Node struct + Availability_zone string + Deployed_datetime string + Destroyed_datetime string + Docker_version string + Last_seen string + Node_cluster string + Private_ips []Network + Public_ip string + Region string + Resource_uri string + State string + Tags []NodeTag + Uuid string + func GetNode(uuid string) (Node, error) + func (self *Node) Events(c chan NodeEvent) + func (self *Node) Terminate() error + func (self *Node) Update(createRequest Node) error + func (self *Node) Upgrade() error + type NodeCluster struct + Current_num_nodes int + Deployed_datetime string + Destroyed_datetime string + Disk int + Name string + NodeType string + Nodes []string + Provider_options ProviderOption + Region string + Resource_uri string + State string + Tags []NodeTag + Target_num_nodes int + Uuid string + func CreateNodeCluster(createRequest NodeCreateRequest) (NodeCluster, error) + func GetNodeCluster(uuid string) (NodeCluster, error) + func (self *NodeCluster) Deploy() error + func (self *NodeCluster) Terminate() error + func (self *NodeCluster) Update(createRequest NodeCreateRequest) error + func (self *NodeCluster) Upgrade() error + type NodeClusterListResponse struct + Meta Meta + Objects []NodeCluster + func ListNodeClusters() (NodeClusterListResponse, error) + type NodeCreateRequest struct + Disk int + Name string + NodeType string + Region string + Tags []NodeTag + Target_num_nodes int + type NodeEvent struct + Log string + Type string + type NodeListResponse struct + Meta Meta + Objects []Node + func ListNodes() (NodeListResponse, error) + type NodeTag struct + Name string + type NodeType struct + Available bool + Label string + Name string + Provider string + Regions []string + Resource_uri string + func GetNodeType(provider string, name string) (NodeType, error) + type NodeTypeListResponse struct + Meta Meta + Objects []NodeType + func ListNodeTypes() (NodeTypeListResponse, error) + type Port struct + Port int + Protocol string + type Provider struct + Available bool + Label string + Name string + Regions []string + Resource_uri string + func GetProvider(name string) (Provider, error) + type ProviderListResponse struct + Meta Meta + Objects []Provider + func ListProviders() (ProviderListResponse, error) + type ProviderOption struct + Iam IAM + Vpc VPC + type Region struct + Available bool + Label string + Name string + Node_types []string + Provider string + Resource_uri string + func GetRegion(id string) (Region, error) + type RegionListResponse struct + Meta Meta + Objects []Region + func ListRegions() (RegionListResponse, error) + type Registry struct + Host string + Icon_url string + Is_ssl bool + Is_tutum_registry bool + Name string + Resource_uri string + type RegistryListResponse struct + Meta Meta + Objects []Registry + type Repository struct + Build_Source BuildSource + Description string + Icon_url string + In_use bool + Is_private_image bool + Jumpstart bool + Last_build_date string + Name string + Public_url string + Registry string + Resource_uri string + Star_count int + State string + Tags []string + func CreateRepository(createRequest RepositoryCreateRequest) (Repository, error) + func GetRepository(name string) (Repository, error) + func (self *Repository) Remove() error + func (self *Repository) Update(createRequest RepositoryCreateRequest) error + type RepositoryCreateRequest struct + Name string + Password string + Username string + type RepositoryListResponse struct + Meta Meta + Objects []RepositoryShort + func ListRepositories() (RepositoryListResponse, error) + type RepositoryShort struct + Build_Source string + Description string + Icon_url string + In_use bool + Is_private_image bool + Jumpstart bool + Last_build_date string + Name string + Public_url string + Registry string + Resource_uri string + Star_count int + State string + Tags []string + type ReuseVolumesOption struct + Reuse bool + type SListResponse struct + Meta Meta + Objects []Service + func ListServices() (SListResponse, error) + type Service struct + Autodestroy string + Autoredeploy bool + Autorestart string + Bindings []ServiceBinding + Container_envvars []ContainerEnvvar + Container_ports []ContainerPortInfo + Containers []string + Cpu_shares int + Current_num_containers int + Deployed_datetime string + Deployment_strategy string + Destroyed_datetime string + Entrypoint string + Image_name string + Image_tag string + Link_variables map[string]string + Linked_from_service []ServiceLinkInfo + Linked_to_service []ServiceLinkInfo + Memory int + Name string + Net string + Pid string + Privileged bool + Public_dns string + Resource_uri string + Roles []string + Run_command string + Running_num_containers int + Sequential_deployment bool + Stack string + Started_datetime string + State string + Stopped_datetime string + Stopped_num_containers int + Synchronized bool + Tags []ServiceTag + Target_num_containers int + Uuid string + Working_dir string + func CreateService(createRequest ServiceCreateRequest) (Service, error) + func GetService(uuid string) (Service, error) + func (self *Service) CallTrigger(trigger_uuid string) (Trigger, error) + func (self *Service) CreateTrigger(createRequest TriggerCreateRequest) (Trigger, error) + func (self *Service) DeleteTrigger(trigger_uuid string) error + func (self *Service) GetTrigger(trigger_uuid string) (Trigger, error) + func (self *Service) ListTriggers() (TriggerListResponse, error) + func (self *Service) Logs(c chan Logs) + func (self *Service) Redeploy(reuse_volume ReuseVolumesOption) error + func (self *Service) Scale() error + func (self *Service) Start() error + func (self *Service) StopService() error + func (self *Service) TerminateService() error + func (self *Service) Update(createRequest ServiceCreateRequest) error + type ServiceBinding struct + Container_path string + Host_path string + Rewritable bool + Volumes_from string + type ServiceCreateRequest struct + Autodestroy string + Autoredeploy bool + Autorestart string + Bindings []ServiceBinding + Container_envvars []ContainerEnvvar + Container_ports []ContainerPortInfo + Deployment_strategy string + Entrypoint string + Image string + Linked_to_service []ServiceLinkInfo + Name string + Net string + Pid string + Privileged bool + Roles []string + Run_command string + Sequential_deployment bool + Tags []string + Target_num_containers int + Working_dir string + type ServiceLinkInfo struct + From_service string + Name string + To_service string + type ServiceTag struct + Name string + type Stack struct + Deployed_datetime string + Destroyed_datetime string + Name string + Resource_uri string + Services []string + State string + Synchronized bool + Uuid string + func CreateStack(createRequest StackCreateRequest) (Stack, error) + func GetStack(uuid string) (Stack, error) + func (self *Stack) ExportStack() (string, error) + func (self *Stack) Redeploy(reuse_volume ReuseVolumesOption) error + func (self *Stack) Start() error + func (self *Stack) Stop() error + func (self *Stack) Terminate() error + func (self *Stack) Update(createRequest StackCreateRequest) error + type StackCreateRequest struct + Name string + Services []ServiceCreateRequest + type StackListResponse struct + Meta Meta + Objects []Stack + func ListStacks() (StackListResponse, error) + type Token struct + Token string + type Trigger struct + Name string + Operation string + Resource_uri string + Url string + type TriggerCreateRequest struct + Name string + Operation string + type TriggerListResponse struct + Meta Meta + Objects []Trigger + type VPC struct + Id string + Security_groups []string + Subnets []string + type VolumePath struct + Container_path string