vsphere

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCollector

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

func NewCollector

func NewCollector(client *vim25.Client, objects ...string) *EventCollector

func (*EventCollector) AddMonitoredObject

func (ec *EventCollector) AddMonitoredObject(ref string) error

func (*EventCollector) Name

func (ec *EventCollector) Name() string

func (*EventCollector) Register

func (ec *EventCollector) Register(callback func(events.Event))

Register an event manager callback with the collector

func (*EventCollector) RemoveMonitoredObject

func (ec *EventCollector) RemoveMonitoredObject(ref string)

func (*EventCollector) Start

func (ec *EventCollector) Start() error

Start the event collector

func (*EventCollector) Stop

func (ec *EventCollector) Stop()

type VMEvent

type VMEvent struct {
	*events.BaseEvent
}

func NewVMEvent

func NewVMEvent(be types.BaseEvent) *VMEvent

func (*VMEvent) Topic

func (vme *VMEvent) Topic() string

Jump to

Keyboard shortcuts

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