user

package
v0.0.0-...-10b4495 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerBaseEndpoint = baseEndpoint + "/container"
View Source
const ExitEndpoint = baseEndpoint + "/exit"

Variables

This section is empty.

Functions

func Init

func Init(router *mux.Router, userNode User)

Types

type User

type User interface {
	SubmitContainers(ctx context.Context, containersConfigs []types.ContainerConfig) ([]types.ContainerStatus, error)
	ListContainers(ctx context.Context) []types.ContainerStatus
	StopContainers(ctx context.Context, containersIDs []string) error
	Stop(ctx context.Context)
}

Jump to

Keyboard shortcuts

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