resource

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OtherResourceTypeName = map[int32]string{
	0:     "",
	1:     "Microsoft:Hyper-V:TPM",
	5:     "",
	6:     "",
	10:    "",
	17:    "",
	31:    "",
	33:    "",
	32770: "",
}
View Source
var ResourceSubTypeName = map[int32]string{
	0:     "Unknown",
	1:     "",
	5:     "Microsoft:Hyper-V:Emulated IDE Controller",
	6:     "Microsoft:Hyper-V:Synthetic SCSI Controller",
	10:    "Microsoft:Hyper-V:Synthetic Ethernet Port",
	17:    "Microsoft:Hyper-V:Synthetic Disk Drive",
	31:    "Microsoft:Hyper-V:Virtual Hard Disk",
	33:    "Microsoft:Hyper-V:Ethernet Connection",
	32770: "Microsoft:Hyper-V:GPU Partition",
}

Functions

This section is empty.

Types

type ResourceTypeValue

type ResourceTypeValue struct {
	ResourceType      v2.ResourcePool_ResourceType
	OtherResourceType string
	ResourceSubType   string
}

func GetResourceTypeValue

func GetResourceTypeValue(rtype v2.ResourcePool_ResourceType) *ResourceTypeValue

func (*ResourceTypeValue) Equals

func (r *ResourceTypeValue) Equals(in *ResourceTypeValue) bool

func (*ResourceTypeValue) String

func (r *ResourceTypeValue) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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