exercise

package
v0.0.0-...-caea6a0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DuplicateTagErr = errors.New("Tag already exists")
	MissingTagsErr  = errors.New("No tags, need atleast one tag")
	UnknownTagErr   = errors.New("Unknown tag")
)

Functions

func NewExercise

func NewExercise(conf store.Exercise, dhost DockerHost, vlib vbox.Library, net docker.Network, dnsAddr string) *exercise

Types

type DockerHost

type DockerHost interface {
	CreateContainer(ctx context.Context, conf docker.ContainerConfig) (docker.Container, error)
}

type Environment

type Environment interface {
	Create(context.Context) error
	Add(context.Context, ...store.Exercise) error
	ResetByTag(context.Context, string) error
	NetworkInterface() string
	Challenges() []store.Challenge
	InstanceInfo() []virtual.InstanceInfo
	Start(context.Context) error
	Stop() error
	io.Closer
}

func NewEnvironment

func NewEnvironment(lib vbox.Library) Environment

Jump to

Keyboard shortcuts

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