storage

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStoragePoolResource

func NewStoragePoolResource() resource.Resource

NewStoragePoolResource returns a new storage pool resource.

func NewStorageVolumeCopyResource

func NewStorageVolumeCopyResource() resource.Resource

NewStorageVolumeCopyResource returns a new storage volume copy resource.

func NewStorageVolumeResource

func NewStorageVolumeResource() resource.Resource

NewStorageVolumeResource returns a new storage volume resource.

Types

type StoragePoolModel

type StoragePoolModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Driver      types.String `tfsdk:"driver"`
	Project     types.String `tfsdk:"project"`
	Target      types.String `tfsdk:"target"`
	Remote      types.String `tfsdk:"remote"`
	Config      types.Map    `tfsdk:"config"`
}

func (StoragePoolModel) ComputedKeys

func (_ StoragePoolModel) ComputedKeys(driver string) []string

ComputedKeys returns list of computed config keys.

type StoragePoolResource

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

StoragePoolResource represent Incus storage pool resource.

func (*StoragePoolResource) Configure

func (StoragePoolResource) Create

func (StoragePoolResource) Delete

func (StoragePoolResource) ImportState

func (StoragePoolResource) Metadata

func (StoragePoolResource) Read

func (StoragePoolResource) Schema

func (StoragePoolResource) SyncState

SyncState fetches the server's current state for a storage pool and updates the provided model. It then applies this updated model as the new state in Terraform.

func (StoragePoolResource) Update

type StorageVolumeCopyModel

type StorageVolumeCopyModel struct {
	Name         types.String `tfsdk:"name"`
	Pool         types.String `tfsdk:"pool"`
	SourceName   types.String `tfsdk:"source_name"`
	SourcePool   types.String `tfsdk:"source_pool"`
	SourceRemote types.String `tfsdk:"source_remote"`
	Project      types.String `tfsdk:"project"`
	Target       types.String `tfsdk:"target"`
	Remote       types.String `tfsdk:"remote"`
}

type StorageVolumeCopyResource

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

StorageVolumeCopyResource represent Incus storage volume copy resource.

func (*StorageVolumeCopyResource) Configure

func (StorageVolumeCopyResource) Create

func (StorageVolumeCopyResource) Delete

func (StorageVolumeCopyResource) Metadata

func (StorageVolumeCopyResource) Read

func (StorageVolumeCopyResource) Schema

func (StorageVolumeCopyResource) Update

type StorageVolumeModel

type StorageVolumeModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Pool        types.String `tfsdk:"pool"`
	Type        types.String `tfsdk:"type"`
	ContentType types.String `tfsdk:"content_type"`
	Project     types.String `tfsdk:"project"`
	Target      types.String `tfsdk:"target"`
	Remote      types.String `tfsdk:"remote"`
	Config      types.Map    `tfsdk:"config"`

	// Computed.
	Location types.String `tfsdk:"location"`
}

func (StorageVolumeModel) ComputedKeys

func (_ StorageVolumeModel) ComputedKeys() []string

ComputedKeys returns list of computed config keys.

type StorageVolumeResource

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

StorageVolumeResource represent Incus storage volume resource.

func (*StorageVolumeResource) Configure

func (StorageVolumeResource) Create

func (StorageVolumeResource) Delete

func (StorageVolumeResource) ImportState

func (StorageVolumeResource) Metadata

func (StorageVolumeResource) Read

func (StorageVolumeResource) Schema

func (StorageVolumeResource) SyncState

SyncState fetches the server's current state for a storage volume and updates the provided model. It then applies this updated model as the new state in Terraform.

func (StorageVolumeResource) Update

Jump to

Keyboard shortcuts

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