Documentation
¶
Index ¶
- type AutoscalingPoliciesGetter
- type AutoscalingPolicyInterface
- type CKEClusterInterface
- type CKEClustersGetter
- type Client
- func (c *Client) AutoscalingPolicies(organizationID, clusterID string) AutoscalingPolicyInterface
- func (c *Client) CKEClusters(organizationID string) CKEClusterInterface
- func (c *Client) NodePoolLabels(organizationID, clusterID, nodePoolID string) NodePoolLabelInterface
- func (c *Client) NodePools(organizationID, clusterID string) NodePoolInterface
- func (c *Client) Nodes(organizationID, clusterID, nodePoolID string) NodeInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) Templates(organizationID string) TemplateInterface
- type Interface
- type NodeInterface
- type NodePoolInterface
- type NodePoolLabelInterface
- type NodePoolLabelsGetter
- type NodePoolsGetter
- type NodesGetter
- type TemplateInterface
- type TemplatesGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoscalingPoliciesGetter ¶
type AutoscalingPoliciesGetter interface {
AutoscalingPolicies(organizationID, clusterID string) AutoscalingPolicyInterface
}
AutoscalingPoliciesGetter is the getter for autoscaling policies
type AutoscalingPolicyInterface ¶
type AutoscalingPolicyInterface interface {
Create(*types.AutoscalingPolicy) (*types.AutoscalingPolicy, error)
Get(id string) (*types.AutoscalingPolicy, error)
Delete(id string) error
List() ([]types.AutoscalingPolicy, error)
ListForNodePool(nodePoolID string) ([]types.AutoscalingPolicy, error)
}
AutoscalingPolicyInterface is the interface for autoscaling policies
type CKEClusterInterface ¶
type CKEClusterInterface interface {
Create(req *types.CreateCKEClusterRequest) (*types.IDResponse, error)
Get(id string) (*types.CKECluster, error)
Delete(id string) error
List() ([]types.CKECluster, error)
}
CKEClusterInterface is the interface for CKE clusters
type CKEClustersGetter ¶
type CKEClustersGetter interface {
CKEClusters(organizationID string) CKEClusterInterface
}
CKEClustersGetter is the getter for CKE clusters
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Provision client
func (*Client) AutoscalingPolicies ¶
func (c *Client) AutoscalingPolicies(organizationID, clusterID string) AutoscalingPolicyInterface
AutoscalingPolicies returns the autoscaling policies interface
func (*Client) CKEClusters ¶
func (c *Client) CKEClusters(organizationID string) CKEClusterInterface
CKEClusters returns the CKE clusters interface
func (*Client) NodePoolLabels ¶
func (c *Client) NodePoolLabels(organizationID, clusterID, nodePoolID string) NodePoolLabelInterface
NodePoolLabels returns the nodes interface
func (*Client) NodePools ¶
func (c *Client) NodePools(organizationID, clusterID string) NodePoolInterface
NodePools returns the node pools interface
func (*Client) Nodes ¶
func (c *Client) Nodes(organizationID, clusterID, nodePoolID string) NodeInterface
Nodes returns the nodes interface
func (*Client) RESTClient ¶
RESTClient returns the REST client associated with this client
func (*Client) Templates ¶
func (c *Client) Templates(organizationID string) TemplateInterface
Templates returns the templates interface
type Interface ¶
type Interface interface {
RESTClient() rest.Interface
CKEClustersGetter
TemplatesGetter
NodePoolsGetter
NodesGetter
AutoscalingPoliciesGetter
NodePoolLabelsGetter
}
Interface is the interface for Provision
type NodeInterface ¶
type NodeInterface interface {
Create(*types.Node) (*types.Node, error)
Get(id string) (*types.Node, error)
Delete(id string) error
List() ([]types.Node, error)
}
NodeInterface is the interface for nodes
type NodePoolInterface ¶
type NodePoolInterface interface {
Create(req *types.NodePoolDigitalOceanCreateRequest) (*types.NodePool, error)
Get(id string) (*types.NodePool, error)
Delete(id string) error
List() ([]types.NodePool, error)
Scale(id string, req *types.NodePoolScaleRequest) (*types.NodePool, error)
Upgrade(id string, req *types.NodePoolUpgradeRequest) (*types.NodePool, error)
}
NodePoolInterface is the interface for node pools
type NodePoolLabelInterface ¶
type NodePoolLabelInterface interface {
Create(*types.NodePoolLabel) (*types.IDResponse, error)
Get(id string) (*types.NodePoolLabel, error)
Delete(id string) error
List() ([]types.NodePoolLabel, error)
}
NodePoolLabelInterface is the interface for labels
type NodePoolLabelsGetter ¶
type NodePoolLabelsGetter interface {
NodePoolLabels(organizationID, clusterID, labelPoolID string) NodePoolLabelInterface
}
NodePoolLabelsGetter is the getter for labels
type NodePoolsGetter ¶
type NodePoolsGetter interface {
NodePools(organizationID, clusterID string) NodePoolInterface
}
NodePoolsGetter is the getter for node pools
type NodesGetter ¶
type NodesGetter interface {
Nodes(organizationID, clusterID, nodePoolID string) NodeInterface
}
NodesGetter is the getter for nodes
type TemplateInterface ¶
type TemplateInterface interface {
Create(req *types.CreateTemplateRequest) (*types.Template, error)
Get(id string) (*types.Template, error)
Delete(id string) error
List() ([]types.Template, error)
}
TemplateInterface is the interface for templates
type TemplatesGetter ¶
type TemplatesGetter interface {
Templates(organizationID string) TemplateInterface
}
TemplatesGetter is the getter for templates