Documentation ¶
Index ¶
- type Client
- func (c *Client) AutoscalingCloudProvider() string
- func (c *Client) CreateNode(_ context.Context, _ string) (nodeName, _ string, err error)
- func (c *Client) DeleteNode(_ context.Context, _ string) error
- func (c *Client) GetAutoscalingGroupName(scalingGroupID string) (string, error)
- func (c *Client) GetNodeImage(_ context.Context, _ string) (string, error)
- func (c *Client) GetNodeState(_ context.Context, _ string) (updatev1alpha1.CSPNodeState, error)
- func (c *Client) GetScalingGroupID(_ context.Context, _ string) (string, error)
- func (c *Client) GetScalingGroupImage(_ context.Context, _ string) (string, error)
- func (c *Client) GetScalingGroupName(scalingGroupID string) (string, error)
- func (c *Client) ListScalingGroups(_ context.Context, _ string) ([]cspapi.ScalingGroup, error)
- func (c *Client) SetScalingGroupImage(_ context.Context, _, _ string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct{}
Client is a stub client providing the minimal implementation to set up the initial resources.
func (*Client) AutoscalingCloudProvider ¶
AutoscalingCloudProvider returns the cloud-provider name as used by k8s cluster-autoscaler.
func (*Client) CreateNode ¶
CreateNode creates a new node inside a specified scaling group at the CSP and returns its future name and provider id.
func (*Client) DeleteNode ¶
DeleteNode starts the termination of the node at the CSP.
func (*Client) GetAutoscalingGroupName ¶
GetAutoscalingGroupName retrieves the name of a scaling group as needed by the cluster-autoscaler.
func (*Client) GetNodeImage ¶
GetNodeImage retrieves the image currently used by a node.
func (*Client) GetNodeState ¶
func (c *Client) GetNodeState(_ context.Context, _ string) (updatev1alpha1.CSPNodeState, error)
GetNodeState retrieves the state of a pending node from a CSP.
func (*Client) GetScalingGroupID ¶
GetScalingGroupID retrieves the scaling group that a node is part of.
func (*Client) GetScalingGroupImage ¶
GetScalingGroupImage retrieves the image currently used by a scaling group.
func (*Client) GetScalingGroupName ¶
GetScalingGroupName retrieves the name of a scaling group.
func (*Client) ListScalingGroups ¶
ListScalingGroups retrieves a list of scaling groups for the cluster.