cluster

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package cluster contains the implementation of the Cluster resource following the Terraform framework interfaces.

Package cluster contains the implementation of the Cluster resource following the Terraform framework interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClusterRequest

func GenerateClusterRequest(model models.Cluster) (*cloudv1beta1.Cluster, error)

GenerateClusterRequest was pulled out to enable unit testing

Types

type Cluster

type Cluster struct {
	CluClient cloudv1beta1.ClusterServiceClient
	OpsClient cloudv1beta1.OperationServiceClient
}

Cluster represents a cluster managed resource.

func (*Cluster) Configure

Configure uses provider level data to configure Cluster's clients.

func (*Cluster) Create

Create creates a new Cluster resource. It updates the state if the resource is successfully created.

func (*Cluster) Delete

Delete deletes the Cluster resource.

func (*Cluster) ImportState

ImportState imports and update the state of the cluster resource.

func (*Cluster) Metadata

Metadata returns the full name of the Cluster resource.

func (*Cluster) Read

func (c *Cluster) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)

Read reads Cluster resource's values and updates the state.

func (*Cluster) Schema

Schema returns the schema for the Cluster resource.

func (*Cluster) Update

Update all cluster updates are currently delete and recreate.

type DataSourceCluster

type DataSourceCluster struct {
	CluClient cloudv1beta1.ClusterServiceClient
}

DataSourceCluster represents a cluster data source.

func (*DataSourceCluster) Configure

Configure uses provider level data to configure DataSourceCluster's client.

func (*DataSourceCluster) Metadata

Metadata returns the metadata for the Cluster data source.

func (*DataSourceCluster) Read

Read reads the Cluster data source's values and updates the state.

func (*DataSourceCluster) Schema

Schema returns the schema for the Cluster data source.

Jump to

Keyboard shortcuts

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