Documentation ¶
Index ¶
- type Client
- func (m *Client) GetContainers() ([]Container, error)
- func (m *Client) GetHost(UUID string) (Host, error)
- func (m *Client) GetHosts() ([]Host, error)
- func (m *Client) GetSelfContainer() (Container, error)
- func (m *Client) GetSelfService() (Service, error)
- func (m *Client) GetSelfStack() (Stack, error)
- func (m *Client) GetServices() ([]Service, error)
- func (m *Client) GetVersion() (string, error)
- func (m *Client) OnChange(intervalSeconds int, do func(string))
- func (m *Client) SendRequest(path string) ([]byte, error)
- type Container
- type Host
- type Service
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetContainers ¶
func (*Client) GetSelfContainer ¶
func (*Client) GetSelfService ¶
func (*Client) GetSelfStack ¶
func (*Client) GetServices ¶
func (*Client) GetVersion ¶
type Container ¶
type Container struct { Name string `json:"name"` PrimaryIp string `json:"primary_ip"` Ips []string `json:"ips"` Ports []string `json:"ports"` ServiceName string `json:"service_name"` StackName string `json:"stack_name"` Labels map[string]string `json:"labels"` CreateIndex int `json:"create_index"` HostUUID string `json:"host_uuid"` }
type Service ¶
type Service struct { Name string `json:"name"` StackName string `json:"stack_name"` Kind string `json:"kind"` Hostname string `json:"hostname"` Vip string `json:"vip"` CreateIndex string `json:"create_index"` ExternalIps []string `json:"external_ips"` Sidekicks []string `json:"sidekicks"` Containers []string `json:"containers"` Ports []string `json:"ports"` Labels map[string]string `json:"labels"` Links map[string]string `json:"links"` Metadata map[string]string `json:"metadata"` }
Click to show internal directories.
Click to hide internal directories.