teams

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API describes teams API

func NewTeamsAPI

func NewTeamsAPI(url string, log *logrus.Entry) *API

NewTeamsAPI creates an object to query the team API.

func (*API) TeamInfo

func (t *API) TeamInfo(teamID, token string) (tm *Team, statusCode int, err error)

TeamInfo returns information about a given team using its ID and a token to authenticate to the API service.

type Interface

type Interface interface {
	TeamInfo(teamID, token string) (tm *Team, statusCode int, err error)
}

Interface to the TeamsAPIClient

type Team

type Team struct {
	Dn           string   `json:"dn"`
	ID           string   `json:"id"`
	TeamName     string   `json:"id_name"`
	TeamID       string   `json:"team_id"`
	Type         string   `json:"type"`
	FullName     string   `json:"name"`
	Aliases      []string `json:"alias"`
	Mails        []string `json:"mail"`
	Members      []string `json:"member"`
	CostCenter   string   `json:"cost_center"`
	DeliveryLead string   `json:"delivery_lead"`
	ParentTeamID string   `json:"parent_team_id"`

	InfrastructureAccounts []infrastructureAccount `json:"infrastructure-accounts"`
}

Team defines informaiton for a single team, including the list of members and infrastructure accounts.

Jump to

Keyboard shortcuts

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