Documentation ¶
Index ¶
- type Client
- func (c *Client) AutoscalingCloudProvider() string
- func (c *Client) CreateNode(ctx context.Context, scalingGroupID string) (nodeName, providerID string, err error)
- func (c *Client) DeleteNode(ctx context.Context, providerID string) error
- func (c *Client) GetAutoscalingGroupName(scalingGroupID string) (string, error)
- func (c *Client) GetNodeImage(ctx context.Context, providerID string) (string, error)
- func (c *Client) GetNodeState(ctx context.Context, providerID string) (updatev1alpha1.CSPNodeState, error)
- func (c *Client) GetScalingGroupID(ctx context.Context, providerID string) (string, error)
- func (c *Client) GetScalingGroupImage(ctx context.Context, scalingGroupID string) (string, error)
- func (c *Client) GetScalingGroupName(scalingGroupID string) (string, error)
- func (c *Client) ListScalingGroups(ctx context.Context, uid string) ([]cspapi.ScalingGroup, error)
- func (c *Client) SetScalingGroupImage(ctx context.Context, scalingGroupID, imageURI string) error
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
}
Client is a client for the AWS Cloud.
func NewWithRegion ¶
NewWithRegion creates a client with initialized clients and a given region.
func (*Client) AutoscalingCloudProvider ¶
AutoscalingCloudProvider returns the cloud-provider name as used by k8s cluster-autoscaler.
func (*Client) CreateNode ¶
func (c *Client) CreateNode(ctx context.Context, scalingGroupID string) (nodeName, providerID string, err error)
CreateNode creates a node in the specified scaling group.
func (*Client) DeleteNode ¶
DeleteNode deletes a node from the specified scaling group.
func (*Client) GetAutoscalingGroupName ¶
GetAutoscalingGroupName retrieves the name of a scaling group as needed by the cluster-autoscaler.
func (*Client) GetNodeImage ¶
GetNodeImage returns the image name of the node.
func (*Client) GetNodeState ¶
func (c *Client) GetNodeState(ctx context.Context, providerID string) (updatev1alpha1.CSPNodeState, error)
GetNodeState returns the state of the node.
func (*Client) GetScalingGroupID ¶
GetScalingGroupID returns the scaling group ID of the node.
func (*Client) GetScalingGroupImage ¶
GetScalingGroupImage returns the image URI of the scaling group.
func (*Client) GetScalingGroupName ¶
GetScalingGroupName retrieves the name of a scaling group. This keeps the casing of the original name, but Kubernetes requires the name to be lowercase, so use strings.ToLower() on the result if using the name in a Kubernetes context.
func (*Client) ListScalingGroups ¶
ListScalingGroups retrieves a list of scaling groups for the cluster.