discovery

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package discovery contains utlities for Etcd discovery.

Index

Constants

View Source
const ClusterDiscoveryURL = "http://%s:%s/v2/keys/deis/discovery/%s"
View Source
const ClusterSizeKey = "deis/discovery/%s/_config/size"
View Source
const ClusterStatusKey = "deis/status/%s/%s"

Variables

View Source
var TokenFile = "/var/run/secrets/deis/etcd/discovery/token"

Functions

func GetToken

func GetToken(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

GetToken is a command to get a token.

This is a convenience for calling Token in a route.

func Token

func Token() ([]byte, error)

Token reads the discovery token from the TokenFile and returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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