challenge-sync-airbus: Refactor and prefer calling it cyberrange
This commit is contained in:
parent
98d9f2daf3
commit
cb4ceecbf5
6 changed files with 46 additions and 37 deletions
|
|
@ -23,7 +23,7 @@ type Walker struct {
|
|||
Exercices AirbusExercicesBindings
|
||||
Teams map[string]fic.ExportedTeam
|
||||
RevTeams map[string]string
|
||||
TeamBindings map[string]*AirbusTeam
|
||||
TeamBindings map[string]*fic.CyberrangeTeam
|
||||
API AirbusAPI
|
||||
Coeff float64
|
||||
}
|
||||
|
|
@ -35,7 +35,7 @@ func (w *Walker) fetchTeams() error {
|
|||
}
|
||||
|
||||
w.RevTeams = map[string]string{}
|
||||
w.TeamBindings = map[string]*AirbusTeam{}
|
||||
w.TeamBindings = map[string]*fic.CyberrangeTeam{}
|
||||
|
||||
for tid, team := range w.Teams {
|
||||
for i, t := range teams {
|
||||
|
|
@ -143,7 +143,7 @@ func (w *Walker) WalkScore(path string, d os.DirEntry, err error) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (w *Walker) TreatScoreGrid(path string, airbusTeam *AirbusTeam) error {
|
||||
func (w *Walker) TreatScoreGrid(path string, airbusTeam *fic.CyberrangeTeam) error {
|
||||
// Read score grid
|
||||
fdscores, err := os.Open(path)
|
||||
if err != nil {
|
||||
|
|
|
|||
Reference in a new issue