redpanda

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

Package redpanda contains the implementation of the Terraform Provider framework interface for Redpanda.

Index

Constants

View Source
const (
	// ClientIDEnv is the client_id used to authenticate to Redpanda cloud.
	ClientIDEnv = "REDPANDA_CLIENT_ID"
	// ClientSecretEnv is the client_secret used to authenticate to Redpanda cloud.
	ClientSecretEnv = "REDPANDA_CLIENT_SECRET"
	// CloudEnvironmentEnv is the Redpanda cloud environment.
	CloudEnvironmentEnv = "REDPANDA_CLOUD_ENVIRONMENT"
)

Variables

This section is empty.

Functions

func New

func New(_ context.Context, cloudEnv, version string) func() provider.Provider

New spawns a basic provider struct, no client. Configure must be called for a working client.

Types

type Redpanda

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

Redpanda represents the Redpanda Terraform provider.

func (*Redpanda) Configure

func (r *Redpanda) Configure(ctx context.Context, request provider.ConfigureRequest, response *provider.ConfigureResponse)

Configure is the primary entrypoint for terraform and properly initializes the client.

func (*Redpanda) DataSources

func (*Redpanda) DataSources(_ context.Context) []func() datasource.DataSource

DataSources returns a slice of functions to instantiate each Redpanda DataSource.

func (*Redpanda) Metadata

Metadata returns the provider metadata.

func (*Redpanda) Resources

func (*Redpanda) Resources(_ context.Context) []func() resource.Resource

Resources returns a slice of functions to instantiate each Redpanda resource.

func (*Redpanda) Schema

Schema returns the Redpanda provider schema.

Directories

Path Synopsis
Package clients provides the CloudV2 clients used by the Redpanda terraform provider and the generated resources.
Package clients provides the CloudV2 clients used by the Redpanda terraform provider and the generated resources.
Package mocks provides the mocked resources and its clients for testing.
Package mocks provides the mocked resources and its clients for testing.
Package models contains all the Terraform schema representations of the resources created by the Redpanda Terraform provider.
Package models contains all the Terraform schema representations of the resources created by the Redpanda Terraform provider.
resources
acl
Package acl contains the implementation of the ACL resource following the Terraform framework interfaces.
Package acl contains the implementation of the ACL resource following the Terraform framework interfaces.
cluster
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.
namespace
Package namespace contains the implementation of the Namespace resource following the Terraform framework interfaces.
Package namespace contains the implementation of the Namespace resource following the Terraform framework interfaces.
network
Package network contains the implementation of the Network resource following the Terraform framework interfaces.
Package network contains the implementation of the Network resource following the Terraform framework interfaces.
topic
Package topic contains the implementation of the Topic resource following the Terraform framework interfaces.
Package topic contains the implementation of the Topic resource following the Terraform framework interfaces.
user
Package user contains the implementation of the User resource following the Terraform framework interfaces.
Package user contains the implementation of the User resource following the Terraform framework interfaces.
Package tests includes the acceptance tests for the Redpanda Terraform Provider.
Package tests includes the acceptance tests for the Redpanda Terraform Provider.
Package utils contains multiple utility functions used across the Redpanda's terraform codebase
Package utils contains multiple utility functions used across the Redpanda's terraform codebase

Jump to

Keyboard shortcuts

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