package
Version:
v0.0.0-...-82b2a56
Opens a new window with list of versions in this module.
Published: Jan 8, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ParseTeamMap takes a path to a team mapping JSON file, reads the file, and returns a Go map of Accounts to team names
type Account struct {
ID string `json:"id"`
Environment string `json:"environment"`
RoleARN string `json:"roleArn"`
}
Account is a struct describing a single account for a team
type Team struct {
Name string `json:"name"`
Accounts []Account `json:"accounts"`
}
Team is a struct describing a single team and its accounts as we
expect in the JSON file describing team mappings
type Teams struct {
Teams []Team `json:"teams"`
}
Teams is a struct describing the format we expect in the JSON file
describing the team mappings
Source Files
¶
Click to show internal directories.
Click to hide internal directories.