From 07294af77f4b088f67efafbeee79e7ddd0eeac84 Mon Sep 17 00:00:00 2001 From: maride Date: Tue, 21 Aug 2018 18:49:59 +0200 Subject: Feature: Start and stop challenge containers --- src/challenge.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/challenge.go') diff --git a/src/challenge.go b/src/challenge.go index 38cffee..991e4e5 100644 --- a/src/challenge.go +++ b/src/challenge.go @@ -10,11 +10,14 @@ type Challenge struct { Category string } +// TODO: The name "Stripped" is a bit inaccurate now. Rename. type StrippedChallenge struct { Name string `json:"name"` Description string `json:"description"` Category string `json:"category"` FoundFlag bool `json:"foundFlag"` + ContainsLaunchable bool `json:"ContainsLaunchable"` + IPAddress string `json:"IPAddress"` } func stripChallenge(c Challenge) (StrippedChallenge) { @@ -23,5 +26,7 @@ func stripChallenge(c Challenge) (StrippedChallenge) { Description: c.Description, Category: c.Category, FoundFlag: c.FoundFlag, + ContainsLaunchable: c.Container != "", + IPAddress: getAddressForChallengeContainer(c.Container), } } -- cgit 1.4.1