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 GetClient ¶
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.