Documentation ¶
Index ¶
- Constants
- func NewDataSourceSnapshot() datasource.DataSource
- func NewDataSourceVolume() datasource.DataSource
- func NewResourceSnapshot() resource.Resource
- func NewResourceVolume() resource.Resource
- type DataSourceSnapshot
- func (d *DataSourceSnapshot) Configure(ctx context.Context, r datasource.ConfigureRequest, ...)
- func (d *DataSourceSnapshot) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DataSourceSnapshot) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataSourceSnapshot) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DataSourceSnapshotModel
- type DataSourceVolume
- func (d *DataSourceVolume) Configure(ctx context.Context, r datasource.ConfigureRequest, ...)
- func (d *DataSourceVolume) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DataSourceVolume) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataSourceVolume) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DataSourceVolumeModel
- type ResourceSnapshot
- func (r *ResourceSnapshot) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ResourceSnapshot) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ResourceSnapshot) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ResourceSnapshot) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ResourceSnapshot) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ResourceSnapshot) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ResourceSnapshot) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ResourceSnapshot) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ResourceSnapshotModel
- type ResourceVolume
- func (r *ResourceVolume) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ResourceVolume) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ResourceVolume) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ResourceVolume) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ResourceVolume) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ResourceVolume) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ResourceVolume) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ResourceVolume) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ResourceVolumeModel
- type SnapshotVolumeModel
- type VolumeInstanceModel
- type VolumeSnapshotModel
- type VolumeSnapshotTargetModel
Constants ¶
const DataSourceSnapshotDescription = `` /* 282-byte string literal not displayed */
const DataSourceVolumeDescription = `` /* 276-byte string literal not displayed */
const ResourceSnapshotDescription = `` /* 191-byte string literal not displayed */
const ResourceVolumeDescription = `` /* 182-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewDataSourceSnapshot ¶
func NewDataSourceSnapshot() datasource.DataSource
NewDataSourceSnapshot creates instance of DataSourceSnapshot.
func NewDataSourceVolume ¶
func NewDataSourceVolume() datasource.DataSource
NewDataSourceVolume creates instance of ResourceVolume.
func NewResourceSnapshot ¶
NewResourceSnapshot creates instance of ResourceSnapshot.
func NewResourceVolume ¶
NewResourceVolume creates instance of ResourceVolume.
Types ¶
type DataSourceSnapshot ¶
type DataSourceSnapshot struct {
// contains filtered or unexported fields
}
DataSourceSnapshot defines the resource implementation.
func (*DataSourceSnapshot) Configure ¶
func (d *DataSourceSnapshot) Configure( ctx context.Context, r datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
Configure sets up datasource dependencies.
func (*DataSourceSnapshot) Metadata ¶
func (d *DataSourceSnapshot) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
Metadata specifies resource name.
func (*DataSourceSnapshot) Read ¶
func (d *DataSourceSnapshot) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read defines how the data source updates Terraform's state to reflect the retrieved data.
func (*DataSourceSnapshot) Schema ¶
func (d *DataSourceSnapshot) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
Schema defines resource attributes.
type DataSourceSnapshotModel ¶
type DataSourceSnapshotModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Size types.Int64 `tfsdk:"size"` CreatedAt types.String `tfsdk:"created_at"` Labels types.Map `tfsdk:"labels"` State types.String `tfsdk:"state"` Volume types.Object `tfsdk:"volume"` Zone types.String `tfsdk:"zone"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
DataSourceSnapshotModel defines the resource data model.
type DataSourceVolume ¶
type DataSourceVolume struct {
// contains filtered or unexported fields
}
DataSourceVolume defines the resource implementation.
func (*DataSourceVolume) Configure ¶
func (d *DataSourceVolume) Configure( ctx context.Context, r datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
Configure sets up datasource dependencies.
func (*DataSourceVolume) Metadata ¶
func (d *DataSourceVolume) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
Metadata specifies resource name.
func (*DataSourceVolume) Read ¶
func (d *DataSourceVolume) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read defines how the data source updates Terraform's state to reflect the retrieved data.
func (*DataSourceVolume) Schema ¶
func (d *DataSourceVolume) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
Schema defines resource attributes.
type DataSourceVolumeModel ¶
type DataSourceVolumeModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Size types.Int64 `tfsdk:"size"` Blocksize types.Int64 `tfsdk:"blocksize"` CreatedAt types.String `tfsdk:"created_at"` Instance types.Object `tfsdk:"instance"` Labels types.Map `tfsdk:"labels"` Snapshots types.Set `tfsdk:"snapshots"` State types.String `tfsdk:"state"` Zone types.String `tfsdk:"zone"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
DataSourceVolumeModel defines the resource data model.
type ResourceSnapshot ¶
type ResourceSnapshot struct {
// contains filtered or unexported fields
}
ResourceSnapshot defines the resource implementation.
func (*ResourceSnapshot) Configure ¶
func (r *ResourceSnapshot) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure sets up resource dependencies.
func (*ResourceSnapshot) Create ¶
func (r *ResourceSnapshot) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create resources by receiving Terraform configuration and plan data, performing creation logic, and saving Terraform state data.
func (*ResourceSnapshot) Delete ¶
func (r *ResourceSnapshot) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete resources by receiving Terraform prior state data and performing deletion logic.
func (*ResourceSnapshot) ImportState ¶
func (r *ResourceSnapshot) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState lets Terraform begin managing existing infrastructure resources.
func (*ResourceSnapshot) Metadata ¶
func (r *ResourceSnapshot) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata specifies resource name.
func (*ResourceSnapshot) Read ¶
func (r *ResourceSnapshot) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read (refresh) resources by receiving Terraform prior state data, performing read logic, and saving refreshed Terraform state data.
func (*ResourceSnapshot) Schema ¶
func (r *ResourceSnapshot) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines resource attributes.
func (*ResourceSnapshot) Update ¶
func (r *ResourceSnapshot) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update resources in-place by receiving Terraform prior state, configuration, and plan data, performing update logic, and saving updated Terraform state data.
type ResourceSnapshotModel ¶
type ResourceSnapshotModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Size types.Int64 `tfsdk:"size"` CreatedAt types.String `tfsdk:"created_at"` Labels types.Map `tfsdk:"labels"` State types.String `tfsdk:"state"` Volume types.Object `tfsdk:"volume"` Zone types.String `tfsdk:"zone"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
ResourceSnapshotModel defines the resource data model.
type ResourceVolume ¶
type ResourceVolume struct {
// contains filtered or unexported fields
}
ResourceVolume defines the resource implementation.
func (*ResourceVolume) Configure ¶
func (r *ResourceVolume) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure sets up resource dependencies.
func (*ResourceVolume) Create ¶
func (r *ResourceVolume) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create resources by receiving Terraform configuration and plan data, performing creation logic, and saving Terraform state data.
func (*ResourceVolume) Delete ¶
func (r *ResourceVolume) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete resources by receiving Terraform prior state data and performing deletion logic.
func (*ResourceVolume) ImportState ¶
func (r *ResourceVolume) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState lets Terraform begin managing existing infrastructure resources.
func (*ResourceVolume) Metadata ¶
func (r *ResourceVolume) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata specifies resource name.
func (*ResourceVolume) Read ¶
func (r *ResourceVolume) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read (refresh) resources by receiving Terraform prior state data, performing read logic, and saving refreshed Terraform state data.
func (*ResourceVolume) Schema ¶
func (r *ResourceVolume) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines resource attributes.
func (*ResourceVolume) Update ¶
func (r *ResourceVolume) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update resources in-place by receiving Terraform prior state, configuration, and plan data, performing update logic, and saving updated Terraform state data.
type ResourceVolumeModel ¶
type ResourceVolumeModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Size types.Int64 `tfsdk:"size"` Blocksize types.Int64 `tfsdk:"blocksize"` CreatedAt types.String `tfsdk:"created_at"` Labels types.Map `tfsdk:"labels"` SnapshotTarget types.Object `tfsdk:"snapshot_target"` State types.String `tfsdk:"state"` Zone types.String `tfsdk:"zone"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
ResourceVolumeModel defines the resource data model.
type SnapshotVolumeModel ¶
SnapshotVolumeModel defines nested data model.
type VolumeInstanceModel ¶
VolumeInstanceModel defines nested data model.
type VolumeSnapshotModel ¶
VolumeSnapshotModel defines nested data model.
type VolumeSnapshotTargetModel ¶
VolumeSnapshotTargetModel defines nested data model.