Documentation ¶
Index ¶
- type Client
- func (c *Client) Destroy(name string) error
- func (c *Client) Load(name string) error
- func (c *Client) Machines() ([]Machine, error)
- func (c *Client) Start(name string) error
- func (c *Client) Stop(name string) error
- func (c *Client) Submit(name string, opts []*UnitOption, targetState string) error
- func (c *Client) UnitStates()
- func (c *Client) Units() ([]Unit, error)
- func (c *Client) Unload(name string) error
- type Error
- type Machine
- type Unit
- type UnitOption
- type UnitState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
URL string
}
func NewClient ¶
NewClient creates a basic client that is configured to be used with the given fleet HTTP API URL.
func (*Client) Submit ¶
func (c *Client) Submit(name string, opts []*UnitOption, targetState string) error
func (*Client) UnitStates ¶
func (c *Client) UnitStates()
type Error ¶
type Error struct{}
TODO See for more information about the fleet API's error https://github.com/coreos/fleet/blob/master/Documentation/api-v1.md#error-communication
type Unit ¶
type Unit struct { Name string `json:"name,omitempty"` Options []*UnitOption `json:"options,omitempty"` DesiredState string `json:"desiredState,omitempty"` CurrentState string `json:"currentState,omitempty"` MachineID string `json:"machineID,omitempty"` }
type UnitOption ¶
Click to show internal directories.
Click to hide internal directories.