arbiter

package
v4.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

View Source
const MaxWorkers = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Arbiter

type Arbiter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewArbiter

func NewArbiter(os *osclient.Client, kc *kclient.Client, hub HubParams) *Arbiter

func (*Arbiter) Add

func (arb *Arbiter) Add()

func (*Arbiter) CanSendHubJobs

func (arb *Arbiter) CanSendHubJobs() bool

func (*Arbiter) Done

func (arb *Arbiter) Done(result bool, Reference string)

func (*Arbiter) ListenForControllers

func (arb *Arbiter) ListenForControllers()

func (*Arbiter) Load

func (arb *Arbiter) Load(done <-chan struct{})

func (*Arbiter) Start

func (arb *Arbiter) Start()

func (*Arbiter) Stop

func (arb *Arbiter) Stop()

func (*Arbiter) ValidateConfig

func (arb *Arbiter) ValidateConfig() bool

ValidateConfig validates if the Hub server configuration is valid. A login attempt will be performed.

func (*Arbiter) Watch

func (arb *Arbiter) Watch()

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 HubParams

type HubParams struct {
	Config  *bdscommon.HubConfig
	Version string
}
var Hub HubParams

type Job

type Job struct {
	ScanImage *ScanImage
	// contains filtered or unexported fields
}

func (Job) Done

func (job Job) Done(result bool)

func (Job) GetAnnotationInfo

func (job Job) GetAnnotationInfo() (result bool, info bdscommon.ImageInfo)

func (Job) Load

func (job Job) Load()

func (Job) MergeAnnotationResults

func (job Job) MergeAnnotationResults(oldInfo bdscommon.ImageInfo, newInfo bdscommon.ImageInfo) bdscommon.ImageInfo

func (Job) UpdateAnnotationInfo

func (job Job) UpdateAnnotationInfo(newInfo bdscommon.ImageInfo) bool

type ScanImage

type ScanImage struct {
	// contains filtered or unexported fields
}

type Watcher

type Watcher struct {
	Namespace string
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(os *osclient.Client, c *Arbiter) *Watcher

Create a new watcher

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)

func (*Watcher) Run

func (w *Watcher) Run()

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(index int, workerPool chan chan Job) Worker

func (Worker) Start

func (w Worker) Start()

Jump to

Keyboard shortcuts

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