Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(input *CreateClusterInput) (*CreateClusterOutput, error)
- func (c *Client) Delete(input *DeleteClusterInput) (*DeleteClusterOutput, error)
- func (c *Client) DisableMaintenanceMode(input *DisableMaintenanceModeInput) (*DisableMaintenanceModeOutput, error)
- func (c *Client) EnableMaintenanceMode(input *EnableMaintenanceModeInput) (*EnableMaintenanceModeOutput, error)
- func (c *Client) Get(input *GetClusterInput) (*GetClusterOutput, error)
- func (c *Client) List(input *ListClusterInput) (*ListClusterOutput, error)
- func (c *Client) Update(input *UpdateClusterInput) (*UpdateClusterOutput, error)
- type Cluster
- type CreateClusterInput
- type CreateClusterOutput
- type DeleteClusterInput
- type DeleteClusterOutput
- type DisableMaintenanceModeInput
- type DisableMaintenanceModeOutput
- type EnableMaintenanceModeInput
- type EnableMaintenanceModeOutput
- type GetClusterInput
- type GetClusterOutput
- type ListClusterInput
- type ListClusterOutput
- type UpdateClusterInput
- type UpdateClusterOutput
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) Create ¶
func (c *Client) Create(input *CreateClusterInput) (*CreateClusterOutput, error)
func (*Client) Delete ¶
func (c *Client) Delete(input *DeleteClusterInput) (*DeleteClusterOutput, error)
func (*Client) DisableMaintenanceMode ¶
func (c *Client) DisableMaintenanceMode(input *DisableMaintenanceModeInput) (*DisableMaintenanceModeOutput, error)
func (*Client) EnableMaintenanceMode ¶
func (c *Client) EnableMaintenanceMode(input *EnableMaintenanceModeInput) (*EnableMaintenanceModeOutput, error)
func (*Client) Get ¶
func (c *Client) Get(input *GetClusterInput) (*GetClusterOutput, error)
func (*Client) List ¶
func (c *Client) List(input *ListClusterInput) (*ListClusterOutput, error)
func (*Client) Update ¶
func (c *Client) Update(input *UpdateClusterInput) (*UpdateClusterOutput, error)
type Cluster ¶
type Cluster struct {
Id int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Region string `json:"region"`
Version string `json:"version"`
Provider string `json:"provider"`
Status string `json:"status"`
// Fields that are only returned for admins
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
AgentConnected bool `json:"agent_connected,omitempty"`
AgentLastPing time.Time `json:"agent_last_ping,omitempty"`
AgentIdentifier string `json:"agent_identifier,omitempty"`
AgentVersion string `json:"agent_version,omitempty"`
}
type CreateClusterInput ¶
type CreateClusterInput struct {
}
type CreateClusterOutput ¶
type CreateClusterOutput struct {
}
type DeleteClusterInput ¶
type DeleteClusterInput struct {
}
type DeleteClusterOutput ¶
type DeleteClusterOutput struct {
}
type DisableMaintenanceModeInput ¶
type DisableMaintenanceModeInput struct {
}
type DisableMaintenanceModeOutput ¶
type DisableMaintenanceModeOutput struct {
}
type EnableMaintenanceModeInput ¶
type EnableMaintenanceModeInput struct {
}
type EnableMaintenanceModeOutput ¶
type EnableMaintenanceModeOutput struct {
}
type GetClusterInput ¶
type GetClusterInput struct {
ClusterId int
}
type GetClusterOutput ¶
type GetClusterOutput struct {
Cluster *Cluster `json:"cluster"`
}
type ListClusterInput ¶
type ListClusterInput struct {
}
func (*ListClusterInput) ToQueryParams ¶
func (i *ListClusterInput) ToQueryParams() map[string]string
type ListClusterOutput ¶
type ListClusterOutput struct {
Clusters []*Cluster `json:"clusters"`
}
type UpdateClusterInput ¶
type UpdateClusterOutput ¶
type UpdateClusterOutput struct {
Cluster Cluster `json:"cluster"`
}
Click to show internal directories.
Click to hide internal directories.