shipclient

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppOptions

type AppOptions struct {
	Name string
}

type ChannelOptions

type ChannelOptions struct {
	Name        string
	Description string
}

type CreateSupportBundleSpec added in v0.12.0

type CreateSupportBundleSpec struct {
	ID     string `json:"id"`
	Name   string `json:"name,omitempty"`
	Config string `json:"spec,omitempty"`
}

type GetSupportBundleSpec added in v0.12.0

type GetSupportBundleSpec struct {
	ID        string `json:"id"`
	Name      string `json:"name,omitempty"`
	Config    string `json:"spec,omitempty"`
	CreatedAt string `json:"createdAt"`
}

type GraphQLClient

type GraphQLClient struct {
	GraphQLClient *graphql.Client
}

Client communicates with the Replicated Vendor GraphQL API.

func NewGraphQLClient

func NewGraphQLClient(origin string, apiKey string) *GraphQLClient

func (*GraphQLClient) CreateCollector added in v0.12.0

func (c *GraphQLClient) CreateCollector(appID string, name string, yaml string) (*v1.AppCollectorInfo, error)

CreateCollector creates a new collector based on given yaml and name

func (*GraphQLClient) ExecuteRequest added in v0.12.0

func (c *GraphQLClient) ExecuteRequest(requestObj graphql.Request, deserializeTarget interface{}) error

func (*GraphQLClient) GetCollector added in v0.12.0

func (c *GraphQLClient) GetCollector(appID string, id string) (*v1.AppCollectorInfo, error)

GetCollector returns a collector's properties.

func (*GraphQLClient) ListCollectors added in v0.12.0

func (c *GraphQLClient) ListCollectors(appID string, appType string) ([]types.CollectorInfo, error)

func (*GraphQLClient) PromoteCollector added in v0.12.0

func (c *GraphQLClient) PromoteCollector(appID string, specID string, channelIDs ...string) error

PromoteCollector assigns collector to a specified channel.

func (*GraphQLClient) UpdateCollector added in v0.12.0

func (c *GraphQLClient) UpdateCollector(appID string, specID, yaml string) (interface{}, error)

func (*GraphQLClient) UpdateCollectorName added in v0.12.0

func (c *GraphQLClient) UpdateCollectorName(appID string, specID, name string) (interface{}, error)

type GraphQLResponseCreateCollector added in v0.12.0

type GraphQLResponseCreateCollector struct {
	Data *SupportBundleCreateSpecData `json:"data,omitempty"`
}

type GraphQLResponseGetCollector added in v0.12.0

type GraphQLResponseGetCollector struct {
	Data *SupportBundleGetSpecData `json:"data,omitempty"`
}

type GraphQLResponseListCollectors added in v0.12.0

type GraphQLResponseListCollectors struct {
	Data *SupportBundleSpecsData `json:"data,omitempty"`
}

type GraphQLResponseUpdateCollector added in v0.12.0

type GraphQLResponseUpdateCollector struct {
	Data *SupportBundleUpdateSpecData `json:"data,omitempty"`
}

type GraphQLResponseUpdateNameCollector added in v0.12.0

type GraphQLResponseUpdateNameCollector struct {
	Data *SupportBundleUpdateSpecNameData `json:"data,omitempty"`
}

type PlatformChannel added in v0.12.0

type PlatformChannel struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type PlatformGQLResponseListCollectors added in v0.12.0

type PlatformGQLResponseListCollectors struct {
	Data *PlatformSupportBundleSpecsData `json:"data,omitempty"`
}

PLATFORM

type PlatformSupportBundleSpec added in v0.12.0

type PlatformSupportBundleSpec struct {
	ID        string          `json:"id"`
	Name      string          `json:"name"`
	CreatedAt string          `json:"createdAt"`
	Channels  []types.Channel `json:"platformChannels"`
	Config    string          `json:"spec,omitempty"`
}

type PlatformSupportBundleSpecsData added in v0.12.0

type PlatformSupportBundleSpecsData struct {
	PlatformSupportBundleSpecs []*PlatformSupportBundleSpec `json:"supportBundleSpecs"`
}

type SupportBundleCreateSpecData added in v0.12.0

type SupportBundleCreateSpecData struct {
	CreateSupportBundleSpec *CreateSupportBundleSpec `json:"createSupportBundleSpec"`
}

type SupportBundleGetSpecData added in v0.12.0

type SupportBundleGetSpecData struct {
	GetSupportBundleSpec *GetSupportBundleSpec `json:"supportBundleSpec"`
}

type SupportBundleSpec added in v0.12.0

type SupportBundleSpec struct {
	ID        string          `json:"id"`
	Name      string          `json:"name"`
	CreatedAt string          `json:"createdAt"`
	Channels  []types.Channel `json:"channels"`
	Config    string          `json:"spec,omitempty"`
}

type SupportBundleSpecsData added in v0.12.0

type SupportBundleSpecsData struct {
	SupportBundleSpecs []*SupportBundleSpec `json:"supportBundleSpecs"`
}

type SupportBundleUpdateSpecData added in v0.12.0

type SupportBundleUpdateSpecData struct {
	UpdateSupportBundleSpec *UpdateSupportBundleSpec `json:"updateSupportBundleSpec"`
}

type SupportBundleUpdateSpecNameData added in v0.12.0

type SupportBundleUpdateSpecNameData struct {
	UpdateSupportBundleSpecName *UpdateSupportBundleSpecName `json:"updateSupportBundleSpecName"`
}

type UpdateSupportBundleSpec added in v0.12.0

type UpdateSupportBundleSpec struct {
	ID     string `json:"id"`
	Config string `json:"spec,omitempty"`
}

type UpdateSupportBundleSpecName added in v0.12.0

type UpdateSupportBundleSpecName struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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