Documentation ¶
Overview ¶
Package resourcegroup contains the implementation of the ResourceGroup resource following the Terraform framework interfaces.
Index ¶
- type DataSourceResourceGroup
- func (n *DataSourceResourceGroup) Configure(_ context.Context, request datasource.ConfigureRequest, ...)
- func (*DataSourceResourceGroup) Metadata(_ context.Context, _ datasource.MetadataRequest, ...)
- func (n *DataSourceResourceGroup) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (*DataSourceResourceGroup) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ResourceGroup
- func (n *ResourceGroup) Configure(_ context.Context, request resource.ConfigureRequest, ...)
- func (n *ResourceGroup) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (n *ResourceGroup) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (*ResourceGroup) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (*ResourceGroup) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (n *ResourceGroup) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (*ResourceGroup) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (n *ResourceGroup) 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 DataSourceResourceGroup ¶
type DataSourceResourceGroup struct {
CpCl *cloud.ControlPlaneClientSet
}
DataSourceResourceGroup represents a data source for a Redpanda Cloud resource group.
func (*DataSourceResourceGroup) Configure ¶
func (n *DataSourceResourceGroup) Configure(_ context.Context, request datasource.ConfigureRequest, response *datasource.ConfigureResponse)
Configure uses provider level data to configure DataSourceResourceGroup client.
func (*DataSourceResourceGroup) Metadata ¶
func (*DataSourceResourceGroup) Metadata(_ context.Context, _ datasource.MetadataRequest, response *datasource.MetadataResponse)
Metadata returns the metadata for the ResourceGroup data source.
func (*DataSourceResourceGroup) Read ¶
func (n *DataSourceResourceGroup) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read reads the ResourceGroup data source's values and updates the state.
func (*DataSourceResourceGroup) Schema ¶
func (*DataSourceResourceGroup) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema returns the schema for the ResourceGroup data source.
type ResourceGroup ¶
type ResourceGroup struct {
CpCl *cloud.ControlPlaneClientSet
}
ResourceGroup represents a cluster managed resource.
func (*ResourceGroup) Configure ¶
func (n *ResourceGroup) Configure(_ context.Context, request resource.ConfigureRequest, response *resource.ConfigureResponse)
Configure uses provider level data to configure ResourceGroup client.
func (*ResourceGroup) Create ¶
func (n *ResourceGroup) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates a new ResourceGroup resource. It updates the state if the resource is successfully created.
func (*ResourceGroup) Delete ¶
func (n *ResourceGroup) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the ResourceGroup resource.
func (*ResourceGroup) ImportState ¶
func (*ResourceGroup) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState refreshes the state with the correct ID for the ResourceGroup, allowing TF to use Read to get the correct ResourceGroup name into state see https://developer.hashicorp.com/terraform/plugin/framework/resources/import for more details.
func (*ResourceGroup) Metadata ¶
func (*ResourceGroup) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the full name of the ResourceGroup resource.
func (*ResourceGroup) Read ¶
func (n *ResourceGroup) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read reads ResourceGroup resource's values and updates the state.
func (*ResourceGroup) Schema ¶
func (*ResourceGroup) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema returns the schema for the ResourceGroup resource.
func (*ResourceGroup) Update ¶
func (n *ResourceGroup) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the state of the ResourceGroup resource.