marketapi

package
v0.30.10 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelCollectorsResponse

type ChannelCollectorsResponse struct {
	ID        string `json:"id"`
	Spec      string `json:"spec,omitempty"`
	Lifecycle string `json:"lifecycle,omitempty"`
}

type Client

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

func NewClient

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

func (*Client) GetChannelSpec

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) GetSupportBundleChannelUploadURI

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) MarkChannelSupportBundleUploaded

func (c *Client) MarkChannelSupportBundleUploaded(bundleID string, channelID string) error

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

type UploadURLResponse

type UploadURLResponse struct {
	BundleID  string `json:"bundle_id"`
	UploadURL string `json:"upload_url"`
}

Jump to

Keyboard shortcuts

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