challenge

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

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