teams

package
v0.0.0-...-9d94c35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTeamMap

func ParseTeamMap(path string) (accountsToTeams map[Account]string, err error)

ParseTeamMap takes a path to a team mapping JSON file, reads the file, and returns a Go map of Accounts to team names

Types

type Account

type Account struct {
	ID          string `json:"id"`
	Environment string `json:"environment"`
}

Account is a struct describing a single account for a team

type 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

type Teams struct {
	Teams []Team `json:"teams"`
}

Teams is a struct describing the format we expect in the JSON file describing the team mappings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL