physical

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CIM_PhysicalMemory  string = "CIM_PhysicalMemory"
	CIM_PhysicalPackage string = "CIM_PhysicalPackage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	XMLName           xml.Name `xml:"Body"`
	PullResponse      PullResponse
	EnumerateResponse common.EnumerateResponse
	MemoryResponse    PhysicalMemory
}

Response Types

type Memory

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

func NewPhysicalMemoryWithClient

func NewPhysicalMemoryWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Memory

NewPhysicalMemory returns a new instance of the PhysicalMemory struct.

func (Memory) Enumerate

func (memory Memory) Enumerate() (response Response, err error)

Enumerate returns an enumeration context which is used in a subsequent Pull call

func (Memory) Pull

func (memory Memory) Pull(enumerationContext string) (response Response, err error)

Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.

type MemoryType

type MemoryType int

Response Types

const (
	MemoryTypeUnknown MemoryType = iota
	MemoryTypeOther
	MemoryTypeDRAM
	MemoryTypeSynchronous_DRAM
	MemoryTypeCache_DRAM
	MemoryTypeEDO
	MemoryTypeEDRAM
	MemoryTypeVRAM
	MemoryTypeSRAM
	MemoryTypeRAM
	MemoryTypeROM
	MemoryTypeFlash
	MemoryTypeEEPROM
	MemoryTypeFEPROM
	MemoryTypeEPROM
	MemoryTypeCDRAM
	MemoryType3DRAM
	MemoryTypeSDRAM
	MemoryTypeSGRAM
	MemoryTypeRDRAM
	MemoryTypeDDR
	MemoryTypeDDR2
	MemoryTypeBRAM
	MemoryTypeFBDIMM
	MemoryTypeDDR3
	MemoryTypeFBD2
	MemoryTypeDDR4
	MemoryTypeLPDDR
	MemoryTypeLPDDR2
	MemoryTypeLPDDR3
	MemoryTypeLPDDR4
	MemoryTypeLogicalnonvolatiledevice
	MemoryTypeHBM
	MemoryTypeHBM2
	MemoryTypeDDR5
	MemoryTypeLPDDR5
	MemoryTypeHBM3
)

type Package

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

func NewPhysicalPackageWithClient

func NewPhysicalPackageWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Package

NewPhysicalPackage returns a new instance of the PhysicalPackage struct.

func (Package) Enumerate

func (physicalPackage Package) Enumerate() (response Response, err error)

Enumerate returns an enumeration context which is used in a subsequent Pull call

func (Package) Pull

func (physicalPackage Package) Pull(enumerationContext string) (response Response, err error)

Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.

type PhysicalMemory

type PhysicalMemory struct {
	XMLName                    xml.Name                 `xml:"CIM_PhysicalMemory"`
	PartNumber                 string                   `xml:"PartNumber"`
	SerialNumber               string                   `xml:"SerialNumber"`
	Manufacturer               string                   `xml:"Manufacturer"`
	ElementName                string                   `xml:"ElementName"`
	CreationClassName          string                   `xml:"CreationClassName"`
	Tag                        string                   `xml:"Tag"`
	OperationalStatus          models.OperationalStatus `xml:"OperationalStatus"`
	FormFactor                 int                      `xml:"FormFactor,omitempty"`
	MemoryType                 MemoryType               `xml:"MemoryType,omitempty"`
	Speed                      int                      `xml:"Speed,omitempty"`
	Capacity                   int                      `xml:"Capacity,omitempty"`
	BankLabel                  string                   `xml:"BankLabel,omitempty"`
	ConfiguredMemoryClockSpeed int                      `xml:"ConfiguredMemoryClockSpeed,omitempty"`
	IsSpeedInMhz               bool                     `xml:"IsSpeedInMhz,omitempty"`
	MaxMemorySpeed             int                      `xml:"MaxMemorySpeed,omitempty"`
}

Response Types

type PullResponse

type PullResponse struct {
	XMLName xml.Name `xml:"PullResponse"`
	common.EnumerateResponse
	MemoryItems     []PhysicalMemory       `xml:"Items>CIM_PhysicalMemory"`
	PhysicalPackage []card.PackageResponse `xml:"Items>CIM_Card"` // This might need to be fixed if we get more than just CIM_Card back on a Pull call
}

Response Types

type Response

type Response struct {
	*client.Message
	XMLName xml.Name       `xml:"Envelope"`
	Header  message.Header `xml:"Header"`
	Body    Body           `xml:"Body"`
}

Response Types

func (*Response) JSON

func (r *Response) JSON() string

JSON marshals the type into JSON format

func (*Response) YAML

func (r *Response) YAML() string

YAML marshals the type into YAML format

Jump to

Keyboard shortcuts

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