routes

package
v0.0.0-...-c0e249c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(
	router *http.ServeMux,
	bundle *bundle.Bundle,
	scoringService *scoring.ScoringService,
)

Types

type AdminListInstancesResponse

type AdminListInstancesResponse struct {
	Instances []AdminListJuiceShopInstance `json:"instances"`
}

type AdminListJuiceShopInstance

type AdminListJuiceShopInstance struct {
	Team        string `json:"team"`
	Ready       bool   `json:"ready"`
	CreatedAt   int64  `json:"createdAt"`
	LastConnect int64  `json:"lastConnect"`
}

type AdminTeamStatus

type AdminTeamStatus struct {
	Name string `json:"name"`
}

type IndividualScore

type IndividualScore struct {
	Name             string            `json:"name"`
	Score            int               `json:"score"`
	SolvedChallenges []SolvedChallenge `json:"solvedChallenges"`
	Position         int               `json:"position"`
	TotalTeams       int               `json:"totalTeams"`
}

type ResetPasscodeResponse

type ResetPasscodeResponse struct {
	Message  string `json:"message"`
	Passcode string `json:"passcode"`
}

type ScoreBoardResponse

type ScoreBoardResponse struct {
	TotalTeams int                  `json:"totalTeams"`
	TopTeams   []*scoring.TeamScore `json:"teams"`
}

type SolvedChallenge

type SolvedChallenge struct {
	Key        string `json:"key"`
	Name       string `json:"name"`
	Difficulty int    `json:"difficulty"`
	SolvedAt   string `json:"solvedAt"`
}

type TeamStatus

type TeamStatus struct {
	Name             string `json:"name"`
	Score            int    `json:"score"`
	SolvedChallenges int    `json:"solvedChallenges"`
	Position         int    `json:"position"`
	TotalTeams       int    `json:"totalTeams"`
	Readiness        bool   `json:"readiness"`
}

type UpdateProgressDeploymentDiff

type UpdateProgressDeploymentDiff struct {
	Metadata UpdateProgressDeploymentMetadata `json:"metadata"`
}

type UpdateProgressDeploymentDiffAnnotations

type UpdateProgressDeploymentDiffAnnotations struct {
	LastRequest         string `json:"multi-juicer.owasp-juice.shop/lastRequest"`
	LastRequestReadable string `json:"multi-juicer.owasp-juice.shop/lastRequestReadable"`
}

UpdateProgressDeploymentDiffAnnotations the app specific annotations relevant to the `progress-watchdog`

type UpdateProgressDeploymentMetadata

type UpdateProgressDeploymentMetadata struct {
	Annotations UpdateProgressDeploymentDiffAnnotations `json:"annotations"`
}

UpdateProgressDeploymentMetadata a shim of the k8s metadata object containing only annotations

Jump to

Keyboard shortcuts

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