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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.