events

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package events is used to trigger events across the daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type      EventType
	Timestamp time.Time
	Obj       interface{}
}

Event is used to trigger events throughout the daemon.

func NewEvent

func NewEvent(t EventType, obj interface{}) *Event

NewEvent creates a new event from type and interface.

type EventType

type EventType int

EventType represents the type of event that occurred.

const (
	// IdentityAdd is the event type used when a new identity is added to
	// the K/V store.
	IdentityAdd EventType = iota
	// IdentityMod is the event type used when a existing identity is
	// scheduled for deletion but there are still reference counts to it.
	IdentityMod
	// IdentityDel is the event type used when a existing identity is
	// deleted.
	IdentityDel
)

Jump to

Keyboard shortcuts

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