resources

package
v0.0.0-...-6459608 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SharedFSMount = "sharedFSMount"
	DomainID      = "domainID"
	MACAddress    = "mac"
	DHCPEntries   = "dhcpEntries"
	ImageName     = "imageName"
	VolumeKey     = "volumeKey"
	ImagePath     = "imagePath"
	PoolName      = "poolName"
	PoolPath      = "poolPath"
	Nvram         = "nvram"
	Efi           = "efi"
	Format        = "format"
	VCPU          = "vcpu"
	CPUTune       = "cputune"
	Hypervisor    = "hypervisor"
	CommandLine   = "commandLine"
)
View Source
const (
	RAMPool     vmconfig.PoolType = "ram"
	DefaultPool vmconfig.PoolType = "default"
)

Variables

This section is empty.

Functions

func GetConsolePath

func GetConsolePath(domainName string) string

func GetDefaultDomainXLS

func GetDefaultDomainXLS(...interface{}) string

func GetDefaultNetworkXLS

func GetDefaultNetworkXLS(args map[string]pulumi.StringInput) pulumi.StringOutput

func GetDefaultPoolXML

func GetDefaultPoolXML(args map[string]pulumi.StringInput, _ string) pulumi.StringOutput

func GetDefaultVolumeXML

func GetDefaultVolumeXML(args *RecipeLibvirtVolumeArgs, recipe string) pulumi.StringOutput

func GetLocalArchRecipe

func GetLocalArchRecipe(recipe string) string

Types

type AMD64ResourceCollection

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

func NewAMD64ResourceCollection

func NewAMD64ResourceCollection(recipe string) *AMD64ResourceCollection

func (*AMD64ResourceCollection) GetDomainXLS

func (*AMD64ResourceCollection) GetLibvirtDomainArgs

func (a *AMD64ResourceCollection) GetLibvirtDomainArgs(args *RecipeLibvirtDomainArgs) (*libvirt.DomainArgs, error)

func (*AMD64ResourceCollection) GetPoolXML

func (*AMD64ResourceCollection) GetVolumeXML

type ARM64ResourceCollection

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

func NewARM64ResourceCollection

func NewARM64ResourceCollection(recipe string) *ARM64ResourceCollection

func (*ARM64ResourceCollection) GetDomainXLS

func (*ARM64ResourceCollection) GetLibvirtDomainArgs

func (a *ARM64ResourceCollection) GetLibvirtDomainArgs(args *RecipeLibvirtDomainArgs) (*libvirt.DomainArgs, error)

func (*ARM64ResourceCollection) GetPoolXML

func (*ARM64ResourceCollection) GetVolumeXML

type DefaultResourceCollection

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

func NewDefaultResourceCollection

func NewDefaultResourceCollection(recipe string) *DefaultResourceCollection

func (*DefaultResourceCollection) GetDomainXLS

func (*DefaultResourceCollection) GetLibvirtDomainArgs

func (*DefaultResourceCollection) GetPoolXML

func (*DefaultResourceCollection) GetVolumeXML

type DiskTarget

type DiskTarget string

type DistroAMD64ResourceCollection

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

func NewDistroAMD64ResourceCollection

func NewDistroAMD64ResourceCollection(recipe string) *DistroAMD64ResourceCollection

func (*DistroAMD64ResourceCollection) GetDomainXLS

func (*DistroAMD64ResourceCollection) GetLibvirtDomainArgs

func (*DistroAMD64ResourceCollection) GetPoolXML

func (*DistroAMD64ResourceCollection) GetVolumeXML

type DistroARM64ResourceCollection

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

func NewDistroARM64ResourceCollection

func NewDistroARM64ResourceCollection(recipe string) *DistroARM64ResourceCollection

func (*DistroARM64ResourceCollection) GetDomainXLS

func (*DistroARM64ResourceCollection) GetLibvirtDomainArgs

func (*DistroARM64ResourceCollection) GetPoolXML

func (*DistroARM64ResourceCollection) GetVolumeXML

type DomainDisk

type DomainDisk struct {
	VolumeID   pulumi.StringPtrInput
	Target     string
	Mountpoint string
}

type RecipeLibvirtDomainArgs

type RecipeLibvirtDomainArgs struct {
	DomainName        string
	Vcpu              int
	Memory            int
	Xls               pulumi.StringOutput
	KernelPath        string
	Disks             []DomainDisk
	Resources         ResourceCollection
	ExtraKernelParams map[string]string
	Machine           string
	ConsoleType       string
	Type              string
}

type RecipeLibvirtVolumeArgs

type RecipeLibvirtVolumeArgs struct {
	PoolType vmconfig.PoolType
	XMLArgs  map[string]pulumi.StringInput
}

type ResourceCollection

type ResourceCollection interface {
	GetDomainXLS(args map[string]pulumi.StringInput) pulumi.StringOutput
	GetVolumeXML(*RecipeLibvirtVolumeArgs) pulumi.StringOutput
	GetPoolXML(args map[string]pulumi.StringInput) pulumi.StringOutput
	GetLibvirtDomainArgs(*RecipeLibvirtDomainArgs) (*libvirt.DomainArgs, error)
}

func NewResourceCollection

func NewResourceCollection(recipe string) ResourceCollection

Jump to

Keyboard shortcuts

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