containers

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TokenHeaderName = "X-Golangci-Token"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildCommandRequest

type BuildCommandRequest struct {
	ContainerID
	build.Request
}

type BuildCommandResponse

type BuildCommandResponse struct {
	BuildResponse build.Response
	ErrorResponse
}

type ContainerID

type ContainerID struct {
	ID         string
	Port       int
	BuildToken string
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:",omitempty"`
}

type Orchestrator

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

func NewOrchestrator

func NewOrchestrator(log logutil.Log, token string) *Orchestrator

func (Orchestrator) Run

func (o Orchestrator) Run(port int) error

type SetupContainerRequest

type SetupContainerRequest struct {
	TimeoutMs uint
}

type SetupContainerResponse

type SetupContainerResponse struct {
	ContainerID
	ErrorResponse
}

type ShutdownContainerRequest

type ShutdownContainerRequest struct {
	TimeoutMs uint
	ContainerID
}

type ShutdownContainerResponse

type ShutdownContainerResponse ErrorResponse

Jump to

Keyboard shortcuts

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