routines

package
v0.0.0-...-da22ec3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	//http status code: 0 means does not affect status code
	Status  int
	Message string
}

type RCScheduler

type RCScheduler struct {
	Client       *kclient.Client
	Namespace    string
	ReplicaCount int
	// contains filtered or unexported fields
}

func (*RCScheduler) Cleanup

func (rcs *RCScheduler) Cleanup() error

func (*RCScheduler) Init

func (rcs *RCScheduler) Init() error

func (*RCScheduler) Poll

func (rcs *RCScheduler) Poll() error

type Routine

type Routine struct {
	Events <-chan *Event
	// contains filtered or unexported fields
}

func NewRoutine

func NewRoutine(client *kclient.Client,
	pollInterval time.Duration,
	podTTL time.Duration,
	handler RoutineHandler,
) *Routine

func (*Routine) SignalTerminate

func (r *Routine) SignalTerminate()

func (*Routine) Start

func (r *Routine) Start() error

type RoutineHandler

type RoutineHandler interface {
	Init() error
	Poll() error
	Cleanup() error
}

Jump to

Keyboard shortcuts

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