graphql

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(endpoint string, client *http.Client) *Client

func (*Client) GetCustomerSpec

func (c *Client) GetCustomerSpec(id string) ([]byte, error)

func (*Client) GetSupportBundleUploadURI

func (c *Client) GetSupportBundleUploadURI(id string, size int64) (string, *url.URL, error)

func (*Client) UpdateSupportBundleStatus

func (c *Client) UpdateSupportBundleStatus(customerID string, bundleID, status string) error

type Error

type Error struct {
	Locations []map[string]interface{} `json:"locations"`
	Message   string                   `json:"message"`
	Code      string                   `json:"code"`
}

type GraphQLErrors added in v0.12.1

type GraphQLErrors struct {
	Errors []Error
}

func (GraphQLErrors) Error added in v0.12.1

func (e GraphQLErrors) Error() string

type Request

type Request struct {
	Query         string                 `json:"query"`
	Variables     map[string]interface{} `json:"variables"`
	OperationName string                 `json:"operationName"`
}

type SupportBundle

type SupportBundle struct {
	Spec     string `json:"spec,omitempty"`
	Hydrated string `json:"hydrated,omitempty"`
}

type SupportBundleRequestResult

type SupportBundleRequestResult struct {
	UploadSupportBundle `json:"uploadSupportBundle,omitempty"`
}

type SupportBundleResponse

type SupportBundleResponse struct {
	Data   *SupportBundleResult `json:"data,omitempty"`
	Errors []Error              `json:"errors,omitempty"`
}

type SupportBundleResult

type SupportBundleResult struct {
	SupportBundle `json:"supportBundleSpec"`
}

type SupportBundleSpec

type SupportBundleSpec struct {
	CustomerID string
}

type SupportBundleUploadResponse

type SupportBundleUploadResponse struct {
	Data   *SupportBundleRequestResult `json:"data,omitempty"`
	Errors []Error                     `json:"errors,omitempty"`
}

type UploadSupportBundle

type UploadSupportBundle struct {
	UploadURI             string `json:"uploadUri,omitempty"`
	UploadedSupportBundle `json:"supportBundle,omitempty"`
}

type UploadedSupportBundle

type UploadedSupportBundle struct {
	ID string `json:"id,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL