manifest

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotRunning = errors.New("not running")

ErrNotRunning is the error when service is not running

View Source
var (
	ErrShutdownTimerExpired = errors.New("shutdown timer expired")
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleManifest(context.Context, *manifest.Request) error
}

Handler is the interface that wraps HandleManifest method

type Service

type Service interface {
	StatusClient
	Handler
	Done() <-chan struct{}
}

Service is the interface that includes StatusClient and Handler interfaces. It also wraps Done method

func NewHandler

func NewHandler(ctx context.Context, session session.Session, bus pubsub.Bus) (Service, error)

NewHandler creates and returns new Service instance Manage incoming leases and manifests and pair the two together to construct and emit a ManifestReceived event.

type Status added in v0.6.0

type Status struct {
	Deployments uint32
}

Status is the data structure

type StatusClient added in v0.3.4

type StatusClient interface {
	Status(context.Context) (*Status, error)
}

StatusClient is the interface which includes status of service

Jump to

Keyboard shortcuts

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