controller

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyController

type PolicyController interface {
	Add(obj runtime.Object, jsPolicy *policyv1beta1.JsPolicy) error
	RequeueAll() error
	Name() string
	Start(ctx context.Context)
}

func NewPolicyController

func NewPolicyController(managerClient client.Client, cachedClient client.Reader, vmPool vmpool.VMPool, policy string, gvks []schema.GroupVersionKind, scheme *runtime.Scheme) PolicyController

type PolicyManager

type PolicyManager interface {
	Start(ctx context.Context) error
	Update(policy *policyv1beta1.JsPolicy, requeue bool) error
	Delete(name string)
}

func NewControllerPolicyManager

func NewControllerPolicyManager(mgr manager.Manager, vmPool vmpool.VMPool, cache cache2.Cache) PolicyManager

Jump to

Keyboard shortcuts

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