environment

package
v0.0.0-...-09ac470 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment interface {
	// FetchAnnounceInfo fetches the IP address of the current process
	// and the port number that will be announced to other instances.
	FetchAnnounceInfo() (announceIP string, announcePort int, err error)
}

func NewDockerEnvironment

func NewDockerEnvironment(log *logging.Logger, redisPort int, defaultAnnounceIP string, defaultAnnouncePort int, dockerURL, containerName string) (Environment, error)

NewDockerEnvironment creates a new Environment that fetches IP&address from docker.

func NewKubernetesEnvironment

func NewKubernetesEnvironment(defaultAnnounceIP string, defaultAnnouncePort int) (Environment, error)

NewKubernetesEnvironment creates a new Environment that fetches IP&address from docker.

Jump to

Keyboard shortcuts

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