Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserPrincipalNotFound = errors.New("could not find user principal in request context")
)
Functions ¶
func NewClient ¶
func NewClient(config Configuration, hc *http.Client) graphql.Client
NewClient returns a new GraphQL client. The provided HTTP client should supply its own bearer token. You can use this client to make requests on behalf of tenants in the following way: - The HTTP client's bearer token should have an "admin" scope (OR, in development or staging, you can set the Hasura admin secret). - This GraphQL client will assume the "armory:hasura:admin" role (only possible because of the "admin" scope). - When making requests with the GraphQL client, pass a context with an iam.ArmoryCloudPrincipal.
Types ¶
type Configuration ¶
Click to show internal directories.
Click to hide internal directories.