kctl

package
v0.0.0-...-8e3368f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Handler    ControllerHandler
	Identifier string
	Name       string
	Namespace  string
	// contains filtered or unexported fields
}

func NewController

func NewController(namespace, name string, handler ControllerHandler) (*Controller, error)

func (*Controller) Event

func (c *Controller) Event(object runtime.Object, eventtype, reason, message string)

func (*Controller) Run

func (c *Controller) Run(informer cache.SharedInformer, ch chan error)

type ControllerHandler

type ControllerHandler interface {
	Add(interface{}) error
	Client() kubernetes.Interface
	Delete(interface{}) error
	Start() error
	Stop() error
	Update(interface{}, interface{}) error
}

Jump to

Keyboard shortcuts

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