graphql

package
v0.29.15 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 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 ChannelCollectorsResponse added in v0.23.0

type ChannelCollectorsResponse struct {
	Data   ChannelCollectorsResult `json:"data,omitempty"`
	Errors []Error                 `json:"errors,omitempty"`
}

type ChannelCollectorsResult added in v0.23.0

type ChannelCollectorsResult struct {
	SupportBundle `json:"channelCollectors,omitempty"`
}

type Client

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

func NewClient

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

func (*Client) GetChannelSpec added in v0.23.0

func (c *Client) GetChannelSpec(channelID string) ([]byte, error)

GetChannelSpec will query the endpoint set in the client with a Replicated ChannelID and will return a fully rendered spec, containing collect and lifecycle keys

func (*Client) GetCustomerSpec

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

GetCustomerSpec is deprecated

func (*Client) GetSupportBundleChannelUploadURI added in v0.23.0

func (c *Client) GetSupportBundleChannelUploadURI(channelID string, size int64, notes string) (string, *url.URL, error)

GetSupportBundleChannelUploadURI queries the Endpoint in Client to retrieve a URI that can be used to upload a support bundle for a specific channel

func (*Client) GetSupportBundleCustomerUploadURI added in v0.23.0

func (c *Client) GetSupportBundleCustomerUploadURI(customerID string, size int64, notes string) (string, *url.URL, error)

GetSupportBundleCustomerUploadURI queries the Endpoint in Client to retrieve a URI that can be used to upload a support bundle for a specific customer This function is deprecated

func (*Client) GetSupportBundleWatchUploadURI added in v0.27.0

func (c *Client) GetSupportBundleWatchUploadURI(watchID string, size int64) (string, *url.URL, error)

GetSupportBundleWatchUploadURI queries the Endpoint in Client to retrieve a URI that can be used to upload a support bundle for a specific watch

func (*Client) GetWatchSpec added in v0.27.0

func (c *Client) GetWatchSpec(watchID string) ([]byte, error)

GetWatchSpec will query the endpoint set in the client with a Replicated WatchID and will return a fully rendered spec, containing collect and lifecycle keys

func (*Client) MarkSupportBundleUploaded added in v0.23.0

func (c *Client) MarkSupportBundleUploaded(bundleID string) error

MarkSupportBundleUploaded mutates the Endpoint in Client to mark a support bundle as uploaded

type Error

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

type Errors

type Errors struct {
	Errors []Error
}

func (Errors) Error

func (e Errors) 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 SupportBundleChannelRequestResult added in v0.23.0

type SupportBundleChannelRequestResult struct {
	UploadSupportBundle `json:"uploadChannelSupportBundle,omitempty"`
}

type SupportBundleChannelUploadResponse added in v0.23.0

type SupportBundleChannelUploadResponse struct {
	Data   SupportBundleChannelRequestResult `json:"data,omitempty"`
	Errors []Error                           `json:"errors,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 SupportBundleWatchRequestResult added in v0.27.0

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

type SupportBundleWatchUploadResponse added in v0.27.0

type SupportBundleWatchUploadResponse struct {
	Data   SupportBundleWatchRequestResult `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"`
}

type WatchCollectorsResponse added in v0.27.0

type WatchCollectorsResponse struct {
	Data   WatchCollectorsResult `json:"data,omitempty"`
	Errors []Error               `json:"errors,omitempty"`
}

type WatchCollectorsResult added in v0.27.0

type WatchCollectorsResult struct {
	SupportBundle `json:"watchCollectors,omitempty"`
}

Jump to

Keyboard shortcuts

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