Documentation ¶
Overview ¶
Package network contains the implementation of the Network resource following the Terraform framework interfaces.
Index ¶
- type DataSourceNetwork
- func (n *DataSourceNetwork) Configure(_ context.Context, request datasource.ConfigureRequest, ...)
- func (*DataSourceNetwork) Metadata(_ context.Context, _ datasource.MetadataRequest, ...)
- func (n *DataSourceNetwork) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (*DataSourceNetwork) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type Network
- func (n *Network) Configure(_ context.Context, request resource.ConfigureRequest, ...)
- func (n *Network) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (n *Network) Delete(ctx context.Context, request resource.DeleteRequest, ...)
- func (*Network) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (*Network) Metadata(_ context.Context, _ resource.MetadataRequest, ...)
- func (n *Network) Read(ctx context.Context, request resource.ReadRequest, ...)
- func (*Network) Schema(_ context.Context, _ resource.SchemaRequest, response *resource.SchemaResponse)
- func (*Network) Update(_ context.Context, _ resource.UpdateRequest, _ *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSourceNetwork ¶
type DataSourceNetwork struct {
CpCl *cloud.ControlPlaneClientSet
}
DataSourceNetwork represents a data source for a Redpanda Cloud network.
func (*DataSourceNetwork) Configure ¶
func (n *DataSourceNetwork) Configure(_ context.Context, request datasource.ConfigureRequest, response *datasource.ConfigureResponse)
Configure uses provider level data to configure DataSourceNetwork's client.
func (*DataSourceNetwork) Metadata ¶
func (*DataSourceNetwork) Metadata(_ context.Context, _ datasource.MetadataRequest, response *datasource.MetadataResponse)
Metadata returns the metadata for the Network data source.
func (*DataSourceNetwork) Read ¶
func (n *DataSourceNetwork) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read reads the Network data source's values and updates the state.
func (*DataSourceNetwork) Schema ¶
func (*DataSourceNetwork) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema returns the schema for the Network data source.
type Network ¶
type Network struct {
CpCl *cloud.ControlPlaneClientSet
}
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 ¶
func (*Network) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
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 ¶
func (*Network) Metadata(_ context.Context, _ resource.MetadataRequest, response *resource.MetadataResponse)
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 ¶
func (*Network) Schema(_ context.Context, _ resource.SchemaRequest, response *resource.SchemaResponse)
Schema returns the schema for the Network resource.
func (*Network) Update ¶
func (*Network) Update(_ context.Context, _ resource.UpdateRequest, _ *resource.UpdateResponse)
Update is not supported for network. As a result all configurable schema elements have been marked as RequiresReplace.