MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / IsTeamInternal

Function IsTeamInternal

cli/internal/auth/team.go:74–81  ·  view source on GitHub ↗

IsTeamInternal checks if the team has the internal flag set We store this in the configuration on team switch.

(ctx context.Context, team string)

Source from the content-addressed store, hash-verified

72// IsTeamInternal checks if the team has the internal flag set
73// We store this in the configuration on team switch.
74func IsTeamInternal(ctx context.Context, team string) (bool, error) {
75 internalStr, err := config.GetValue("team_internal")
76 if err != nil {
77 return false, fmt.Errorf("could not get team internal flag: %w", err)
78 }
79
80 return internalStr == "true", nil
81}

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected