Help us shape the future of Go! Take the 2026 Go Developer Survey

volume

package
v0.102.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportedSourceTypes = []string{"volume", "image", "snapshot", "backup"}
)

Ensure the implementation satisfies the expected interfaces.

Functions

func NewVolumeDataSource

func NewVolumeDataSource() datasource.DataSource

NewVolumeDataSource is a helper function to simplify the provider implementation.

func NewVolumeResource

func NewVolumeResource() resource.Resource

NewVolumeResource is a helper function to simplify the provider implementation.

Types

type DatasourceModel added in v0.77.0

type DatasourceModel struct {
	// basically the same as the resource model, just without encryption parameters as they are only **sent** to the API, but **never returned**
	Id               types.String `tfsdk:"id"` // needed by TF
	ProjectId        types.String `tfsdk:"project_id"`
	Region           types.String `tfsdk:"region"`
	VolumeId         types.String `tfsdk:"volume_id"`
	Name             types.String `tfsdk:"name"`
	AvailabilityZone types.String `tfsdk:"availability_zone"`
	Labels           types.Map    `tfsdk:"labels"`
	Description      types.String `tfsdk:"description"`
	PerformanceClass types.String `tfsdk:"performance_class"`
	Size             types.Int64  `tfsdk:"size"`
	ServerId         types.String `tfsdk:"server_id"`
	Source           types.Object `tfsdk:"source"`
	Encrypted        types.Bool   `tfsdk:"encrypted"`
}

type Model

type Model struct {
	Id                   types.String               `tfsdk:"id"` // needed by TF
	ProjectId            types.String               `tfsdk:"project_id"`
	Region               types.String               `tfsdk:"region"`
	VolumeId             types.String               `tfsdk:"volume_id"`
	Name                 types.String               `tfsdk:"name"`
	AvailabilityZone     types.String               `tfsdk:"availability_zone"`
	Labels               types.Map                  `tfsdk:"labels"`
	Description          types.String               `tfsdk:"description"`
	PerformanceClass     types.String               `tfsdk:"performance_class"`
	Size                 types.Int64                `tfsdk:"size"`
	ServerId             types.String               `tfsdk:"server_id"`
	Source               types.Object               `tfsdk:"source"`
	EncryptionParameters *encryptionParametersModel `tfsdk:"encryption_parameters"`
	Encrypted            types.Bool                 `tfsdk:"encrypted"`
}

Jump to

Keyboard shortcuts

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