Documentation ¶
Index ¶
- type AutoscalingPoliciesGetter
- type AutoscalingPolicyInterface
- type Client
- func (c *Client) AutoscalingPolicies(organizationID, clusterID string) AutoscalingPolicyInterface
- func (c *Client) HKEClusters(organizationID string) HKEClusterInterface
- 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 HKEClusterInterface
- type HKEClustersGetter
- 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 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) HKEClusters ¶
func (c *Client) HKEClusters(organizationID string) HKEClusterInterface
HKEClusters returns the HKE 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 HKEClusterInterface ¶
type HKEClusterInterface interface { Create(req *types.CreateHKEClusterRequest) (*types.IDResponse, error) Get(id string) (*types.HKECluster, error) Delete(id string) error List() ([]types.HKECluster, error) }
HKEClusterInterface is the interface for HKE clusters
type HKEClustersGetter ¶
type HKEClustersGetter interface {
HKEClusters(organizationID string) HKEClusterInterface
}
HKEClustersGetter is the getter for HKE clusters
type Interface ¶
type Interface interface { RESTClient() rest.Interface HKEClustersGetter 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