Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateExploitRounds ¶
Types ¶
type Scenario ¶
type Scenario struct { ID string `bson:"id,omitempty"` Time string `yaml:"time" bson:"time,omitempty"` Period string `yaml:"period" bson:"period,omitempty"` GlobalActions []string `yaml:"global_actions" bson:"global_actions,omitempty"` Actions []string `yaml:"actions" bson:"actions,omitempty"` Services map[string]Service `yaml:"services" bson:"services,omitempty"` NewsChatID int `yaml:"news_chat_id" bson:"news_chat_id,omitempty"` News []News `yaml:"news" bson:"news,omitempty"` }
func LoadScenario ¶
type Service ¶
type Service struct { Name string `yaml:"name" bson:"name,omitempty"` Description string `yaml:"description" bson:"description,omitempty"` Reputation int `yaml:"reputation" bson:"reputation,omitempty"` Domain string `yaml:"domain" bson:"domain,omitempty"` Script string `yaml:"script" bson:"script,omitempty"` Checkers []string `yaml:"checkers" bson:"checkers,omitempty"` Exploits map[string]Exploit `yaml:"exploits" bson:"exploits,omitempty"` }
Click to show internal directories.
Click to hide internal directories.