package main // Challenge defines a challenge as in the original companion.json format type Challenge struct { UUID string `json:"uuid"` Name string `json:"name"` Description string `json:"description"` Flag string `json:"flag"` Container string `json:"container"` Category string `json:"category"` Points int `json:"points"` Static bool `json:"static"` } // StrippedChallenge contains a stripped version of the challenge (no flag, but // its hash!) type StrippedChallenge struct { Name string `json:"name"` Description string `json:"description"` FlagHash string `json:"flaghash"` Container string `json:"container"` Category string `json:"category"` Points int `json:"points"` Static bool `json:"static"` } // Challenges defines a list of challenges. type Challenges struct { Challenge []Challenge `json:"challenges"` }