teams

package
v0.0.0-...-a1efb75 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(cmd *cobra.Command)

func GetGithubAuthClient

func GetGithubAuthClient(ctx context.Context, cmd *cobra.Command) (*http.Client, error)

Types

type DiskOrgData

type DiskOrgData struct {
	OrgTitle string                 `json:"OrgTitle,omitempty"`
	Teams    []TeamInfo             `json:"Teams,omitempty"`
	Releases []ReleaseInfo          `json:"Releases,omitempty"`
	SLO      map[string]sloAPI.Data `json:"slo,omitempty"`
}

type Milestones

type Milestones struct {
	Start           string `json:"start,omitempty"`
	FeatureComplete string `json:"feature_complete,omitempty"`
	CodeFreeze      string `json:"code_freeze,omitempty"`
	GA              string `json:"ga,omitempty"`
}

type OrgData

type OrgData struct {
	OrgTitle string                 `json:"orgTitle,omitempty"`
	Teams    map[string]TeamInfo    `json:"teams,omitempty"`
	Releases map[string]ReleaseInfo `json:"releases,omitempty"`
	SLO      map[string]sloAPI.Data `json:"slo,omitempty"`
	// contains filtered or unexported fields
}

func GetOrgData

func GetOrgData(cmd *cobra.Command) (*OrgData, error)

func (OrgData) CurrentVersion

func (orgData OrgData) CurrentVersion() (string, error)

CurrentVersion returns the lowest x.y version that has a x.y.0 target.

func (OrgData) GetTeamByComponent

func (orgData OrgData) GetTeamByComponent(component, subcomponent string) *TeamInfo

func (OrgData) GetTeamName

func (orgData OrgData) GetTeamName(bug *bugzilla.Bug) string

func (OrgData) GetTeamNames

func (orgData OrgData) GetTeamNames() []string

func (*OrgData) Reconcile

func (orgData *OrgData) Reconcile()

func (*OrgData) Reconciler

func (orgData *OrgData) Reconciler()

type ReleaseInfo

type ReleaseInfo struct {
	Name       string      `json:"name,omitempty"`
	Targets    []string    `json:"targets,omitempty"`
	Milestones *Milestones `json:"milestones,omitempty"`
}

type TeamInfo

type TeamInfo struct {
	Name          string                 `json:"name,omitempty"`
	SlackChan     string                 `json:"slack_chan,omitempty"`
	Lead          string                 `json:"lead,omitempty"`
	Managers      []string               `json:"managers,omitempty"`
	Group         string                 `json:"group,omitempty"`
	Components    []string               `json:"components,omitempty"`
	Subcomponents map[string][]string    `json:"subcomponents,omitempty"`
	MemberCount   int                    `json:"memberCount,omitempty"`
	SLO           map[string]sloAPI.Data `json:"slo,omitempty"`
}

Jump to

Keyboard shortcuts

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