Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageScan ¶
type ImageScan struct {
// contains filtered or unexported fields
}
ImageScan controller handles events related to ImageScans. It starts and receives events from the informer, calling appropriate functions on our concrete services layer implementation.
func NewImageScan ¶
func NewImageScan(scansvc ImageScanSyncer) *ImageScan
NewImageScan returns a new controller for ImageScans.
func (*ImageScan) RequiresLeaderElection ¶
RequiresLeaderElection returns if this controller requires or not a leader lease to run.
type ImageScanSyncer ¶
type ImageScanSyncer interface { Sync(context.Context, *v1b1scans.ImageScan) error Get(context.Context, string) (*v1b1scans.ImageScan, error) AddEventHandler(cache.ResourceEventHandler) }
ImageScanSyncer abstraction exists to make testing easier. You most likely wanna see ImageScan struct under services/imagescan.go for a concrete implementation of this.
Click to show internal directories.
Click to hide internal directories.