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.
Click to show internal directories.
Click to hide internal directories.