selectivedeployment

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAsOwnerReference

func SetAsOwnerReference(sdCopy *apps_v1alpha.SelectiveDeployment) []metav1.OwnerReference

SetAsOwnerReference returns the authority as owner

func Start

func Start(kubernetes kubernetes.Interface, edgenet versioned.Interface)

Start function is entry point of the controller

Types

type HandlerInterface

type HandlerInterface interface {
	Init(kubernetes kubernetes.Interface, edgenet versioned.Interface)
	ObjectCreated(obj interface{})
	ObjectUpdated(obj interface{})
	ObjectDeleted(obj interface{})
}

HandlerInterface interface contains the methods that are required

type SDHandler

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

SDHandler is a implementation of Handler

func (*SDHandler) Init

func (t *SDHandler) Init(kubernetes kubernetes.Interface, edgenet versioned.Interface)

Init handles any handler initialization

func (*SDHandler) ObjectCreated

func (t *SDHandler) ObjectCreated(obj interface{})

ObjectCreated is called when an object is created

func (*SDHandler) ObjectDeleted

func (t *SDHandler) ObjectDeleted(obj interface{})

ObjectDeleted is called when an object is deleted

func (*SDHandler) ObjectUpdated

func (t *SDHandler) ObjectUpdated(obj interface{})

ObjectUpdated is called when an object is updated

Jump to

Keyboard shortcuts

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