api

package
v0.0.2-0...-32b1a96 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PrefixPath = "/scheduler"

	InstancesPath = "/instances"
	InstancePath  = "/instances/%s"
)

Paths

View Source
const (
	Port = 50001
)

Variables

View Source
var (
	SchedulerServiceName = "scheduler"
	DefaultHostPort      = SchedulerServiceName + ":" + strconv.Itoa(Port)
)

Functions

func GetInstancePath

func GetInstancePath(instanceId string) string

func GetInstancesPath

func GetInstancesPath() string

Types

type ContainerInstanceDTO

type ContainerInstanceDTO struct {
	ServiceName string `json:"service_name"`
	ImageName   string `json:"image_name"`
	Ports       nat.PortSet
	Static      bool
	EnvVars     []string
}

type InstanceDTO

type InstanceDTO struct {
	Static          bool
	PortTranslation nat.PortMap `json:"port_translation"`
	Local           bool
}

Jump to

Keyboard shortcuts

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