Versions in this module Expand all Collapse all v0 v0.4.0 Dec 15, 2024 Changes in this version + func DataSources() []func() datasource.DataSource + func NewGuestDataSource() datasource.DataSource + func NewGuestListDataSource() datasource.DataSource + func NewGuestResource() resource.Resource + func NewImageResource() resource.Resource + func Resources() []func() resource.Resource + type GuestDataSource struct + func (d *GuestDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...) + func (d *GuestDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...) + func (d *GuestDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) + func (d *GuestDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...) + type GuestDataSourceModel struct + Autorun types.Int64 + Description types.String + Disks types.Set + ID types.String + Name types.String + Networks types.Set + Status types.String + StorageID types.String + StorageName types.String + VcpuNum types.Int64 + VramSize types.Int64 + func (m *GuestDataSourceModel) FromGuest(v *virtualization.Guest) error + func (m GuestDataSourceModel) AttrType() map[string]attr.Type + func (m GuestDataSourceModel) ModelType() attr.Type + func (m GuestDataSourceModel) Value() attr.Value + type GuestIsoModel struct + Boot types.Bool + ID types.String + type GuestListDataSource struct + func (d *GuestListDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...) + func (d *GuestListDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...) + func (d *GuestListDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) + func (d *GuestListDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...) + type GuestListDataSourceModel struct + Guest types.List + type GuestResource struct + func (f *GuestResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...) + func (f *GuestResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) + func (f *GuestResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) + func (f *GuestResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...) + func (f *GuestResource) Metadata(_ context.Context, req resource.MetadataRequest, ...) + func (f *GuestResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) + func (f *GuestResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) + func (f *GuestResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) + func (f *GuestResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...) + type GuestResourceModel struct + Disks types.Set + ID types.String + IsoImages types.Set + Name types.String + Networks types.Set + Run types.Bool + StorageID types.String + StorageName types.String + VcpuNum types.Int64 + VramSize types.Int64 + type ImageResource struct + func (f *ImageResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...) + func (f *ImageResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) + func (f *ImageResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) + func (f *ImageResource) Metadata(_ context.Context, req resource.MetadataRequest, ...) + func (f *ImageResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) + func (f *ImageResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) + func (f *ImageResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) + type ImageResourceModel struct + AutoClean types.Bool + ID types.String + ImageType types.String + Name types.String + Path types.String + StorageID types.String + StorageName types.String + type VDiskDataModel struct + Controller types.Int64 + ID types.String + Size types.Int64 + Unmap types.Bool + func (m VDiskDataModel) AttrType() map[string]attr.Type + func (m VDiskDataModel) ModelType() attr.Type + func (m VDiskDataModel) Value() attr.Value + type VDiskModel struct + ImageID types.String + ImageName types.String + Size types.Int64 + func (m VDiskModel) AttrType() map[string]attr.Type + func (m VDiskModel) ModelType() attr.Type + func (m VDiskModel) Value() attr.Value + type VNicDataModel struct + ID types.String + Mac types.String + Model types.Int64 + Name types.String + VNicID types.String + func (m VNicDataModel) AttrType() map[string]attr.Type + func (m VNicDataModel) ModelType() attr.Type + func (m VNicDataModel) Value() attr.Value + type VNicModel struct + ID types.String + Mac types.String + Name types.String + func (m VNicModel) AttrType() map[string]attr.Type + func (m VNicModel) ModelType() attr.Type + func (m VNicModel) Value() attr.Value