Documentation ¶
Index ¶
- Constants
- type Client
- func (c Client) Create(ctx context.Context, cluster *clusterv1.CnctCluster, ...) error
- func (c Client) Delete(ctx context.Context, cluster *clusterv1.CnctCluster, ...) error
- func (c Client) Exist(ctx context.Context, cluster *clusterv1.CnctCluster, ...) (bool, error)
- func (c Client) Update(ctx context.Context, cluster *clusterv1.CnctCluster, ...) error
- type ClientParams
Constants ¶
View Source
const (
ClusterAPIMachineIDAnnotationKey = "cluster.k8s.io/providerID" // Indicates a machine has been allocated
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Controller gomaasapi.Controller
}
func New ¶
func New(params *ClientParams) (Client, error)
func (Client) Create ¶
func (c Client) Create(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) error
Create creates a machine
func (Client) Delete ¶
func (c Client) Delete(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) error
Delete deletes a machine
func (Client) Exist ¶
func (c Client) Exist(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) (bool, error)
Exists test for the existence of a machine
func (Client) Update ¶
func (c Client) Update(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) error
Update updates a machine
type ClientParams ¶
Click to show internal directories.
Click to hide internal directories.