alarmclock

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 8 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 IPSAlarmClockOccurrence 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          StartTime
	Interval           Interval
	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 Interval

type Interval struct {
	XMLName  xml.Name `xml:"Interval"`
	Interval string
}

OUTPUT Response Types.

type Occurrence

type Occurrence struct {
	base.WSManService[Response]
}

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.

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.

type StartTime

type StartTime struct {
	XMLName  xml.Name `xml:"StartTime"`
	Datetime time.Time
}

OUTPUT Response Types.

Jump to

Keyboard shortcuts

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