dataplatformnodepool

package
v0.3.14-test Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCreateInput

func GenerateCreateInput(cr *v1alpha1.DataplatformNodepool) *sdkgo.CreateNodePoolRequest

GenerateCreateInput returns sdkgo.KubernetesNodepoolForPost based on the CR spec

func GenerateUpdateInput

func GenerateUpdateInput(cr *v1alpha1.DataplatformNodepool) *sdkgo.PatchNodePoolRequest

GenerateUpdateInput returns sdkgo.KubernetesNodepoolForPut based on the CR spec modifications

func IsUpToDate

IsUpToDate returns true if the dataplatform cluster is up-to-date or false if it does not

func LateInitializer

LateInitializer fills the empty fields in *v1alpha1.NodepoolParameters with the values seen in sdkgo.KubernetesNodepool.

func LateStatusInitializer

LateStatusInitializer fills the empty fields in *v1alpha1.NodepoolObservation with the values seen in sdkgo.KubernetesNodepool.

Types

type APIClient

type APIClient struct {
	*clients.IonosServices
}

APIClient is a wrapper around IONOS Service

func (*APIClient) CreateDataplatformNodepool

func (dp *APIClient) CreateDataplatformNodepool(ctx context.Context, clusterID string, cluster sdkgo.CreateNodePoolRequest) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)

CreateDataplatformNodepool based on NodepoolsPost

func (*APIClient) DeleteDataPlatformNodepool

func (dp *APIClient) DeleteDataPlatformNodepool(ctx context.Context, clusterID, nodepoolID string) (*sdkgo.APIResponse, error)

DeleteDataPlatformNodepool based on clusterID and nodepoolID

func (*APIClient) GetAPIClient

func (dp *APIClient) GetAPIClient() *sdkgo.APIClient

GetAPIClient gets the APIClient

func (*APIClient) GetDataplatformNodepoolByID

func (dp *APIClient) GetDataplatformNodepoolByID(ctx context.Context, clusterID, nodepoolID string) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)

GetDataplatformNodepoolByID based on clusterID

func (*APIClient) IsDataplatformDeleted

func (dp *APIClient) IsDataplatformDeleted(ctx context.Context, ids ...string) (bool, error)

IsDataplatformDeleted returns true if the dataplatform cluster is deleted

func (*APIClient) PatchDataPlatformNodepool

func (dp *APIClient) PatchDataPlatformNodepool(ctx context.Context, clusterID, nodepoolID string, cluster sdkgo.PatchNodePoolRequest) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)

PatchDataPlatformNodepool based on clusterID and NodePoolsPatch

type Client

type Client interface {
	GetDataplatformNodepoolByID(ctx context.Context, clusterID, nodepoolID string) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)
	CreateDataplatformNodepool(ctx context.Context, clusterID string, cluster sdkgo.CreateNodePoolRequest) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)
	PatchDataPlatformNodepool(ctx context.Context, clusterID, nodepoolID string, cluster sdkgo.PatchNodePoolRequest) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)
	DeleteDataPlatformNodepool(ctx context.Context, clusterID, nodepoolID string) (*sdkgo.APIResponse, error)
	IsDataplatformDeleted(ctx context.Context, ids ...string) (bool, error)
	GetAPIClient() *sdkgo.APIClient
}

Client is a wrapper around IONOS Service K8s Nodepool methods

Jump to

Keyboard shortcuts

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