Documentation
¶
Index ¶
Constants ¶
View Source
const APIOrigin = "https://g.replicated.com/graphql"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client communicates with the Replicated Vendor GraphQL API.
func (*Client) ExecuteRequest ¶
type Error ¶
type Error struct {
Locations []map[string]interface{} `json:"locations"`
Message string `json:"message"`
Code string `json:"code"`
}
Error represents an error returned by the graphql server
type Request ¶
type Request struct {
Query string `json:"query,omitempty"`
Variables map[string]interface{} `json:"variables"`
OperationName string `json:"operationName"`
}
Request is a json-serializable request to the graphql server
type ResponseErrorOnly ¶
type ResponseErrorOnly struct {
Errors []Error `json:"errors,omitempty"`
}
func (ResponseErrorOnly) GraphQLError ¶
func (r ResponseErrorOnly) GraphQLError() []Error
Click to show internal directories.
Click to hide internal directories.