Documentation ¶
Overview ¶
Package tk provides a client for the team catalog API. - https://teamkatalog-api.intern.nav.no/swagger-ui/index.html
Index ¶
- Constants
- type Client
- func (c *Client) GetProductAreas(ctx context.Context) (*ProductAreas, error)
- func (c *Client) GetTeam(ctx context.Context, teamID uuid.UUID) (*Team, error)
- func (c *Client) GetTeamCatalogURL(teamID uuid.UUID) string
- func (c *Client) GetTeams(ctx context.Context) (*Teams, error)
- func (c *Client) GetTeamsInProductArea(ctx context.Context, productAreaID uuid.UUID) (*Teams, error)
- type Fetcher
- type Links
- type ProductArea
- type ProductAreas
- type Static
- func (s *Static) GetProductAreas(_ context.Context) (*ProductAreas, error)
- func (s *Static) GetTeam(_ context.Context, teamID uuid.UUID) (*Team, error)
- func (s *Static) GetTeamCatalogURL(teamID uuid.UUID) string
- func (s *Static) GetTeams(_ context.Context) (*Teams, error)
- func (s *Static) GetTeamsInProductArea(_ context.Context, productAreaID uuid.UUID) (*Teams, error)
- type Team
- type Teams
Constants ¶
View Source
const ( ConsumerIDHeader = "Nav-Consumer-Id" ConsumerID = "nada-backend" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetProductAreas ¶
func (c *Client) GetProductAreas(ctx context.Context) (*ProductAreas, error)
type Fetcher ¶
type Fetcher interface { GetProductAreas(ctx context.Context) (*ProductAreas, error) GetTeams(ctx context.Context) (*Teams, error) GetTeam(ctx context.Context, teamID uuid.UUID) (*Team, error) GetTeamsInProductArea(ctx context.Context, productAreaID uuid.UUID) (*Teams, error) GetTeamCatalogURL(teamID uuid.UUID) string }
type ProductArea ¶
type ProductAreas ¶
type ProductAreas struct {
Content []ProductArea `json:"content"`
}
type Static ¶
type Static struct { ProductAreas map[uuid.UUID]*ProductArea Teams map[uuid.UUID]*Team // contains filtered or unexported fields }
func (*Static) GetProductAreas ¶
func (s *Static) GetProductAreas(_ context.Context) (*ProductAreas, error)
Click to show internal directories.
Click to hide internal directories.