Versions in this module Expand all Collapse all v1 v1.0.0 Mar 2, 2021 Changes in this version + const CHALLENGE_HOST + const MAX_RETRIES + var ChallengeActionHandlers = map[string]func(string) error + var Q *wpool.Queue + func ChallengesHealthProber(waitTime int) + func CommitChallengeContainer(challName string) error + func CopyDir(src string, dst string) error + func CopyFile(src, dst string) error + func CopyToStaticContent(challengeName, staticContentDir string) error + func DeployChallenge(challengeName string) error + func DeployChallengePipeline(challengeDir string) error + func DeployStaticChallenge(challConf *cfg.BeastChallengeConfig, challenge *database.Challenge, ...) + func DeployStaticContentContainer() error + func GenerateChallengeDockerfileCtx(config *cfg.BeastChallengeConfig) (string, error) + func GenerateDockerfile(config *cfg.BeastChallengeConfig) (string, error) + func GetAvailableChallenges() ([]string, error) + func GetCommandAndImageForWebChall(webRoot, port string, challengeInfo []string) (string, string) + func GetDeployWork(challengeName string) (*wpool.Task, error) + func GetStaticContentDir(configFile, contextDir string) (string, error) + func HandleAll(action string, user string) []string + func HandleTagRelatedChallenges(action string, tag string, user string) []string + func LogTransaction(identifier string, action string, authorization string) error + func PurgeChallenge(challengeName string) error + func RedeployChallenge(challengeName string) error + func ResetBeastRemote() error + func RunBeastBootsetps() error + func StartDeployPipeline(challengeDir string, skipStage bool, skipCommit bool) + func StartUndeployChallenge(challengeName string, purge bool) error + func SyncBeastRemote() error + func UnTarChallengeFolder(tarContextPath, dstPath string) (string, error) + func UndeployChallenge(challengeName string) error + func UndeployStaticContentContainer() + func UpdateChallenges() + func UpdateOrCreateChallengeDbEntry(challEntry *database.Challenge, config cfg.BeastChallengeConfig) error + func ValidateChallengeConfig(challengeDir string) error + func ValidateChallengeDir(challengeDir string) error + type BeastBareDockerfile struct + AptDeps string + DockerBaseImage string + Entrypoint string + Executables []string + MountVolume string + Ports string + RunCmd string + RunScript string + SetupScripts []string + XinetdService bool + type BeastXinetdConf struct + Port string + ServiceName string + ServicePath string + type ChallengePreview struct + Category string + Desc string + Hints string + Name string + Points uint + Ports []database.Port + type TaskInfo struct + Action string + ChallDir string + Purge bool + SkipCommit bool + SkipStage bool + type Worker struct + func (worker *Worker) PerformTask(w wpool.Task) *wpool.Task