types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Object Object
	Func   FuncType
}

Action defines what Function to apply on a given Object.

type Context

type Context struct {
	Context context.Context
}

Context is the special context that is passed to the Handler. It includes: - Context: standard Go context that is used to pass cancellation signals and deadlines

type Event

type Event struct {
	Object  Object
	Deleted bool
}

Event is triggered when some change has happened on the watched resources. If created or updated, Object would be the current state and Deleted=false. If deleted, Object would be the last known state and Deleted=true.

type FuncType

type FuncType string

FuncType defines the type of the function of an Action.

type KubeFunc

type KubeFunc func(Object) error

KubeFunc is the function signature for supported kubernetes functions

type Object

type Object runtime.Object

Object is the Kubernetes runtime.Object interface expected of all resources that the user can watch.

Jump to

Keyboard shortcuts

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