software

package
v2.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CIM_SoftwareIdentity = "CIM_SoftwareIdentity"

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
	SoftwareIdentityResponse SoftwareIdentity
}

Response Types

type Identity

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

func NewSoftwareIdentityWithClient

func NewSoftwareIdentityWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Identity

NewSoftwareIdentity returns a new instance of the SoftwareIdentity struct.

func (Identity) Enumerate

func (identity Identity) Enumerate() (response Response, err error)

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

func (Identity) Get

func (identity Identity) Get(instanceID string) (response Response, err error)

Get retrieves the representation of the instance

func (Identity) Pull

func (identity Identity) 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 PullResponse

type PullResponse struct {
	XMLName               xml.Name           `xml:"PullResponse"`
	SoftwareIdentityItems []SoftwareIdentity `xml:"Items>CIM_SoftwareIdentity"`
}

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

type SoftwareIdentity

type SoftwareIdentity struct {
	XMLName       xml.Name `xml:"CIM_SoftwareIdentity"`
	InstanceID    string   `xml:"InstanceID"`
	VersionString string   `xml:"VersionString"`
	IsEntity      bool     `xml:"IsEntity"`
}

Response Types

Jump to

Keyboard shortcuts

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