dataplatform

package
v6.6.7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDataplatformClusterData

func SetDataplatformClusterData(d *schema.ResourceData, cluster dataplatform.ClusterResponseData) error

func SetDataplatformNodePoolData

func SetDataplatformNodePoolData(d *schema.ResourceData, nodePool dataplatform.NodePoolResponseData) error

func SetMaintenanceWindowProperties

func SetMaintenanceWindowProperties(maintenanceWindow dataplatform.MaintenanceWindow) map[string]interface{}

func SetVersionsData

func SetVersionsData(d *schema.ResourceData, versions []string) diag.Diagnostics

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client - wrapper over sdk client, to allow for service layer

func NewClient

func NewClient(username, password, token, url, version, terraformVersion string, insecure bool) *Client

func (*Client) CreateCluster

func (c *Client) CreateCluster(ctx context.Context, d *schema.ResourceData) (id string, responseInfo utils.ApiResponseInfo, err error)

CreateCluster - creates the request from the schema and sends it to the API. returns the id of the created resource, the apiResponse, or an error if an error occurred

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(ctx context.Context, id string) (utils.ApiResponseInfo, error)

func (*Client) DeleteNodePool

func (c *Client) DeleteNodePool(ctx context.Context, clusterId, nodePoolId string) (dataplatform.NodePoolResponseData, *dataplatform.APIResponse, error)

func (*Client) GetClusterKubeConfig

func (c *Client) GetClusterKubeConfig(ctx context.Context, clusterID string) (map[string]interface{}, *dataplatform.APIResponse, error)

GetClusterKubeConfig - gets the kube config for the cluster

func (*Client) GetNodePool

func (c *Client) GetNodePool(ctx context.Context, clusterId, nodePoolId string) (dataplatform.NodePoolResponseData, *dataplatform.APIResponse, error)

func (*Client) GetVersions

func (c *Client) GetVersions(ctx context.Context) ([]string, *dataplatform.APIResponse, error)

func (*Client) IsClusterDeleted

func (c *Client) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)

IsClusterDeleted - checks if resource still exists. To be used with WaitForResourceToBeDeleted

func (*Client) IsClusterReady

func (c *Client) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)

func (*Client) IsNodePoolDeleted

func (c *Client) IsNodePoolDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)

func (*Client) IsNodePoolReady

func (c *Client) IsNodePoolReady(ctx context.Context, d *schema.ResourceData) (bool, error)

func (*Client) ListClusters

func (*Client) ListNodePools

func (*Client) UpdateCluster

func (c *Client) UpdateCluster(ctx context.Context, id string, d *schema.ResourceData) (utils.ApiResponseInfo, error)

func (*Client) UpdateNodePool

func (c *Client) UpdateNodePool(ctx context.Context, clusterId, nodePoolId string, d *schema.ResourceData) (dataplatform.NodePoolResponseData, utils.ApiResponseInfo, error)

Jump to

Keyboard shortcuts

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