labs

package
v0.0.0-...-c514986 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Labs are a collection of challenges that are connected to each other over an isolated network. The frontend allows users to interact with the services deployed to the network. A lab contains a single frontend. This is due to the nature of this being my bachelors project and this source code being a PoC.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorLabNameMissing     = fmt.Errorf("lab name is missing")
	ErrorLabNoChallenges    = fmt.Errorf("lab has no challenges")
	ErrorChallengeNameEmpty = fmt.Errorf("challenge name is empty")
	ErrorChallengeIDEmpty   = fmt.Errorf("challenge id is empty")
	ErrorChallengeNoDNS     = fmt.Errorf("challenge has no dns servers")
	ErrorLabDoesntExist     = fmt.Errorf("lab does not exist")
)

Functions

func All

func All() []*lab

All returns all the labs that have been provisioned

func AllStarted

func AllStarted() []*lab

func GetCapacity

func GetCapacity() (int, error)

func HasCapacity

func HasCapacity(path string) (bool, error)

func Provision

func Provision(path string) (lab, error)

func RemoveAll

func RemoveAll() error

func WithId

func WithId(id string) (*lab, error)

func WithName

func WithName(name string) (*lab, error)

WithName returns a lab with a given name. If the lab does not exist, an error is returned

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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