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
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
Click to show internal directories.
Click to hide internal directories.