Documentation ¶
Index ¶
- type Client
- 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) 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(ctx context.Context, scalingGroupID string) (string, error)
- func (c *Client) ListScalingGroups(ctx context.Context, uid string) (controlPlaneGroupIDs []string, workerGroupIDs []string, err 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 Azure Cloud.
func NewFromDefault ¶
NewFromDefault creates a client with initialized clients.
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 specified by its provider ID.
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.
Click to show internal directories.
Click to hide internal directories.