Documentation
¶
Index ¶
Constants ¶
View Source
const ( CREATED = EventType("created") UPDATED = EventType("updated") DELETED = EventType("deleted") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller implementation for At resources
func NewController ¶
func NewController( kubeClientset kubernetes.Interface, swarmClientset clientset.Interface, podInformer corev1informer.PodInformer, swarmInformer informers.SwarmInformer, ) *Controller
NewController returns a new swarm controller
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.
type Handler ¶
type Handler interface { Created(ctx context.Context, obj runtime.Object) Updated(ctx context.Context, new runtime.Object, old runtime.Object) Deleted(ctx context.Context, obj runtime.Object) }
func NewHandler ¶
type ListWatcher ¶
type ListWatcher interface { List(options metav1.ListOptions) (runtime.Object, error) Watch(options metav1.ListOptions) (watch.Interface, error) }
func NewAdapter ¶
func NewAdapter(c swarmv1alpha1.K8slabV1alpha1Interface) ListWatcher
Click to show internal directories.
Click to hide internal directories.