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

volume

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 30 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 Model

type Model struct {
	Id               types.String `tfsdk:"id"` // needed by TF
	ProjectId        types.String `tfsdk:"project_id"`
	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"`
}

Jump to

Keyboard shortcuts

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