Documentation ¶
Index ¶
- func GenerateCreateInput(cr *v1alpha1.DataplatformNodepool) *sdkgo.CreateNodePoolRequest
- func GenerateUpdateInput(cr *v1alpha1.DataplatformNodepool) *sdkgo.PatchNodePoolRequest
- func IsUpToDate(cr *v1alpha1.DataplatformNodepool, cluster sdkgo.NodePoolResponseData) bool
- func LateInitializer(in *v1alpha1.DataplatformNodepoolParameters, sg *sdkgo.NodePoolResponseData)
- func LateStatusInitializer(in *v1alpha1.DataplatformNodepoolObservation, sg *sdkgo.NodePoolResponseData)
- type APIClient
- func (dp *APIClient) CreateDataplatformNodepool(ctx context.Context, clusterID string, cluster sdkgo.CreateNodePoolRequest) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)
- func (dp *APIClient) DeleteDataPlatformNodepool(ctx context.Context, clusterID, nodepoolID string) (*sdkgo.APIResponse, error)
- func (dp *APIClient) GetAPIClient() *sdkgo.APIClient
- func (dp *APIClient) GetDataplatformNodepoolByID(ctx context.Context, clusterID, nodepoolID string) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)
- func (dp *APIClient) IsDataplatformDeleted(ctx context.Context, ids ...string) (bool, error)
- func (dp *APIClient) PatchDataPlatformNodepool(ctx context.Context, clusterID, nodepoolID string, ...) (sdkgo.NodePoolResponseData, *sdkgo.APIResponse, error)
- type Client
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 ¶
func IsUpToDate(cr *v1alpha1.DataplatformNodepool, cluster sdkgo.NodePoolResponseData) bool
IsUpToDate returns true if the dataplatform cluster is up-to-date or false if it does not
func LateInitializer ¶
func LateInitializer(in *v1alpha1.DataplatformNodepoolParameters, sg *sdkgo.NodePoolResponseData)
LateInitializer fills the empty fields in *v1alpha1.NodepoolParameters with the values seen in sdkgo.KubernetesNodepool.
func LateStatusInitializer ¶
func LateStatusInitializer(in *v1alpha1.DataplatformNodepoolObservation, sg *sdkgo.NodePoolResponseData)
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 ¶
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 ¶
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