namespace

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: 14 Imported by: 0

Documentation

Overview

Package namespace contains the implementation of the Namespace resource following the Terraform framework interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceNamespace

type DataSourceNamespace struct {
	Client cloudv1beta1.NamespaceServiceClient
}

DataSourceNamespace represents a data source for a Redpanda Cloud namespace.

func (*DataSourceNamespace) Configure

Configure uses provider level data to configure DataSourceNamespace client.

func (*DataSourceNamespace) Metadata

Metadata returns the metadata for the Namespace data source.

func (*DataSourceNamespace) Read

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

func (*DataSourceNamespace) Schema

Schema returns the schema for the Namespace data source.

type Namespace

type Namespace struct {
	Client cloudv1beta1.NamespaceServiceClient
}

Namespace represents a cluster managed resource.

func (*Namespace) Configure

func (n *Namespace) Configure(_ context.Context, request resource.ConfigureRequest, response *resource.ConfigureResponse)

Configure uses provider level data to configure Namespace client.

func (*Namespace) Create

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

func (*Namespace) Delete

Delete deletes the Namespace resource.

func (*Namespace) ImportState

ImportState refreshes the state with the correct ID for the namespace, allowing TF to use Read to get the correct Namespace name into state see https://developer.hashicorp.com/terraform/plugin/framework/resources/import for more details.

func (*Namespace) Metadata

Metadata returns the full name of the Namespace resource.

func (*Namespace) Read

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

func (*Namespace) Schema

Schema returns the schema for the Namespace resource.

func (*Namespace) Update

Update updates the state of the Namespace resource.

Jump to

Keyboard shortcuts

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