challenge

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EventChallengeReady       challengeEvent = "challenge-ready"
	EventChallengeCompletable challengeEvent = "challenge-completable"
	EventChallengeCompleted   challengeEvent = "challenge-completed"
	EventChallengeFailed      challengeEvent = "challenge-failed"
	EventSSHConnEnded         challengeEvent = "ssh-conn-ended"
	EventWSConnFailed         challengeEvent = "ws-conn-failed"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(cli labcli.CLI) *cobra.Command

Types

type PlayConn added in v0.1.2

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

func (*PlayConn) Close added in v0.1.2

func (p *PlayConn) Close()

func (*PlayConn) Start added in v0.1.2

func (p *PlayConn) Start() error

func (*PlayConn) WaitChallengeDone added in v0.1.2

func (p *PlayConn) WaitChallengeDone(chal *api.Challenge) error

func (*PlayConn) WaitChallengeReady added in v0.1.2

func (p *PlayConn) WaitChallengeReady(chal *api.Challenge) error

type PlayConnMessage

type PlayConnMessage struct {
	Kind    string       `json:"kind"`
	Machine string       `json:"machine,omitempty"`
	Task    api.PlayTask `json:"task,omitempty"`
}

Jump to

Keyboard shortcuts

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