qemu

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema = schema.ListNestedAttribute{
	Computed: true,
	NestedObject: schema.NestedAttributeObject{
		Attributes: map[string]schema.Attribute{
			"id": schema.NumberAttribute{
				Computed:    true,
				Description: "The id of the resource.",
			},
			"node": schema.StringAttribute{
				Computed:    true,
				Description: "The owning node.",
			},
			"name": schema.StringAttribute{
				Computed:    true,
				Description: "The name of the template.",
			},
			"cores": schema.NumberAttribute{
				Computed:    true,
				Description: "The number of cores.",
			},
			"memory": schema.Int64Attribute{
				Computed:    true,
				Description: "The allocated of memory in bytes.",
			},
			"agent": schema.BoolAttribute{
				Computed:    true,
				Description: "Whether the the guest agent is installed.",
			},
			"tags": schema.ListAttribute{
				Computed:    true,
				Description: "Tags on the resource.",
				ElementType: types.StringType,
			},
			"disks": schema.ListNestedAttribute{
				Computed: true,
				NestedObject: schema.NestedAttributeObject{
					Attributes: map[string]schema.Attribute{
						"storage": schema.StringAttribute{
							Computed:    true,
							Description: "The storage the disk is on.",
						},
						"size": schema.Int64Attribute{
							Computed:    true,
							Description: "The size of the disk.",
						},
						"type": schema.StringAttribute{
							Computed:    true,
							Description: "The type of the disk.",
						},
						"position": schema.StringAttribute{
							Computed:    true,
							Description: "The position of the disk.",
						},
						"discard": schema.BoolAttribute{
							Computed:    true,
							Description: "Whether the disk has discard enabled.",
						},
					},
				},
			},
			"network_interfaces": schema.ListNestedAttribute{
				Computed: true,
				NestedObject: schema.NestedAttributeObject{
					Attributes: map[string]schema.Attribute{
						"bridge": schema.StringAttribute{
							Computed:    true,
							Description: "The bridge the network interface is on.",
						},
						"firewall": schema.BoolAttribute{
							Computed:    true,
							Description: "Whether the network interface has the firewall enabled.",
						},
						"model": schema.StringAttribute{
							Computed:    true,
							Description: "The model of the network interface.",
						},
						"mac_address": schema.StringAttribute{
							Computed:    true,
							Description: "The MAC address of the network interface.",
						},
						"vlan": schema.NumberAttribute{
							Computed:    true,
							Description: "The VLAN of the network interface.",
						},
						"position": schema.StringAttribute{
							Computed:    true,
							Description: "The position of the network interface.",
						},
					},
				},
			},
		},
	},
}

Functions

This section is empty.

Types

type VirtualDiskModel

type VirtualDiskModel struct {
	Storage  types.String `tfsdk:"storage"`
	Size     types.Int64  `tfsdk:"size"`
	Type     types.String `tfsdk:"type"`
	Position types.String `tfsdk:"position"`
	Discard  types.Bool   `tfsdk:"discard"`
}

type VirtualInterfaceModel

type VirtualInterfaceModel struct {
	Bridge     types.String `tfsdk:"bridge"`
	Vlan       types.Number `tfsdk:"vlan"`
	Model      types.String `tfsdk:"model"`
	MacAddress types.String `tfsdk:"mac_address"`
	Position   types.String `tfsdk:"position"`
	Firewall   types.Bool   `tfsdk:"firewall"`
}

type VirtualMachineModel

type VirtualMachineModel struct {
	ID         types.Number            `tfsdk:"id"`
	Node       types.String            `tfsdk:"node"`
	Name       types.String            `tfsdk:"name"`
	Cores      types.Number            `tfsdk:"cores"`
	Memory     types.Int64             `tfsdk:"memory"`
	Agent      types.Bool              `tfsdk:"agent"`
	Tags       []types.String          `tfsdk:"tags"`
	Disks      []VirtualDiskModel      `tfsdk:"disks"`
	Interfaces []VirtualInterfaceModel `tfsdk:"network_interfaces"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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