Documentation
¶
Index ¶
- func ArchiveChannel(appID string, channelID string) error
- func GetChannel(appID string, channelID string) (interface{}, []interface{}, error)
- type AppOptions
- type ChannelOptions
- type Client
- type CreateEntitlementSpecResponse
- type CreateEntitlementValueResponse
- type CreateSupportBundleSpec
- type GetSupportBundleSpec
- type GraphQLClient
- func (c *GraphQLClient) CreateChannel(appID string, name string, description string) error
- func (c *GraphQLClient) CreateCollector(appID string, name string, yaml string) (*v1.AppCollectorInfo, error)
- func (c *GraphQLClient) CreateEntitlementSpec(appID string, name string, spec string) (*types.EntitlementSpec, error)
- func (c *GraphQLClient) CreateRelease(appID string, yaml string) (*types.ReleaseInfo, error)
- func (c *GraphQLClient) ExecuteRequest(requestObj graphql.Request, deserializeTarget interface{}) error
- func (c *GraphQLClient) GetApp(appID string) (*types.App, error)
- func (c *GraphQLClient) GetCollector(appID string, id string) (*v1.AppCollectorInfo, error)
- func (c *GraphQLClient) LintRelease(appID string, yaml string) ([]types.LintMessage, error)
- func (c *GraphQLClient) ListApps() ([]types.AppAndChannels, error)
- func (c *GraphQLClient) ListChannels(appID string) ([]types.Channel, error)
- func (c *GraphQLClient) ListCollectors(appID string, appType string) ([]types.CollectorInfo, error)
- func (c *GraphQLClient) ListReleases(appID string) ([]types.ReleaseInfo, error)
- func (c *GraphQLClient) PromoteCollector(appID string, specID string, channelIDs ...string) error
- func (c *GraphQLClient) PromoteRelease(appID string, sequence int64, label string, notes string, channelIDs ...string) error
- func (c *GraphQLClient) SetDefaultEntitlementSpec(specID string) error
- func (c *GraphQLClient) SetEntitlementValue(customerID string, specID string, key string, value string, datatype string, ...) (*types.EntitlementValue, error)
- func (c *GraphQLClient) UpdateCollector(appID string, specID, yaml string) (interface{}, error)
- func (c *GraphQLClient) UpdateCollectorName(appID string, specID, name string) (interface{}, error)
- func (c *GraphQLClient) UpdateRelease(appID string, sequence int64, yaml string) error
- type GraphQLResponseCreateCollector
- type GraphQLResponseCreateEntitlementSpec
- type GraphQLResponseCreateEntitlementValue
- type GraphQLResponseFinalizeRelease
- type GraphQLResponseGetCollector
- type GraphQLResponseLintRelease
- type GraphQLResponseListApps
- type GraphQLResponseListChannels
- type GraphQLResponseListCollectors
- type GraphQLResponseListReleases
- type GraphQLResponseSetDefault
- type GraphQLResponseUpdateCollector
- type GraphQLResponseUpdateNameCollector
- type GraphQLResponseUploadRelease
- type PlatformChannel
- type PlatformGQLResponseListCollectors
- type PlatformSupportBundleSpec
- type PlatformSupportBundleSpecsData
- type ShipApp
- type ShipAppsData
- type ShipChannel
- type ShipChannelData
- type ShipData
- type ShipFinalizeCreateData
- type ShipLintLinePosition
- type ShipLintMessage
- type ShipLintPosition
- type ShipPendingReleaseData
- type ShipRelease
- type ShipReleaseLintData
- type ShipReleaseUploadData
- type ShipReleasesData
- type SupportBundleCreateSpecData
- type SupportBundleGetSpecData
- type SupportBundleSpec
- type SupportBundleSpecsData
- type SupportBundleUpdateSpecData
- type SupportBundleUpdateSpecNameData
- type UpdateSupportBundleSpec
- type UpdateSupportBundleSpecName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveChannel ¶
func GetChannel ¶
Types ¶
type AppOptions ¶
type AppOptions struct {
Name string
}
type ChannelOptions ¶
type Client ¶
type Client interface {
ListApps() ([]types.AppAndChannels, error)
GetApp(appID string) (*types.App, error)
ListChannels(string) ([]types.Channel, error)
CreateChannel(string, string, string) error
ListReleases(appID string) ([]types.ReleaseInfo, error)
CreateRelease(appID string, yaml string) (*types.ReleaseInfo, error)
UpdateRelease(appID string, sequence int64, yaml string) error
PromoteRelease(appID string, sequence int64, label string, notes string, channelIDs ...string) error
LintRelease(string, string) ([]types.LintMessage, error)
ListCollectors(appID string, appType string) ([]types.CollectorInfo, error)
CreateCollector(appID string, name string, yaml string) (*v1.AppCollectorInfo, error)
UpdateCollector(appID string, specID string, yaml string) (interface{}, error)
UpdateCollectorName(appID string, specID, name string) (interface{}, error)
GetCollector(appID string, specID string) (*v1.AppCollectorInfo, error)
PromoteCollector(appID string, specID string, channelIDs ...string) error
CreateEntitlementSpec(appID string, name string, spec string) (*types.EntitlementSpec, error)
SetDefaultEntitlementSpec(specID string) error
SetEntitlementValue(customerID string, specID string, key string, value string, datatype string, appID string) (*types.EntitlementValue, error)
}
func NewGraphQLClient ¶
type CreateEntitlementSpecResponse ¶ added in v0.11.0
type CreateEntitlementSpecResponse struct {
CreateEntitlementSpec *types.EntitlementSpec `json:"createEntitlementSpec,omitempty"`
}
type CreateEntitlementValueResponse ¶ added in v0.11.0
type CreateEntitlementValueResponse struct {
CreateEntitlementValue *types.EntitlementValue `json:"createEntitlementValue,omitempty"`
}
type CreateSupportBundleSpec ¶ added in v0.12.0
type GetSupportBundleSpec ¶ added in v0.12.0
type GraphQLClient ¶
Client communicates with the Replicated Vendor GraphQL API.
func (*GraphQLClient) CreateChannel ¶
func (c *GraphQLClient) CreateChannel(appID string, name string, description string) error
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) CreateEntitlementSpec ¶ added in v0.11.0
func (c *GraphQLClient) CreateEntitlementSpec(appID string, name string, spec string) (*types.EntitlementSpec, error)
func (*GraphQLClient) CreateRelease ¶
func (c *GraphQLClient) CreateRelease(appID string, yaml string) (*types.ReleaseInfo, error)
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) LintRelease ¶ added in v0.8.0
func (c *GraphQLClient) LintRelease(appID string, yaml string) ([]types.LintMessage, error)
func (*GraphQLClient) ListApps ¶
func (c *GraphQLClient) ListApps() ([]types.AppAndChannels, error)
func (*GraphQLClient) ListChannels ¶
func (c *GraphQLClient) ListChannels(appID string) ([]types.Channel, error)
func (*GraphQLClient) ListCollectors ¶ added in v0.12.0
func (c *GraphQLClient) ListCollectors(appID string, appType string) ([]types.CollectorInfo, error)
func (*GraphQLClient) ListReleases ¶
func (c *GraphQLClient) ListReleases(appID string) ([]types.ReleaseInfo, 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) PromoteRelease ¶
func (*GraphQLClient) SetDefaultEntitlementSpec ¶ added in v0.11.0
func (c *GraphQLClient) SetDefaultEntitlementSpec(specID string) error
func (*GraphQLClient) SetEntitlementValue ¶ added in v0.11.0
func (c *GraphQLClient) SetEntitlementValue(customerID string, specID string, key string, value string, datatype string, appId string) (*types.EntitlementValue, error)
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)
func (*GraphQLClient) UpdateRelease ¶
func (c *GraphQLClient) UpdateRelease(appID string, sequence int64, yaml string) error
type GraphQLResponseCreateCollector ¶ added in v0.12.0
type GraphQLResponseCreateCollector struct {
Data *SupportBundleCreateSpecData `json:"data,omitempty"`
}
type GraphQLResponseCreateEntitlementSpec ¶ added in v0.11.0
type GraphQLResponseCreateEntitlementSpec struct {
Data *CreateEntitlementSpecResponse `json:"data,omitempty"`
Errors []graphql.GQLError `json:"errors,omitempty"`
}
type GraphQLResponseCreateEntitlementValue ¶ added in v0.11.0
type GraphQLResponseCreateEntitlementValue struct {
Data *CreateEntitlementValueResponse `json:"data,omitempty"`
Errors []graphql.GQLError `json:"errors,omitempty"`
}
type GraphQLResponseFinalizeRelease ¶ added in v0.9.0
type GraphQLResponseFinalizeRelease struct {
Data *ShipFinalizeCreateData `json:"data,omitempty"`
Errors []graphql.GQLError `json:"errors,omitempty"`
}
type GraphQLResponseGetCollector ¶ added in v0.12.0
type GraphQLResponseGetCollector struct {
Data *SupportBundleGetSpecData `json:"data,omitempty"`
}
type GraphQLResponseLintRelease ¶ added in v0.8.0
type GraphQLResponseLintRelease struct {
Data *ShipReleaseLintData `json:"data,omitempty"`
Errors []graphql.GQLError `json:"errors,omitempty"`
}
type GraphQLResponseListApps ¶
type GraphQLResponseListChannels ¶
type GraphQLResponseListChannels struct {
Data *ShipChannelData `json:"data,omitempty"`
Errors []graphql.GQLError `json:"errors,omitempty"`
}
type GraphQLResponseListCollectors ¶ added in v0.12.0
type GraphQLResponseListCollectors struct {
Data *SupportBundleSpecsData `json:"data,omitempty"`
}
type GraphQLResponseListReleases ¶
type GraphQLResponseListReleases struct {
Data *ShipReleasesData `json:"data,omitempty"`
Errors []graphql.GQLError `json:"errors,omitempty"`
}
type GraphQLResponseSetDefault ¶ added in v0.11.0
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 GraphQLResponseUploadRelease ¶ added in v0.9.0
type GraphQLResponseUploadRelease struct {
Data ShipReleaseUploadData `json:"data,omitempty"`
Errors []graphql.GQLError `json:"errors,omitempty"`
}
type PlatformChannel ¶ added in v0.12.0
type PlatformGQLResponseListCollectors ¶ added in v0.12.0
type PlatformGQLResponseListCollectors struct {
Data *PlatformSupportBundleSpecsData `json:"data,omitempty"`
}
PLATFORM
type PlatformSupportBundleSpec ¶ added in v0.12.0
type PlatformSupportBundleSpecsData ¶ added in v0.12.0
type PlatformSupportBundleSpecsData struct {
PlatformSupportBundleSpecs []*PlatformSupportBundleSpec `json:"supportBundleSpecs"`
}
type ShipApp ¶
type ShipApp struct {
ID string `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Channels []ShipChannel `json:"channel"`
}
type ShipAppsData ¶
type ShipAppsData struct {
ShipApps []*ShipApp `json:"apps"`
}
type ShipChannel ¶
type ShipChannelData ¶
type ShipChannelData struct {
ShipChannels []*ShipChannel `json:"getAppChannels"`
}
type ShipData ¶
type ShipData struct {
Ship *ShipAppsData `json:"ship"`
}
type ShipFinalizeCreateData ¶ added in v0.9.0
type ShipFinalizeCreateData struct {
ShipRelease *ShipRelease `json:"finalizeUploadedRelease"`
}
type ShipLintLinePosition ¶ added in v0.8.0
type ShipLintMessage ¶ added in v0.8.0
type ShipLintMessage struct {
Rule string `json:"rule"`
Type string `json:"type"`
Positions []*ShipLintPosition `json:"positions"`
}
type ShipLintPosition ¶ added in v0.8.0
type ShipLintPosition struct {
Path string `json:"path"`
Start *ShipLintLinePosition `json:"start"`
End *ShipLintLinePosition `json:"end"`
}
type ShipPendingReleaseData ¶ added in v0.9.0
type ShipRelease ¶
type ShipRelease struct {
ID string `json:"id"`
Sequence int64 `json:"sequence"`
CreatedAt string `json:"created"`
ReleaseNotes string `json:"releaseNotes"`
Channels []*ShipChannel `json:"channels"`
}
type ShipReleaseLintData ¶ added in v0.8.0
type ShipReleaseLintData struct {
Messages []*ShipLintMessage `json:"lintRelease"`
}
type ShipReleaseUploadData ¶ added in v0.9.0
type ShipReleaseUploadData struct {
ShipPendingReleaseData *ShipPendingReleaseData `json:"uploadRelease"`
}
type ShipReleasesData ¶
type ShipReleasesData struct {
ShipReleases []*ShipRelease `json:"allReleases"`
}
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 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 UpdateSupportBundleSpecName ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.