server

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(port, endpoint string)

StartServer starts an EntryServer listening on port and connects to DockerSwarm with endpoint.

Types

type AppInfo

type AppInfo struct {
	PodInfos []PodInfo `json:"PodInfos"`
}

type ConsoleAuthConf

type ConsoleAuthConf struct {
	Type string `json:"type"`
	URL  string `json:"url"`
}

type ConsoleAuthResponse

type ConsoleAuthResponse struct {
	Message string      `json:"msg"`
	URL     string      `json:"url"`
	Role    ConsoleRole `json:"role"`
}

type ConsoleRole

type ConsoleRole struct {
	Role string `json:"role"`
}

type Container

type Container struct {
	ContainerID string `json:"ContainerId"`
}

type CoreInfo

type CoreInfo map[string]AppInfo

type EntryServer

type EntryServer struct {
	// contains filtered or unexported fields
}

type PodInfo

type PodInfo struct {
	InstanceNo int         `json:"InstanceNo"`
	Containers []Container `json:"ContainerInfos"`
}

Jump to

Keyboard shortcuts

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