Documentation ¶
Overview ¶
Package internal contains internal functionality
Index ¶
- func MetadataFromGraphQL(g GraphQLMetadata, ID graphql.String) types.ResourceMetadata
- func StringPointerFromGraphQL(arg *graphql.String) *string
- func StringSliceFromGraphQL(arg []graphql.String) []string
- type CreateServiceAccountInput
- type GraphQLMetadata
- type GraphQLProblem
- type GraphQLProblemType
- type JWTClaimInput
- type ServiceAccountOIDCTrustPolicyInput
- type UpdateServiceAccountInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataFromGraphQL ¶
func MetadataFromGraphQL(g GraphQLMetadata, ID graphql.String) types.ResourceMetadata
MetadataFromGraphQL converts GraphQL Metadata to an external metadata.
func StringPointerFromGraphQL ¶ added in v0.15.0
func StringPointerFromGraphQL(arg *graphql.String) *string
StringPointerFromGraphQL converts a graphql.String pointer to a string pointer.
func StringSliceFromGraphQL ¶ added in v0.15.0
func StringSliceFromGraphQL(arg []graphql.String) []string
StringSliceFromGraphQL converts a slice of graphql.String to a slice of string.
Types ¶
type CreateServiceAccountInput ¶ added in v0.6.0
type CreateServiceAccountInput struct { Name string `json:"name"` Description string `json:"description"` GroupPath string `json:"groupPath"` OIDCTrustPolicies []ServiceAccountOIDCTrustPolicyInput `json:"oidcTrustPolicies"` }
CreateServiceAccountInput is similar to types.CreateServiceAccountInput
type GraphQLMetadata ¶
type GraphQLMetadata struct { CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` Version graphql.String `json:"version"` }
GraphQLMetadata represents the insides of the query structure, everything in the metadata object, and with graphql types.
In the GraphQL structs, the ID field is in the parent rather than in the metadata.
func MetadataToGraphQL ¶
func MetadataToGraphQL(m types.ResourceMetadata) (GraphQLMetadata, graphql.String)
MetadataToGraphQL converts an external metadata to a GraphQL Metadata.
type GraphQLProblem ¶
type GraphQLProblem struct { Message graphql.String Type GraphQLProblemType Field []graphql.String }
GraphQLProblem is used to represent a user facing issue
type GraphQLProblemType ¶
type GraphQLProblemType graphql.String
GraphQLProblemType represents the type of problem
const ( Conflict GraphQLProblemType = "CONFLICT" BadRequest GraphQLProblemType = "BAD_REQUEST" NotFound GraphQLProblemType = "NOT_FOUND" Forbidden GraphQLProblemType = "FORBIDDEN" )
Problem constants
type JWTClaimInput ¶ added in v0.6.0
JWTClaimInput is the input for JWT claims when created at the same time as the OIDC trust policy
type ServiceAccountOIDCTrustPolicyInput ¶ added in v0.6.0
type ServiceAccountOIDCTrustPolicyInput struct { Issuer string `json:"issuer"` BoundClaims []JWTClaimInput `json:"boundClaims"` }
ServiceAccountOIDCTrustPolicyInput is similar to types.ServiceAccountOIDCTrustPolicyInput
type UpdateServiceAccountInput ¶ added in v0.6.0
type UpdateServiceAccountInput struct { ID string `json:"id"` Description string `json:"description"` OIDCTrustPolicies []ServiceAccountOIDCTrustPolicyInput `json:"oidcTrustPolicies"` }
UpdateServiceAccountInput is the input for updating a service account.
Directories ¶
Path | Synopsis |
---|---|
Package errors contains the mappings and functions that standardize errors returned from the API to SDK's clients.
|
Package errors contains the mappings and functions that standardize errors returned from the API to SDK's clients. |
Package paginators handles pagination logic
|
Package paginators handles pagination logic |