storage

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorageBucketKeyResource added in v0.0.2

func NewStorageBucketKeyResource() resource.Resource

NewStorageBucketKeyResource return a new storage bucket key resource.

func NewStorageBucketResource added in v0.0.2

func NewStorageBucketResource() resource.Resource

NewStorageBucketResource return a new storage bucket resource.

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 StorageBucketKeyModel added in v0.0.2

type StorageBucketKeyModel struct {
	Name          types.String `tfsdk:"name"`
	Description   types.String `tfsdk:"description"`
	Pool          types.String `tfsdk:"pool"`
	StorageBucket types.String `tfsdk:"storage_bucket"`
	Role          types.String `tfsdk:"role"`
	Project       types.String `tfsdk:"project"`
	Remote        types.String `tfsdk:"remote"`

	// Computed.
	AccessKey types.String `tfsdk:"access_key"`
	SecretKey types.String `tfsdk:"secret_key"`
}

type StorageBucketKeyResource added in v0.0.2

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

StorageBucketKeyResource represent Incus storage bucket key resource.

func (*StorageBucketKeyResource) Configure added in v0.0.2

func (StorageBucketKeyResource) Create added in v0.0.2

func (StorageBucketKeyResource) Delete added in v0.0.2

func (StorageBucketKeyResource) ImportState added in v0.0.2

func (StorageBucketKeyResource) Metadata added in v0.0.2

func (StorageBucketKeyResource) Read added in v0.0.2

func (StorageBucketKeyResource) Schema added in v0.0.2

TODO: setup proper schema for storage bucket key like volume for pool!

func (StorageBucketKeyResource) SyncState added in v0.0.2

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

func (StorageBucketKeyResource) Update added in v0.0.2

type StorageBucketModel added in v0.0.2

type StorageBucketModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Pool        types.String `tfsdk:"pool"`
	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"`
}

type StorageBucketResource added in v0.0.2

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

StorageBucketResource represent Incus storage bucket resource.

func (*StorageBucketResource) Configure added in v0.0.2

func (StorageBucketResource) Create added in v0.0.2

func (StorageBucketResource) Delete added in v0.0.2

func (StorageBucketResource) ImportState added in v0.0.2

func (StorageBucketResource) Metadata added in v0.0.2

func (StorageBucketResource) Read added in v0.0.2

func (StorageBucketResource) Schema added in v0.0.2

func (StorageBucketResource) SyncState added in v0.0.2

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

func (StorageBucketResource) Update added in v0.0.2

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