golem

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kill

func Kill(webstrateID string) error

Kill will kill the container running the given golem

func List

func List() ([]docker.APIContainers, error)

List the running golems

func NewGolemReverseProxy added in v1.2.0

func NewGolemReverseProxy(prefix string, portLookup func(webstrate string, privatePort int64) (int64, error)) *httputil.ReverseProxy

NewGolemReverseProxy creates and returns a proxy for running golem

func PortOf added in v1.2.0

func PortOf(webstrate string, privatePort int64) (int64, error)

PortOf returns the public port mapped to the given privatePort for a golem on the given webstrate.

func Restart

func Restart(webstrateID string) (string, error)

Restart will kill, recreate and start a given golem

func Spawn

func Spawn(webstrateID string) (string, error)

Spawn will create a new container and inject a golem into it

Types

This section is empty.

Jump to

Keyboard shortcuts

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