apiserver

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DetailsTopic pubsub.Topic = "apiserver.details"

DetailsTopic is the topic name for the published message when the details of the api servers change. This message is normally published by the peergrouper when the set of API servers changes.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	ID        string   `yaml:"id"`
	Addresses []string `yaml:"addresses"`
}

APIServer contains the machine id and addresses of a single API server machine.

type Details

type Details struct {
	// Servers is a map of machine ID to the details for that server.
	Servers   map[string]APIServer `yaml:"servers"`
	LocalOnly bool                 `yaml:"local-only"`
}

Details contains the ids and addresses of all the current API server machines.

Jump to

Keyboard shortcuts

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