Versions in this module Expand all Collapse all v2 v2.0.2 Jun 30, 2025 Changes in this version + var ErrNotAuthenticated = errors.New("not authenticated") + func AddTeamMember(ctx context.Context, teamSlug, email string, role gql.TeamMemberRole) error + func GetAllTeamSlugs(ctx context.Context) ([]string, error) + func GetAllTeams(ctx context.Context) (*gql.TeamsResponse, error) + func GetStatus(ctx context.Context, _ *flag.Status) ([]gql.TeamStatusMeUserTeamsTeamMemberConnectionNodesTeamMember, error) + func GetTeamMembers(ctx context.Context, teamSlug string) ([]gql.TeamMembersTeamMembersTeamMemberConnectionNodesTeamMember, error) + func GetTeamWorkloads(ctx context.Context, teamSlug string) ([]gql.GetTeamWorkloadsTeamWorkloadsWorkloadConnectionNodesWorkload, error) + func GetUserEmails(ctx context.Context) ([]string, error) + func GetUserTeams(ctx context.Context) ([]gql.UserTeamsMeUserTeamsTeamMemberConnectionNodesTeamMember, error) + func GetUsers(ctx context.Context) (*gql.UsersResponse, error) + func GraphqlClient(ctx context.Context) (graphql.Client, error) + func IsConsoleAdmin(ctx context.Context) bool + func Login(ctx context.Context, out cli.Output) error + func Logout(ctx context.Context, out cli.Output) error + func PullSchema(ctx context.Context, _ *flag.Schema) (string, error) + func RemoveTeamMember(ctx context.Context, teamSlug, email string) error + func StartProxy(ctx context.Context, out cli.Output, flags *flag.Proxy) error + type AuthenticatedUser struct + ConsoleHost string + func GetAuthenticatedUser(ctx context.Context) (*AuthenticatedUser, error) + func (a *AuthenticatedUser) HTTPClient(ctx context.Context) *http.Client + func (a *AuthenticatedUser) RoundTripper(base http.RoundTripper) http.RoundTripper + func (a *AuthenticatedUser) SetAuthorizationHeader(headers http.Header) error