v1

package
v0.0.0-...-d47a69b Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromClusterScanHandlerToHandler

func FromClusterScanHandlerToHandler(sync ClusterScanHandler) generic.Handler

func FromClusterScanProfileHandlerToHandler

func FromClusterScanProfileHandlerToHandler(sync ClusterScanProfileHandler) generic.Handler

func RegisterClusterScanGeneratingHandler

func RegisterClusterScanGeneratingHandler(ctx context.Context, controller ClusterScanController, apply apply.Apply,
	condition condition.Cond, name string, handler ClusterScanGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterClusterScanStatusHandler

func RegisterClusterScanStatusHandler(ctx context.Context, controller ClusterScanController, condition condition.Cond, name string, handler ClusterScanStatusHandler)

func UpdateClusterScanDeepCopyOnChange

func UpdateClusterScanDeepCopyOnChange(client ClusterScanClient, obj *v1.ClusterScan, handler func(obj *v1.ClusterScan) (*v1.ClusterScan, error)) (*v1.ClusterScan, error)

func UpdateClusterScanProfileDeepCopyOnChange

func UpdateClusterScanProfileDeepCopyOnChange(client ClusterScanProfileClient, obj *v1.ClusterScanProfile, handler func(obj *v1.ClusterScanProfile) (*v1.ClusterScanProfile, error)) (*v1.ClusterScanProfile, error)

Types

type ClusterScanCache

type ClusterScanCache interface {
	Get(namespace, name string) (*v1.ClusterScan, error)
	List(namespace string, selector labels.Selector) ([]*v1.ClusterScan, error)

	AddIndexer(indexName string, indexer ClusterScanIndexer)
	GetByIndex(indexName, key string) ([]*v1.ClusterScan, error)
}

type ClusterScanClient

type ClusterScanClient interface {
	Create(*v1.ClusterScan) (*v1.ClusterScan, error)
	Update(*v1.ClusterScan) (*v1.ClusterScan, error)
	UpdateStatus(*v1.ClusterScan) (*v1.ClusterScan, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1.ClusterScan, error)
	List(namespace string, opts metav1.ListOptions) (*v1.ClusterScanList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ClusterScan, err error)
}

type ClusterScanController

type ClusterScanController interface {
	generic.ControllerMeta
	ClusterScanClient

	OnChange(ctx context.Context, name string, sync ClusterScanHandler)
	OnRemove(ctx context.Context, name string, sync ClusterScanHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() ClusterScanCache
}

func NewClusterScanController

func NewClusterScanController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ClusterScanController

type ClusterScanGeneratingHandler

type ClusterScanGeneratingHandler func(obj *v1.ClusterScan, status v1.ClusterScanStatus) ([]runtime.Object, v1.ClusterScanStatus, error)

type ClusterScanHandler

type ClusterScanHandler func(string, *v1.ClusterScan) (*v1.ClusterScan, error)

type ClusterScanIndexer

type ClusterScanIndexer func(obj *v1.ClusterScan) ([]string, error)

type ClusterScanProfileCache

type ClusterScanProfileCache interface {
	Get(namespace, name string) (*v1.ClusterScanProfile, error)
	List(namespace string, selector labels.Selector) ([]*v1.ClusterScanProfile, error)

	AddIndexer(indexName string, indexer ClusterScanProfileIndexer)
	GetByIndex(indexName, key string) ([]*v1.ClusterScanProfile, error)
}

type ClusterScanProfileClient

type ClusterScanProfileClient interface {
	Create(*v1.ClusterScanProfile) (*v1.ClusterScanProfile, error)
	Update(*v1.ClusterScanProfile) (*v1.ClusterScanProfile, error)

	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1.ClusterScanProfile, error)
	List(namespace string, opts metav1.ListOptions) (*v1.ClusterScanProfileList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ClusterScanProfile, err error)
}

type ClusterScanProfileController

type ClusterScanProfileController interface {
	generic.ControllerMeta
	ClusterScanProfileClient

	OnChange(ctx context.Context, name string, sync ClusterScanProfileHandler)
	OnRemove(ctx context.Context, name string, sync ClusterScanProfileHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() ClusterScanProfileCache
}

func NewClusterScanProfileController

func NewClusterScanProfileController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ClusterScanProfileController

type ClusterScanProfileHandler

type ClusterScanProfileHandler func(string, *v1.ClusterScanProfile) (*v1.ClusterScanProfile, error)

type ClusterScanProfileIndexer

type ClusterScanProfileIndexer func(obj *v1.ClusterScanProfile) ([]string, error)

type ClusterScanStatusHandler

type ClusterScanStatusHandler func(obj *v1.ClusterScan, status v1.ClusterScanStatus) (v1.ClusterScanStatus, error)

type Interface

type Interface interface {
	ClusterScan() ClusterScanController
	ClusterScanProfile() ClusterScanProfileController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

Jump to

Keyboard shortcuts

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