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 GraphQLClient
- func (c *GraphQLClient) CreateChannel(appID string, name string, description string) error
- func (c *GraphQLClient) CreateRelease(appID string, multiyaml 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) ListApps() ([]types.AppAndChannels, error)
- func (c *GraphQLClient) ListChannels(appID string) ([]types.Channel, error)
- func (c *GraphQLClient) ListReleases(appID string) ([]types.ReleaseInfo, error)
- func (c *GraphQLClient) PromoteRelease(appID string, sequence int64, label string, notes string, channelIDs ...string) error
- func (c *GraphQLClient) UpdateRelease(appID string, sequence int64, multiyaml string) error
- type GraphQLResponseKotsCreateRelease
- type GraphQLResponseKotsUpdateRelease
- type GraphQLResponseListApps
- type GraphQLResponseListChannels
- type GraphQLResponseListReleases
- type GraphQLResponseUpdateKotsRelease
- type KotsApp
- type KotsAppChannelData
- type KotsAppsData
- type KotsChannel
- type KotsChannelData
- type KotsCreateReleaseData
- type KotsData
- type KotsRelease
- type KotsReleaseSequence
- type KotsReleaseUpdateData
- type KotsReleasesData
- type KotsUpdateReleaseData
- type UpdateKotsRelease
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) CreateRelease(appID string, multiyaml string) (*types.ReleaseInfo, error) ListReleases(appID string) ([]types.ReleaseInfo, error) UpdateRelease(appID string, sequence int64, yaml string) error PromoteRelease(appID string, sequence int64, label string, notes string, channelIDs ...string) error ListChannels(string) ([]types.Channel, error) CreateChannel(string, string, string) error }
func NewGraphQLClient ¶
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) CreateRelease ¶
func (c *GraphQLClient) CreateRelease(appID string, multiyaml string) (*types.ReleaseInfo, error)
func (*GraphQLClient) ExecuteRequest ¶
func (c *GraphQLClient) ExecuteRequest(requestObj graphql.Request, deserializeTarget interface{}) 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) ListReleases ¶
func (c *GraphQLClient) ListReleases(appID string) ([]types.ReleaseInfo, error)
func (*GraphQLClient) PromoteRelease ¶
func (*GraphQLClient) UpdateRelease ¶
func (c *GraphQLClient) UpdateRelease(appID string, sequence int64, multiyaml string) error
type GraphQLResponseKotsCreateRelease ¶
type GraphQLResponseKotsCreateRelease struct { Data KotsCreateReleaseData `json:"data,omitempty"` Errors []graphql.GQLError `json:"errors,omitempty"` }
type GraphQLResponseKotsUpdateRelease ¶
type GraphQLResponseKotsUpdateRelease struct { Data KotsUpdateReleaseData `json:"data,omitempty"` Errors []graphql.GQLError `json:"errors,omitempty"` }
type GraphQLResponseListApps ¶
type GraphQLResponseListChannels ¶
type GraphQLResponseListChannels struct { Data *KotsChannelData `json:"data,omitempty"` Errors []graphql.GQLError `json:"errors,omitempty"` }
type GraphQLResponseListReleases ¶
type GraphQLResponseListReleases struct { Data *KotsReleasesData `json:"data,omitempty"` Errors []graphql.GQLError `json:"errors,omitempty"` }
type GraphQLResponseUpdateKotsRelease ¶
type GraphQLResponseUpdateKotsRelease struct {
Data *KotsReleaseUpdateData `json:"data,omitempty"`
}
type KotsApp ¶
type KotsApp struct { ID string `json:"id"` Name string `json:"name"` Slug string `json:"slug"` Channels []*KotsAppChannelData `json: "channels"` }
type KotsAppChannelData ¶
type KotsAppsData ¶
type KotsAppsData struct {
KotsApps []*KotsApp `json:"apps"`
}
type KotsChannel ¶
type KotsChannelData ¶
type KotsChannelData struct {
KotsChannels []*KotsChannel `json:"getKotsAppChannels"`
}
type KotsCreateReleaseData ¶
type KotsCreateReleaseData struct {
KotsReleaseData KotsReleaseSequence `json:"createKotsRelease"`
}
type KotsData ¶
type KotsData struct {
Kots *KotsAppsData `json:"kots"`
}
type KotsRelease ¶
type KotsRelease struct { ID string `json:"id"` Sequence int64 `json:"sequence"` CreatedAt string `json:"created"` ReleaseNotes string `json:"releaseNotes"` Channels []*KotsChannel `json:"channels"` }
type KotsReleaseSequence ¶
type KotsReleaseSequence struct {
Sequence int64 `json:"sequence"`
}
type KotsReleaseUpdateData ¶
type KotsReleaseUpdateData struct {
UpdateKotsRelease *UpdateKotsRelease `json:"updateKotsRelease"`
}
type KotsReleasesData ¶
type KotsReleasesData struct {
KotsReleases []*KotsRelease `json:"allKotsReleases"`
}
type KotsUpdateReleaseData ¶
type KotsUpdateReleaseData struct {
KotsReleaseData KotsReleaseSequence `json:"createKotsRelease"`
}
type UpdateKotsRelease ¶
Click to show internal directories.
Click to hide internal directories.