Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type AZListResponse
- type Action
- type ActionListResponse
- type AuthConfig
- type AuthObject
- type BuildSettings
- type BuildSource
- type CListResponse
- type Config
- type Container
- 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
- type ContainerEnvvar
- type ContainerLinkInfo
- type ContainerPortInfo
- type Event
- type Exec
- type IAM
- type LayerStruct
- type Logs
- type Meta
- type Metric
- type Network
- type Node
- type NodeCluster
- type NodeClusterListResponse
- type NodeCreateRequest
- type NodeEvent
- type NodeListResponse
- type NodeTag
- type NodeType
- type NodeTypeListResponse
- type Port
- type Provider
- type ProviderListResponse
- type ProviderOption
- type Region
- type RegionListResponse
- type Registry
- type RegistryListResponse
- type Repository
- type RepositoryCreateRequest
- type RepositoryListResponse
- type RepositoryShort
- type ReuseVolumesOption
- type SListResponse
- type Service
- 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
- type ServiceCreateRequest
- type ServiceLinkInfo
- type ServiceTag
- type Stack
- type StackCreateRequest
- type StackListResponse
- type Token
- type Trigger
- type TriggerCreateRequest
- type TriggerListResponse
- type VPC
- type VolumePath
Constants ¶
Variables ¶
Functions ¶
func DockerCloudCall ¶
func IsAuthenticated ¶
func IsAuthenticated() bool
func MockupResponse ¶
func SetBaseUrl ¶
func SetBaseUrl() string
func SetUserAgent ¶
Types ¶
type AZ ¶
type AZListResponse ¶
func ListAZ ¶
func ListAZ() (AZListResponse, error)
type Action ¶
type Action struct { Action string `json:"action"` Body string `json:"body"` End_date string `json:"end_date"` Ip string `json:"ip"` Location string `json:"location"` Logs string `json:"logs"` Method string `json:"method"` Object string `json:"object"` Path string `json:"path"` Resource_uri string `json:"resource_uri"` Start_date string `json:"start_date"` State string `json:"state"` Uuid string `json:"uuid"` }
type ActionListResponse ¶
func ListActions ¶
func ListActions() (ActionListResponse, error)
type AuthConfig ¶
type AuthConfig struct {
Auths Config `json:"auths"`
}
type AuthObject ¶
type BuildSettings ¶
type BuildSource ¶
type BuildSource struct { Autotest string `json:"autotest,omitempty"` Build_Settings []string `json:"build_settings,omitempty"` Image []string `json:"Image"` Owner string `json:"owner,omitempty"` Repository string `json:"repository,omitempty"` Type string `json:"type,omitempty"` Uuid string `json:"uuid"` }
type CListResponse ¶
func ListContainers ¶
func ListContainers() (CListResponse, error)
type Config ¶
type Config map[string]AuthObject
type Container ¶
type Container struct { Autodestroy string `json:"autodestroy"` Autorestart string `json:"autorestart"` Bindings []ContainerBinding `json:"bindings"` Container_envvars []ContainerEnvvar `json:"container_envvars"` Container_ports []ContainerPortInfo `json:"container_ports"` Deployed_datetime string `json:"deployed_datetime"` Destroyed_datetime string `json:"destroyed_datetime"` Entrypoint string `json:"entrypoint"` Exit_code int `json:"exit_code"` Exit_code_message string `json:"exit_code_message"` Image_name string `json:"image_name"` Image_tag string `json:"image_tag"` Last_metric Metric `json:"last_metric"` Link_variables map[string]string `json:"link_variables"` Linked_to_container []ContainerLinkInfo `json:"linked_to_container"` Memory int `json:"memory"` Name string `json:"name"` Net string `json:"net"` Node string `json:"node"` Pid string `json:"pid"` Private_ip string `json:"private_ip"` Privileged bool `json:"privileged"` Public_dns string `json:"public_dns"` Resource_uri string `json:"resource_uri"` Roles []string `json:"roles"` Run_command string `json:"run_command"` Service string `json:"service"` Started_datetime string `json:"started_datetime"` State string `json:"state"` Stopped_datetime string `json:"stopped_datetime"` Synchronized bool `json:"synchronized"` Uuid string `json:"uuid"` Working_dir string `json:"working_dir"` }
func GetContainer ¶
func (*Container) Redeploy ¶
func (self *Container) Redeploy(reuse_volume ReuseVolumesOption) error
type ContainerBinding ¶
type ContainerEnvvar ¶
type ContainerLinkInfo ¶
type ContainerPortInfo ¶
type IAM ¶
type IAM struct {
Instance_profile_name string `json:"instance_profile_name,omitempty"`
}
type LayerStruct ¶
type LayerStruct struct { Author string `json:"author"` Creation string `json:"creation"` Docker_id string `json:"docker_id"` Entrypoint string `json:"entrypoint"` Envvars []ContainerEnvvar `json:"envvars"` Ports []Port `json:"ports"` Resource_uri string `json:"resource_uri"` Run_command string `json:"run_command"` Volumes []VolumePath `json:"volumes"` }
type Node ¶
type Node struct { Availability_zone string `json:"availability_zone,omniempty"` Deployed_datetime string `json:"deployed_datetime,omitempty"` Destroyed_datetime string `json:"destroyed_datetime,omitempty"` Docker_version string `json:"docker_version,omitempty"` Last_seen string `json:"last_seen,omitempty"` Node_cluster string `json:"node_cluster,omitempty"` Public_ip string `json:"public_ip,omitempty"` Private_ips []Network `json:"private_ips,omitempty"` Region string `json:"region,omitempty"` Resource_uri string `json:"resource_uri,omitempty"` State string `json:"state,omitempty"` Tags []NodeTag `json:"tags,omitempty"` Uuid string `json:"uuid,omitempty"` }
type NodeCluster ¶
type NodeCluster struct { Current_num_nodes int `json:"current_num_nodes"` Deployed_datetime string `json:"deployed_datetime"` Destroyed_datetime string `json:"destroyed_datetime"` Disk int `json:"disk"` Name string `json:"name"` Nodes []string `json:"nodes"` NodeType string `json:"node_type"` Provider_options ProviderOption `json:"provider_options"` Region string `json:"region"` Resource_uri string `json:"resource_uri"` State string `json:"state"` Tags []NodeTag `json:"tags,omitempty"` Target_num_nodes int `json:"target_num_nodes"` Uuid string `json:"uuid"` }
func CreateNodeCluster ¶
func CreateNodeCluster(createRequest NodeCreateRequest) (NodeCluster, error)
func GetNodeCluster ¶
func GetNodeCluster(uuid string) (NodeCluster, error)
func (*NodeCluster) Deploy ¶
func (self *NodeCluster) Deploy() error
func (*NodeCluster) Terminate ¶
func (self *NodeCluster) Terminate() error
func (*NodeCluster) Update ¶
func (self *NodeCluster) Update(createRequest NodeCreateRequest) error
func (*NodeCluster) Upgrade ¶
func (self *NodeCluster) Upgrade() error
type NodeClusterListResponse ¶
type NodeClusterListResponse struct { Meta Meta `json:"meta"` Objects []NodeCluster `json:"objects"` }
func ListNodeClusters ¶
func ListNodeClusters() (NodeClusterListResponse, error)
type NodeCreateRequest ¶
type NodeListResponse ¶
func ListNodes ¶
func ListNodes() (NodeListResponse, error)
type NodeType ¶
type NodeTypeListResponse ¶
func ListNodeTypes ¶
func ListNodeTypes() (NodeTypeListResponse, error)
type Provider ¶
type Provider struct { Available bool `json:"available"` Label string `json:"label"` Name string `json:"name"` Regions []string `json:"regions"` Resource_uri string `json:"resource_uri"` }
func GetProvider ¶
type ProviderListResponse ¶
func ListProviders ¶
func ListProviders() (ProviderListResponse, error)
type ProviderOption ¶
type Region ¶
type RegionListResponse ¶
func ListRegions ¶
func ListRegions() (RegionListResponse, error)
type RegistryListResponse ¶
type Repository ¶
type Repository struct { Build_Source BuildSource `json:"build_source,omitempty"` Description string `json:"description"` Icon_url string `json:"icon_url"` In_use bool `json:"in_use"` Is_private_image bool `json:"is_private_image"` Jumpstart bool `json:"jumpstart"` Last_build_date string `json:"last_build_date"` Name string `json:"name"` Public_url string `json:"public_url"` Registry string `json:"registry"` Resource_uri string `json:"resource_uri"` Star_count int `json:"star_count"` State string `json:"state"` Tags []string `json:"tags"` }
func CreateRepository ¶
func CreateRepository(createRequest RepositoryCreateRequest) (Repository, error)
func GetRepository ¶
func GetRepository(name string) (Repository, error)
func (*Repository) Remove ¶
func (self *Repository) Remove() error
func (*Repository) Update ¶
func (self *Repository) Update(createRequest RepositoryCreateRequest) error
type RepositoryCreateRequest ¶
type RepositoryListResponse ¶
type RepositoryListResponse struct { Meta Meta `json:"meta"` Objects []RepositoryShort `json:"objects"` }
func ListRepositories ¶
func ListRepositories() (RepositoryListResponse, error)
type RepositoryShort ¶
type RepositoryShort struct { Build_Source string `json:"build_source"` Description string `json:"description"` Icon_url string `json:"icon_url"` In_use bool `json:"in_use"` Is_private_image bool `json:"is_private_image"` Jumpstart bool `json:"jumpstart"` Last_build_date string `json:"last_build_date"` Name string `json:"name"` Public_url string `json:"public_url"` Registry string `json:"registry"` Resource_uri string `json:"resource_uri"` Star_count int `json:"star_count"` State string `json:"state"` Tags []string `json:"tags"` }
type ReuseVolumesOption ¶
type ReuseVolumesOption struct {
Reuse bool
}
type SListResponse ¶
func ListServices ¶
func ListServices() (SListResponse, error)
type Service ¶
type Service struct { Autodestroy string `json:"autodestroy"` Autoredeploy bool `json:"autoredeploy"` Autorestart string `json:"autorestart"` Bindings []ServiceBinding `json:"bindings"` Container_envvars []ContainerEnvvar `json:"container_envvars"` Container_ports []ContainerPortInfo `json:"container_ports"` Containers []string `json:"containers"` Current_num_containers int `json:"current_num_containers"` Deployed_datetime string `json:"deployed_datetime"` Deployment_strategy string `json:"deployment_strategy"` Destroyed_datetime string `json:"destroyed_datetime"` Entrypoint string `json:"entrypoint"` Image_name string `json:"image_name"` Image_tag string `json:"image_tag"` Link_variables map[string]string `json:"link_variables"` Linked_from_service []ServiceLinkInfo `json:"linked_from_service"` Linked_to_service []ServiceLinkInfo `json:"linked_to_service"` Memory int `json:"memory"` Name string `json:"name"` Net string `json:"net"` Pid string `json:"pid"` Privileged bool `json:"privileged"` Public_dns string `json:"public_dns"` Resource_uri string `json:"resource_uri"` Roles []string `json:"roles"` Run_command string `json:"run_command"` Running_num_containers int `json:"running_num_containers"` Sequential_deployment bool `json:"sequential_deployment"` Stack string `json:"stack"` Started_datetime string `json:"started_datetime"` State string `json:"state"` Stopped_datetime string `json:"stopped_datetime"` Stopped_num_containers int `json:"stopped_num_containers"` Synchronized bool `json:"synchronized"` Tags []ServiceTag `json:"tags"` Target_num_containers int `json:"target_num_containers"` Uuid string `json:"uuid"` Working_dir string `json:"working_dir"` }
func CreateService ¶
func CreateService(createRequest ServiceCreateRequest) (Service, error)
func GetService ¶
func (*Service) CallTrigger ¶
func (*Service) CreateTrigger ¶
func (self *Service) CreateTrigger(createRequest TriggerCreateRequest) (Trigger, error)
func (*Service) DeleteTrigger ¶
func (*Service) ListTriggers ¶
func (self *Service) ListTriggers() (TriggerListResponse, error)
func (*Service) Redeploy ¶
func (self *Service) Redeploy(reuse_volume ReuseVolumesOption) error
func (*Service) StopService ¶
func (*Service) TerminateService ¶
func (*Service) Update ¶
func (self *Service) Update(createRequest ServiceCreateRequest) error
type ServiceBinding ¶
type ServiceCreateRequest ¶
type ServiceCreateRequest struct { Autodestroy string `json:"autodestroy,omitempty"` Autoredeploy bool `json:"autoredeploy,omitempty"` Autorestart string `json:"autorestart,omitempty"` Bindings []ServiceBinding `json:"bindings,omitempty"` Container_envvars []ContainerEnvvar `json:"container_envvars,omitempty"` Container_ports []ContainerPortInfo `json:"container_ports,omitempty"` Deployment_strategy string `json:"deployment_strategy,omitempty"` Entrypoint string `json:"entrypoint,omitempty"` Image string `json:"image,omitempty"` Linked_to_service []ServiceLinkInfo `json:"linked_to_service,omitempty"` Name string `json:"name,omitempty"` Net string `json:"net,omitempty"` Pid string `json:"pid,omitempty"` Privileged bool `json:"privileged,omitempty"` Roles []string `json:"roles,omitempty"` Run_command string `json:"run_command,omitempty"` Sequential_deployment bool `json:"sequential_deployment,omitempty"` Tags []string `json:"tags,omitempty"` Target_num_containers int `json:"target_num_containers,omitempty"` Working_dir string `json:"working_dir,omitempty"` }
type ServiceLinkInfo ¶
type ServiceTag ¶
type ServiceTag struct {
Name string `json:"name"`
}
type Stack ¶
type Stack struct { Deployed_datetime string `json:"deployed_datetime"` Destroyed_datetime string `json:"destroyed_datetime"` Name string `json:"name"` Resource_uri string `json:"resource_uri"` Services []string `json:"services"` State string `json:"state"` Synchronized bool `json:"synchronized"` Uuid string `json:"uuid"` }
func CreateStack ¶
func CreateStack(createRequest StackCreateRequest) (Stack, error)
func (*Stack) ExportStack ¶
func (*Stack) Redeploy ¶
func (self *Stack) Redeploy(reuse_volume ReuseVolumesOption) error
func (*Stack) Update ¶
func (self *Stack) Update(createRequest StackCreateRequest) error
type StackCreateRequest ¶
type StackCreateRequest struct { Name string `json:"name,omitempty"` Services []ServiceCreateRequest `json:"services,omitempty"` }
type StackListResponse ¶
func ListStacks ¶
func ListStacks() (StackListResponse, error)
type TriggerCreateRequest ¶
type TriggerListResponse ¶
type VolumePath ¶
type VolumePath struct {
Container_path string `json:"container_path"`
}
Click to show internal directories.
Click to hide internal directories.