healthsrv

package
v2.0.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 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 {
	// ListBuckets lists all the buckets in the object storage system.
	ListBuckets() ([]s3.BucketInfo, error)
}

BucketLister is a *(github.com/minio/minio-go).Client compatible interface that provides just the ListBuckets 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