network

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 network contains the implementation of the Network resource following the Terraform framework interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceNetwork

type DataSourceNetwork struct {
	NetClient cloudv1beta1.NetworkServiceClient
}

DataSourceNetwork represents a data source for a Redpanda Cloud network.

func (*DataSourceNetwork) Configure

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

func (*DataSourceNetwork) Metadata

Metadata returns the metadata for the Network data source.

func (*DataSourceNetwork) Read

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

func (*DataSourceNetwork) Schema

Schema returns the schema for the Network data source.

type Network

type Network struct {
	NetClient cloudv1beta1.NetworkServiceClient
	OpsClient cloudv1beta1.OperationServiceClient
}

Network represents a network managed resource.

func (*Network) Configure

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

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

func (*Network) Create

func (n *Network) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)

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

func (*Network) Delete

func (n *Network) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)

Delete deletes the Network resource.

func (*Network) ImportState

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

func (*Network) Metadata

Metadata returns the full name of the Network resource.

func (*Network) Read

func (n *Network) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)

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

func (*Network) Schema

Schema returns the schema for the Network resource.

func (*Network) Update

Update is not supported for network. As a result all configurable schema elements have been marked as RequiresReplace.

Jump to

Keyboard shortcuts

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