Documentation
¶
Overview ¶
Package namespace contains the implementation of the Namespace resource following the Terraform framework interfaces.
Index ¶
- type DataSourceNamespace
- func (n *DataSourceNamespace) Configure(ctx context.Context, request datasource.ConfigureRequest, ...)
- func (*DataSourceNamespace) Metadata(_ context.Context, _ datasource.MetadataRequest, ...)
- func (n *DataSourceNamespace) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (*DataSourceNamespace) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type Namespace
- func (n *Namespace) Configure(ctx context.Context, request resource.ConfigureRequest, ...)
- func (n *Namespace) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (n *Namespace) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (*Namespace) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (*Namespace) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (n *Namespace) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (*Namespace) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (n *Namespace) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 ¶
func (n *DataSourceNamespace) Configure(ctx context.Context, request datasource.ConfigureRequest, response *datasource.ConfigureResponse)
Configure uses provider level data to configure DataSourceNamespace client.
func (*DataSourceNamespace) Metadata ¶
func (*DataSourceNamespace) Metadata(_ context.Context, _ datasource.MetadataRequest, response *datasource.MetadataResponse)
Metadata returns the metadata for the Namespace data source.
func (*DataSourceNamespace) Read ¶
func (n *DataSourceNamespace) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read reads the Namespace data source's values and updates the state.
func (*DataSourceNamespace) Schema ¶
func (*DataSourceNamespace) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
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(ctx context.Context, request resource.ConfigureRequest, response *resource.ConfigureResponse)
Configure uses provider level data to configure Namespace client.
func (*Namespace) Create ¶
func (n *Namespace) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates a new Namespace resource. It updates the state if the resource is successfully created.
func (*Namespace) Delete ¶
func (n *Namespace) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the Namespace resource.
func (*Namespace) ImportState ¶
func (*Namespace) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
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 ¶
func (*Namespace) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the full name of the Namespace resource.
func (*Namespace) Read ¶
func (n *Namespace) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read reads Namespace resource's values and updates the state.
func (*Namespace) Schema ¶
func (*Namespace) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema returns the schema for the Namespace resource.
func (*Namespace) Update ¶
func (n *Namespace) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the state of the Namespace resource.