virtualization

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSources

func DataSources() []func() datasource.DataSource

func NewGuestDataSource

func NewGuestDataSource() datasource.DataSource

func NewGuestListDataSource

func NewGuestListDataSource() datasource.DataSource

func NewGuestResource

func NewGuestResource() resource.Resource

func NewImageResource

func NewImageResource() resource.Resource

func Resources

func Resources() []func() resource.Resource

Types

type GuestDataSource

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

func (*GuestDataSource) Configure

func (*GuestDataSource) Metadata

func (*GuestDataSource) Read

func (*GuestDataSource) Schema

type GuestDataSourceModel

type GuestDataSourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Status      types.String `tfsdk:"status"`
	StorageID   types.String `tfsdk:"storage_id"`
	StorageName types.String `tfsdk:"storage_name"`
	Autorun     types.Int64  `tfsdk:"autorun"`
	VcpuNum     types.Int64  `tfsdk:"vcpu_num"`
	VramSize    types.Int64  `tfsdk:"vram_size"`
	Disks       types.Set    `tfsdk:"disks"`
	Networks    types.Set    `tfsdk:"networks"`
}

func (GuestDataSourceModel) AttrType

func (m GuestDataSourceModel) AttrType() map[string]attr.Type

func (*GuestDataSourceModel) FromGuest

func (GuestDataSourceModel) ModelType

func (m GuestDataSourceModel) ModelType() attr.Type

func (GuestDataSourceModel) Value

func (m GuestDataSourceModel) Value() attr.Value

type GuestIsoModel

type GuestIsoModel struct {
	ID   types.String `tfsdk:"image_id"`
	Boot types.Bool   `tfsdk:"boot"`
}

type GuestListDataSource

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

func (*GuestListDataSource) Configure

func (*GuestListDataSource) Metadata

func (*GuestListDataSource) Read

func (*GuestListDataSource) Schema

type GuestListDataSourceModel

type GuestListDataSourceModel struct {
	Guest types.List `tfsdk:"guest"`
}

type GuestResource

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

func (*GuestResource) Configure

func (*GuestResource) Create

Create implements resource.Resource.

func (*GuestResource) Delete

Delete implements resource.Resource.

func (*GuestResource) ImportState

func (*GuestResource) Metadata

Metadata implements resource.Resource.

func (*GuestResource) Read

Read implements resource.Resource.

func (*GuestResource) Schema

Schema implements resource.Resource.

func (*GuestResource) Update

Update implements resource.Resource.

func (*GuestResource) ValidateConfig

ValidateConfig.

type GuestResourceModel

type GuestResourceModel struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
	// Description types.String `tfsdk:"description"`
	// Status      types.String `tfsdk:"status"`
	StorageID   types.String `tfsdk:"storage_id"`
	StorageName types.String `tfsdk:"storage_name"`
	// AutoRun     types.Int64  `tfsdk:"autorun"`
	VcpuNum   types.Int64 `tfsdk:"vcpu_num"`
	VramSize  types.Int64 `tfsdk:"vram_size"`
	Disks     types.Set   `tfsdk:"disk"`
	Networks  types.Set   `tfsdk:"network"`
	IsoImages types.Set   `tfsdk:"iso"`
	Run       types.Bool  `tfsdk:"run"`
}

GuestResourceModel describes the resource data model.

type ImageResource

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

func (*ImageResource) Configure

func (*ImageResource) Create

Create implements resource.Resource.

func (*ImageResource) Delete

Delete implements resource.Resource.

func (*ImageResource) Metadata

Metadata implements resource.Resource.

func (*ImageResource) Read

Read implements resource.Resource.

func (*ImageResource) Schema

Schema implements resource.Resource.

func (*ImageResource) Update

Update implements resource.Resource.

type ImageResourceModel

type ImageResourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Path        types.String `tfsdk:"path"`
	AutoClean   types.Bool   `tfsdk:"auto_clean"`
	ImageType   types.String `tfsdk:"image_type"`
	StorageID   types.String `tfsdk:"storage_id"`
	StorageName types.String `tfsdk:"storage_name"`
}

ImageResourceModel describes the resource data model.

type VDiskDataModel

type VDiskDataModel struct {
	ID         types.String `tfsdk:"id"`
	Size       types.Int64  `tfsdk:"size"`
	Controller types.Int64  `tfsdk:"controller"`
	Unmap      types.Bool   `tfsdk:"unmap"`
}

func (VDiskDataModel) AttrType

func (m VDiskDataModel) AttrType() map[string]attr.Type

func (VDiskDataModel) ModelType

func (m VDiskDataModel) ModelType() attr.Type

func (VDiskDataModel) Value

func (m VDiskDataModel) Value() attr.Value

type VDiskModel

type VDiskModel struct {
	// ID         types.String `tfsdk:"id"`
	Size types.Int64 `tfsdk:"size"`
	// Controller types.Int64  `tfsdk:"controller"`
	// Unmap      types.Bool   `tfsdk:"unmap"`
	ImageID   types.String `tfsdk:"image_id"`
	ImageName types.String `tfsdk:"image_name"`
}

func (VDiskModel) AttrType

func (m VDiskModel) AttrType() map[string]attr.Type

func (VDiskModel) ModelType

func (m VDiskModel) ModelType() attr.Type

func (VDiskModel) Value

func (m VDiskModel) Value() attr.Value

type VNicDataModel

type VNicDataModel struct {
	ID     types.String `tfsdk:"id"`
	Mac    types.String `tfsdk:"mac"`
	Model  types.Int64  `tfsdk:"model"`
	Name   types.String `tfsdk:"name"`
	VNicID types.String `tfsdk:"vnic_id"`
}

func (VNicDataModel) AttrType

func (m VNicDataModel) AttrType() map[string]attr.Type

func (VNicDataModel) ModelType

func (m VNicDataModel) ModelType() attr.Type

func (VNicDataModel) Value

func (m VNicDataModel) Value() attr.Value

type VNicModel

type VNicModel struct {
	ID  types.String `tfsdk:"id"`
	Mac types.String `tfsdk:"mac"`
	// Model  types.Int64  `tfsdk:"model"`
	Name types.String `tfsdk:"name"`
}

func (VNicModel) AttrType

func (m VNicModel) AttrType() map[string]attr.Type

func (VNicModel) ModelType

func (m VNicModel) ModelType() attr.Type

func (VNicModel) Value

func (m VNicModel) Value() attr.Value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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