client

package
v2.19.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (c *Client) AutoscalingCloudProvider() string

AutoscalingCloudProvider returns the cloud-provider name as used by k8s cluster-autoscaler.

func (*Client) CreateNode

func (c *Client) CreateNode(_ context.Context, _ string) (nodeName, _ string, err error)

CreateNode creates a new node inside a specified scaling group at the CSP and returns its future name and provider id.

func (*Client) DeleteNode

func (c *Client) DeleteNode(_ context.Context, _ string) error

DeleteNode starts the termination of the node at the CSP.

func (*Client) GetAutoscalingGroupName

func (c *Client) GetAutoscalingGroupName(scalingGroupID string) (string, error)

GetAutoscalingGroupName retrieves the name of a scaling group as needed by the cluster-autoscaler.

func (*Client) GetNodeImage

func (c *Client) GetNodeImage(_ context.Context, _ string) (string, error)

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

func (c *Client) GetScalingGroupID(_ context.Context, _ string) (string, error)

GetScalingGroupID retrieves the scaling group that a node is part of.

func (*Client) GetScalingGroupImage

func (c *Client) GetScalingGroupImage(_ context.Context, _ string) (string, error)

GetScalingGroupImage retrieves the image currently used by a scaling group.

func (*Client) GetScalingGroupName

func (c *Client) GetScalingGroupName(scalingGroupID string) (string, error)

GetScalingGroupName retrieves the name of a scaling group.

func (*Client) ListScalingGroups

func (c *Client) ListScalingGroups(_ context.Context, _ string) ([]cspapi.ScalingGroup, error)

ListScalingGroups retrieves a list of scaling groups for the cluster.

func (*Client) SetScalingGroupImage

func (c *Client) SetScalingGroupImage(_ context.Context, _, _ string) error

SetScalingGroupImage sets the image to be used by newly created nodes in a scaling group.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL