Documentation ¶
Index ¶
- Constants
- type Arbiter
- func (arb *Arbiter) Add()
- func (arb *Arbiter) CanSendHubJobs() bool
- func (arb *Arbiter) Done(result bool, Reference string)
- func (arb *Arbiter) ListenForControllers()
- func (arb *Arbiter) Load(done <-chan struct{})
- func (arb *Arbiter) Start()
- func (arb *Arbiter) Stop()
- func (arb *Arbiter) ValidateConfig() bool
- func (arb *Arbiter) Watch()
- type Dispatcher
- type HubParams
- type Job
- func (job Job) Done(result bool)
- 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 Watcher
- type Worker
Constants ¶
View Source
const MaxWorkers = 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arbiter ¶
func (*Arbiter) CanSendHubJobs ¶
func (*Arbiter) ListenForControllers ¶
func (arb *Arbiter) ListenForControllers()
func (*Arbiter) ValidateConfig ¶
ValidateConfig validates if the Hub server configuration is valid. A login attempt will be performed.
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(jobQueue chan Job) *Dispatcher
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run()
type Job ¶
type Job struct { ScanImage *ScanImage // contains filtered or unexported fields }
func (Job) GetAnnotationInfo ¶
func (Job) MergeAnnotationResults ¶
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)
Click to show internal directories.
Click to hide internal directories.