Documentation ¶
Index ¶
- func GetDataplatformNodePoolDataCreate(d *schema.ResourceData) *dataplatform.CreateNodePoolRequest
- func GetDataplatformNodePoolDataUpdate(d *schema.ResourceData) *dataplatform.PatchNodePoolRequest
- func SetDataplatformClusterData(d *schema.ResourceData, cluster dataplatform.ClusterResponseData) error
- func SetDataplatformNodePoolData(d *schema.ResourceData, nodePool dataplatform.NodePoolResponseData) error
- func SetMaintenanceWindowProperties(maintenanceWindow dataplatform.MaintenanceWindow) map[string]interface{}
- func SetNodePoolsData(d *schema.ResourceData, results []dataplatform.NodePoolResponseData) diag.Diagnostics
- func SetVersionsData(d *schema.ResourceData, versions []string) diag.Diagnostics
- type Client
- func (c *Client) CreateCluster(ctx context.Context, d *schema.ResourceData) (id string, responseInfo utils.ApiResponseInfo, err error)
- func (c *Client) CreateNodePool(ctx context.Context, clusterId string, d *schema.ResourceData) (dataplatform.NodePoolResponseData, *dataplatform.APIResponse, error)
- func (c *Client) DeleteCluster(ctx context.Context, id string) (utils.ApiResponseInfo, error)
- func (c *Client) DeleteNodePool(ctx context.Context, clusterId, nodePoolId string) (dataplatform.NodePoolResponseData, *dataplatform.APIResponse, error)
- func (c *Client) GetClusterById(ctx context.Context, id string) (dataplatform.ClusterResponseData, *dataplatform.APIResponse, error)
- func (c *Client) GetClusterKubeConfig(ctx context.Context, clusterID string) (map[string]interface{}, *dataplatform.APIResponse, error)
- func (c *Client) GetNodePool(ctx context.Context, clusterId, nodePoolId string) (dataplatform.NodePoolResponseData, *dataplatform.APIResponse, error)
- func (c *Client) GetVersions(ctx context.Context) ([]string, *dataplatform.APIResponse, error)
- func (c *Client) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsNodePoolDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsNodePoolReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) ListClusters(ctx context.Context, filterName string) (dataplatform.ClusterListResponseData, *dataplatform.APIResponse, error)
- func (c *Client) ListNodePools(ctx context.Context, clusterId string) (dataplatform.NodePoolListResponseData, *dataplatform.APIResponse, error)
- func (c *Client) UpdateCluster(ctx context.Context, id string, d *schema.ResourceData) (utils.ApiResponseInfo, error)
- func (c *Client) UpdateNodePool(ctx context.Context, clusterId, nodePoolId string, d *schema.ResourceData) (dataplatform.NodePoolResponseData, utils.ApiResponseInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataplatformNodePoolDataCreate ¶
func GetDataplatformNodePoolDataCreate(d *schema.ResourceData) *dataplatform.CreateNodePoolRequest
func GetDataplatformNodePoolDataUpdate ¶
func GetDataplatformNodePoolDataUpdate(d *schema.ResourceData) *dataplatform.PatchNodePoolRequest
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 SetNodePoolsData ¶
func SetNodePoolsData(d *schema.ResourceData, results []dataplatform.NodePoolResponseData) diag.Diagnostics
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 (*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) CreateNodePool ¶
func (c *Client) CreateNodePool(ctx context.Context, clusterId string, d *schema.ResourceData) (dataplatform.NodePoolResponseData, *dataplatform.APIResponse, error)
func (*Client) DeleteCluster ¶
func (*Client) DeleteNodePool ¶
func (c *Client) DeleteNodePool(ctx context.Context, clusterId, nodePoolId string) (dataplatform.NodePoolResponseData, *dataplatform.APIResponse, error)
func (*Client) GetClusterById ¶
func (c *Client) GetClusterById(ctx context.Context, id string) (dataplatform.ClusterResponseData, *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 ¶
IsClusterDeleted - checks if resource still exists. To be used with WaitForResourceToBeDeleted
func (*Client) IsClusterReady ¶
func (*Client) IsNodePoolDeleted ¶
func (*Client) IsNodePoolReady ¶
func (*Client) ListClusters ¶
func (c *Client) ListClusters(ctx context.Context, filterName string) (dataplatform.ClusterListResponseData, *dataplatform.APIResponse, error)
func (*Client) ListNodePools ¶
func (c *Client) ListNodePools(ctx context.Context, clusterId string) (dataplatform.NodePoolListResponseData, *dataplatform.APIResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.