Documentation ¶
Index ¶
- func Sort(events []types.BaseEvent)
- type HistoryCollector
- type Manager
- func (m Manager) CreateCollectorForEvents(ctx context.Context, filter types.EventFilterSpec) (*HistoryCollector, error)
- func (m Manager) EventCategory(ctx context.Context, event types.BaseEvent) (string, error)
- func (m Manager) Events(ctx context.Context, objects []types.ManagedObjectReference, pageSize int32, ...) error
- func (m Manager) LogUserEvent(ctx context.Context, entity types.ManagedObjectReference, msg string) error
- func (m Manager) PostEvent(ctx context.Context, eventToPost types.BaseEvent, taskInfo types.TaskInfo) error
- func (m Manager) QueryEvents(ctx context.Context, filter types.EventFilterSpec) ([]types.BaseEvent, error)
- func (m Manager) RetrieveArgumentDescription(ctx context.Context, eventTypeID string) ([]types.EventArgDesc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HistoryCollector ¶
type HistoryCollector struct {
*object.HistoryCollector
}
func NewHistoryCollector ¶
func NewHistoryCollector(c *vim25.Client, ref types.ManagedObjectReference) *HistoryCollector
func (HistoryCollector) LatestPage ¶
func (HistoryCollector) ReadNextEvents ¶
func (HistoryCollector) ReadPreviousEvents ¶
type Manager ¶
func NewManager ¶
func (Manager) CreateCollectorForEvents ¶
func (m Manager) CreateCollectorForEvents(ctx context.Context, filter types.EventFilterSpec) (*HistoryCollector, error)
func (Manager) EventCategory ¶
EventCategory returns the category for an event, such as "info" or "error" for example.
func (Manager) Events ¶ added in v0.5.0
func (m Manager) Events(ctx context.Context, objects []types.ManagedObjectReference, pageSize int32, tail bool, force bool, f func([]types.BaseEvent) error) error
Get the events from the specified object(s) and optionanlly tail the event stream
func (Manager) LogUserEvent ¶
func (Manager) QueryEvents ¶
func (Manager) RetrieveArgumentDescription ¶
Click to show internal directories.
Click to hide internal directories.