Documentation
¶
Index ¶
- func Execute() error
- func GetAPIKey() string
- func GetMasterURL() string
- func GetToken() string
- func IsVerbose() bool
- type Client
- func (c *Client) CreatePod(name, namespace string, labels map[string]string, containers []types.Container) (*types.Pod, error)
- func (c *Client) CreateService(name, namespace string, selector map[string]string, ports []types.ServicePort, ...) (*types.Service, error)
- func (c *Client) CreateTask(name, image string, env map[string]string) (*types.Task, error)
- func (c *Client) CreateTaskWithPorts(name, image string, env map[string]string, portSpecs []string) (*types.Task, error)
- func (c *Client) DeletePod(podID string) error
- func (c *Client) DeleteService(serviceID string) error
- func (c *Client) GetCurrentUser() (map[string]interface{}, error)
- func (c *Client) GetEndpoints(serviceID string) (*types.Endpoints, error)
- func (c *Client) GetNode(nodeID string) (*types.Node, error)
- func (c *Client) GetPod(podID string) (*types.Pod, error)
- func (c *Client) GetPodLogs(podID string, containerName string, tail int) (map[string]string, error)
- func (c *Client) GetService(serviceID string) (*types.Service, error)
- func (c *Client) GetTask(taskID string) (*types.Task, error)
- func (c *Client) GetTaskLogs(task *types.Task, tail int) (string, error)
- func (c *Client) ListNodes() ([]types.Node, error)
- func (c *Client) ListPods() ([]types.Pod, error)
- func (c *Client) ListServices(namespace string) ([]types.Service, error)
- func (c *Client) ListTasks() ([]types.Task, error)
- func (c *Client) Login(username, password string) (*LoginResponse, error)
- func (c *Client) Prune() (*types.PruneResult, error)
- func (c *Client) PruneAll() (*types.PruneResult, error)
- func (c *Client) SetAPIKey(apiKey string)
- func (c *Client) SetToken(token string)
- type LoginResponse
- type PruneResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMasterURL ¶
func GetMasterURL() string
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewAuthenticatedClient ¶
func NewAuthenticatedClient() *Client
func (*Client) CreateService ¶
func (*Client) CreateTask ¶
func (*Client) CreateTaskWithPorts ¶
func (*Client) DeleteService ¶
func (*Client) GetCurrentUser ¶
func (*Client) GetEndpoints ¶
func (*Client) GetPodLogs ¶
func (*Client) GetTaskLogs ¶
func (*Client) ListServices ¶
type LoginResponse ¶
type PruneResult ¶
type PruneResult = types.PruneResult
Click to show internal directories.
Click to hide internal directories.