Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorChallengeNotFound = fmt.Errorf("challenge not found") ErrorChallengeNameEmpty = fmt.Errorf("challenge name is empty") ErrorChallengeIdEmpty = fmt.Errorf("challenge id is empty") ErrorChallengeImageEmpty = fmt.Errorf("challenge image is empty") ErrorChallengeMemoryEmpty = fmt.Errorf("challenge memory is empty") ErrorChallengeNegativeMemory = fmt.Errorf("challenge memory is negative") )
Functions ¶
func ChallengeExists ¶
func Initialize ¶
func Initialize() error
Types ¶
type ChallengeTemplate ¶
type ChallengeTemplate struct { Name string `yaml:"name"` Id string `yaml:"id"` Image string `yaml:"image"` Memory int `yaml:"memory"` }
func GetChallenge ¶
func GetChallenge(id string) (ChallengeTemplate, error)
Click to show internal directories.
Click to hide internal directories.