alarmclock

package
v2.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package alarmclock facilitates communication with Intel® AMT devices to represent a single alarm clock setting.

Index

Constants

View Source
const IPS_AlarmClockOccurrence string = "IPS_AlarmClockOccurrence"

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmClockOccurrence

type AlarmClockOccurrence struct {
	XMLName            xml.Name `xml:"IPS_AlarmClockOccurrence"`
	ElementName        string
	InstanceID         string
	StartTime          string
	Interval           string
	DeleteOnCompletion bool
}

OUTPUT Response Types

type Body

type Body struct {
	XMLName           xml.Name     `xml:"Body"`
	PullResponse      PullResponse `xml:"PullResponse"`
	EnumerateResponse common.EnumerateResponse
	GetResponse       AlarmClockOccurrence `xml:"IPS_AlarmClockOccurrence"`
}

OUTPUT Response Types

type Occurrence

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

func NewAlarmClockOccurrenceWithClient

func NewAlarmClockOccurrenceWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Occurrence

NewAlarmClockOccurrence returns a new instance of the AlarmClockOccurrence struct.

func (Occurrence) Delete

func (occurrence Occurrence) Delete(handle string) (response Response, err error)

Delete removes a the specified instance

func (Occurrence) Enumerate

func (occurrence Occurrence) Enumerate() (response Response, err error)

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

func (Occurrence) Get

func (occurrence Occurrence) Get(alarmName string) (response Response, err error)

Get retrieves the representation of the instance

func (Occurrence) Pull

func (occurrence Occurrence) 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"`
	Items   []AlarmClockOccurrence `xml:"Items>IPS_AlarmClockOccurrence"`
}

OUTPUT Response Types

type Response

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

OUTPUT 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