Documentation
¶
Index ¶
- Constants
- func RunWithTime(f func()) time.Duration
- type Arbiter
- type Controller
- func (c *Controller) AddImage(ID string, Reference string)
- func (c *Controller) Load(done <-chan struct{})
- func (c *Controller) RemoveImage(ID string, Reference string)
- func (c *Controller) Start(arb *Arbiter)
- func (c *Controller) Stop()
- func (c *Controller) ValidateConfig() bool
- func (c *Controller) ValidateDockerConfig() bool
- func (c *Controller) Watch()
- type Dispatcher
- type Docker
- type HubParams
- type Job
- func (job Job) Done()
- func (job Job) GetAnnotationInfo() (result bool, info bdscommon.ImageInfo)
- func (job Job) Load()
- func (job Job) MergeAnnotationResults(oldInfo bdscommon.ImageInfo, newInfo bdscommon.ImageInfo) bdscommon.ImageInfo
- func (job Job) UpdateAnnotationInfo(newInfo bdscommon.ImageInfo) bool
- type ScanImage
- type ScanResult
- type Watcher
- type Worker
Constants ¶
View Source
const MaxWorkers = 5
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
func NewController ¶
func (*Controller) AddImage ¶
func (c *Controller) AddImage(ID string, Reference string)
func (*Controller) Load ¶
func (c *Controller) Load(done <-chan struct{})
func (*Controller) RemoveImage ¶
func (c *Controller) RemoveImage(ID string, Reference string)
func (*Controller) Start ¶
func (c *Controller) Start(arb *Arbiter)
func (*Controller) Stop ¶
func (c *Controller) Stop()
func (*Controller) ValidateConfig ¶
func (c *Controller) ValidateConfig() bool
func (*Controller) ValidateDockerConfig ¶
func (c *Controller) ValidateDockerConfig() bool
func (*Controller) Watch ¶
func (c *Controller) Watch()
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(jobQueue chan Job, maxWorkers int) *Dispatcher
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run(arb *Arbiter)
type Job ¶
type Job struct { ScanImage *ScanImage // contains filtered or unexported fields }
func (Job) GetAnnotationInfo ¶
func (Job) MergeAnnotationResults ¶
type ScanResult ¶
type ScanResult struct {
// contains filtered or unexported fields
}
type Watcher ¶
type Watcher struct { Namespace string // contains filtered or unexported fields }
func (*Watcher) ImageAdded ¶
func (w *Watcher) ImageAdded(is *imageapi.ImageStream)
func (*Watcher) ImageDeleted ¶
func (w *Watcher) ImageDeleted(is *imageapi.ImageStream)
func (*Watcher) ImageUpdated ¶
func (w *Watcher) ImageUpdated(is *imageapi.ImageStream)
care should be used with updates. Per kube docs:
OnUpdate is also called when a re-list happens, and it will get called even if nothing changed. This is useful for periodically evaluating or syncing something.
func (*Watcher) PodCreated ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (Worker) RequestScanAuthorization ¶
Click to show internal directories.
Click to hide internal directories.