healthsrv

package
v2.0.0-beta4+incompatible Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(port int, nsLister NamespaceLister, bLister BucketLister, sshServerCircuit *sshd.Circuit) error

Start starts the healthcheck server on :$port and blocks. It only returns if the server fails, with the indicative error.

Types

type BucketLister

type BucketLister interface {
	// List returns a list of the objects that are direct descendants of the given path.
	List(ctx context.Context, opath string) ([]string, error)
}

BucketLister is a *(github.com/docker/distribution/registry/storage/driver).StorageDriver compatible interface that provides just the List cross-section of functionality. It can also be implemented for unit tests.

type NamespaceLister

type NamespaceLister interface {
	// List lists all namespaces that are selected by the given label and field selectors.
	List(labels.Selector, fields.Selector) (*api.NamespaceList, error)
}

NamespaceLister is an (*k8s.io/kubernetes/pkg/client/unversioned).Client compatible interface that provides just the ListBuckets cross-section of functionality. It can also be implemented for unit tests.

Jump to

Keyboard shortcuts

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