block_storage

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DataSourceSnapshotDescription = `` /* 282-byte string literal not displayed */
View Source
const DataSourceVolumeDescription = `` /* 276-byte string literal not displayed */
View Source
const ResourceSnapshotDescription = `` /* 191-byte string literal not displayed */
View Source
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

func NewResourceSnapshot() resource.Resource

NewResourceSnapshot creates instance of ResourceSnapshot.

func NewResourceVolume

func NewResourceVolume() resource.Resource

NewResourceVolume creates instance of ResourceVolume.

Types

type DataSourceSnapshot

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

DataSourceSnapshot defines the resource implementation.

func (*DataSourceSnapshot) Configure

Configure sets up datasource dependencies.

func (*DataSourceSnapshot) Metadata

Metadata specifies resource name.

func (*DataSourceSnapshot) Read

Read defines how the data source updates Terraform's state to reflect the retrieved data.

func (*DataSourceSnapshot) Schema

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

Configure sets up datasource dependencies.

func (*DataSourceVolume) Metadata

Metadata specifies resource name.

func (*DataSourceVolume) Read

Read defines how the data source updates Terraform's state to reflect the retrieved data.

func (*DataSourceVolume) Schema

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

Configure sets up resource dependencies.

func (*ResourceSnapshot) Create

Create resources by receiving Terraform configuration and plan data, performing creation logic, and saving Terraform state data.

func (*ResourceSnapshot) Delete

Delete resources by receiving Terraform prior state data and performing deletion logic.

func (*ResourceSnapshot) ImportState

ImportState lets Terraform begin managing existing infrastructure resources.

func (*ResourceSnapshot) Metadata

Metadata specifies resource name.

func (*ResourceSnapshot) Read

Read (refresh) resources by receiving Terraform prior state data, performing read logic, and saving refreshed Terraform state data.

func (*ResourceSnapshot) Schema

Schema defines resource attributes.

func (*ResourceSnapshot) Update

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

Configure sets up resource dependencies.

func (*ResourceVolume) Create

Create resources by receiving Terraform configuration and plan data, performing creation logic, and saving Terraform state data.

func (*ResourceVolume) Delete

Delete resources by receiving Terraform prior state data and performing deletion logic.

func (*ResourceVolume) ImportState

ImportState lets Terraform begin managing existing infrastructure resources.

func (*ResourceVolume) Metadata

Metadata specifies resource name.

func (*ResourceVolume) Read

Read (refresh) resources by receiving Terraform prior state data, performing read logic, and saving refreshed Terraform state data.

func (*ResourceVolume) Schema

Schema defines resource attributes.

func (*ResourceVolume) Update

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

type SnapshotVolumeModel struct {
	ID types.String `tfsdk:"id"`
}

SnapshotVolumeModel defines nested data model.

func (SnapshotVolumeModel) Types

func (m SnapshotVolumeModel) Types() map[string]attr.Type

Types returns nested data model types to be used for conversion.

type VolumeInstanceModel

type VolumeInstanceModel struct {
	ID types.String `tfsdk:"id"`
}

VolumeInstanceModel defines nested data model.

func (VolumeInstanceModel) Types

func (m VolumeInstanceModel) Types() map[string]attr.Type

Types returns nested data model types to be used for conversion.

type VolumeSnapshotModel

type VolumeSnapshotModel struct {
	ID types.String `tfsdk:"id"`
}

VolumeSnapshotModel defines nested data model.

func (VolumeSnapshotModel) Types

func (m VolumeSnapshotModel) Types() map[string]attr.Type

Types returns nested data model types to be used for conversion.

type VolumeSnapshotTargetModel

type VolumeSnapshotTargetModel struct {
	ID types.String `tfsdk:"id"`
}

VolumeSnapshotTargetModel defines nested data model.

func (VolumeSnapshotTargetModel) Types

func (m VolumeSnapshotTargetModel) Types() map[string]attr.Type

Types returns nested data model types to be used for conversion.

Jump to

Keyboard shortcuts

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