healthsrv

package
v2.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(cnf *sshd.Config, 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 GetClient

type GetClient interface {
	Get(string) (*http.Response, error)
}

GetClient is an (*net/http).Client compatible interface that provides just the Get 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(opts api.ListOptions) (*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