events

package
v0.0.0-...-468f387 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EventType    EventType
	ResourceType ObjectType
	Timestamp    time.Time

	// real objects that created te event
	RuntimeObj []interface{}

	// kubernetes object metadata
	MetaData kapi.ObjectMeta
	// contains filtered or unexported fields
}

func New

func New(Type EventType, obj ...interface{}) *Event

func (*Event) Ignorable

func (e *Event) Ignorable() bool

type EventReason

type EventReason string
const (
	EventReasonAlertAcknowledgement EventReason = "AlertAcknowledgement"
)

func (EventReason) String

func (r EventReason) String() string

type EventType

type EventType string
const (
	Added   EventType = "ADDED"
	Deleted EventType = "DELETED"
	Updated EventType = "UPDATETD"
	None    EventType = "NONE"
)

func (EventType) Is

func (e EventType) Is(event string) bool

func (EventType) IsAdded

func (e EventType) IsAdded() bool

func (EventType) IsDeleted

func (e EventType) IsDeleted() bool

func (EventType) IsNone

func (e EventType) IsNone() bool

func (EventType) IsUpdated

func (e EventType) IsUpdated() bool

func (EventType) String

func (e EventType) String() string

type ObjectKind

type ObjectKind string
const (
	ObjectKindAlert ObjectKind = "Alert"
)

func (ObjectKind) String

func (o ObjectKind) String() string

type ObjectType

type ObjectType string
const (
	Alert           ObjectType = "alerts"
	Certificate     ObjectType = "certificates"
	Cluster         ObjectType = "cluster"
	ConfigMap       ObjectType = "configmaps"
	DaemonSet       ObjectType = "daemonsets"
	Endpoint        ObjectType = "endpoints"
	ExtendedIngress ObjectType = "extendedingresses"
	Ingress         ObjectType = "ingresses"
	Namespace       ObjectType = "namespaces"
	Node            ObjectType = "nodes"
	StatefulSet     ObjectType = "statefulsets"
	Pod             ObjectType = "pods"
	RC              ObjectType = "replicationcontrollers"
	ReplicaSet      ObjectType = "replicasets"
	Deployments     ObjectType = "deployments"
	Service         ObjectType = "services"
	Unknown         ObjectType = "unknown"
	AlertEvent      ObjectType = "alertevents"
)

func (ObjectType) Is

func (o ObjectType) Is(r string) bool

func (ObjectType) IsUnknown

func (o ObjectType) IsUnknown() bool

func (ObjectType) String

func (o ObjectType) String() string

Jump to

Keyboard shortcuts

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