Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetCluster(project, location, name string) (*apis.Cluster, error)
- func (c *Client) ListClusters(project string) ([]*apis.Cluster, error)
- func (c *Client) PauseCluster(cluster *apis.Cluster) error
- func (c *Client) RefreshCluster(cluster *apis.Cluster) error
- func (c *Client) UnpauseCluster(cluster *apis.Cluster) error
- type Operation
- type OperationFilter
- type Options
Constants ¶
View Source
const ( SetNodePoolSize = "SET_NODE_POOL_SIZE" Done = "DONE" Running = "RUNNING" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.3
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetCluster ¶ added in v0.1.3
GetCluster return a cluster if exists or nil otherwise
func (*Client) ListClusters ¶ added in v0.1.3
ListClusters return all clusters is running in the input project
func (*Client) PauseCluster ¶ added in v0.1.3
PauseCluster pasue the input cluster. This function will pause all node pools in the input cluster regradless the current pools in the current cluster. This will helpful when you can ignore the pause action with some pools.
func (*Client) RefreshCluster ¶ added in v0.1.3
RefreshCluster recreate the worker nodes of the input clusters. This function will ignore with a node pool has not `spot` or `preemptible` type
type Operation ¶ added in v0.1.2
type Operation struct { Name string `json:"name,omitempty"` OperationType string `json:"operation_type,omitempty"` StartTime string `json:"start_time,omitempty"` EndTime string `json:"end_time,omitempty"` TargetLink string `json:"target_link,omitempty"` Zone string `json:"zone,omitempty"` Status string `json:"status,omitempty"` }
type OperationFilter ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.