Documentation ¶
Index ¶
- type Errer
- type GraphQLClient
- func (c *GraphQLClient) CreateChannel(name string) (*ShipChannel, error)
- func (c *GraphQLClient) EnsureCustomerOnChannel(customerId string, channelId string) (string, error)
- func (c *GraphQLClient) GetOrCreateChannel(name string) (*ShipChannel, error)
- func (c *GraphQLClient) PromoteRelease(spec, channelID, semver, releaseNotes string) (*ShipReleaseResult, error)
- type GraphQLError
- type GraphQLRequest
- type GraphQLResponseAssignCustomer
- type GraphQLResponseCreateChannel
- type GraphQLResponseListChannel
- type GraphQLResponsePromoteRelease
- type ShipAssignCustomerResult
- type ShipChannel
- type ShipChannelListResult
- type ShipCreateChannelResult
- type ShipCustomer
- type ShipReleaseResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errer ¶
type Errer interface {
GraphQLError() []GraphQLError
}
type GraphQLClient ¶
stolen from devops and other places
func (*GraphQLClient) CreateChannel ¶
func (c *GraphQLClient) CreateChannel(name string) (*ShipChannel, error)
func (*GraphQLClient) EnsureCustomerOnChannel ¶
func (c *GraphQLClient) EnsureCustomerOnChannel(customerId string, channelId string) (string, error)
func (*GraphQLClient) GetOrCreateChannel ¶
func (c *GraphQLClient) GetOrCreateChannel(name string) (*ShipChannel, error)
func (*GraphQLClient) PromoteRelease ¶
func (c *GraphQLClient) PromoteRelease( spec, channelID, semver, releaseNotes string, ) (*ShipReleaseResult, error)
type GraphQLError ¶
type GraphQLError struct { Locations []map[string]interface{} `json:"locations"` Message string `json:"message"` Code string `json:"code"` }
GraphQLError represents an error returned by the graphql server
type GraphQLRequest ¶
type GraphQLRequest struct { Query string `json:"query"` Variables map[string]string `json:"variables"` OperationName string `json:"operationName"` }
GraphQLRequest is a json-serializable request to the graphql server
type GraphQLResponseAssignCustomer ¶
type GraphQLResponseAssignCustomer struct { Data *ShipAssignCustomerResult `json:"data,omitempty"` Errors []GraphQLError `json:"errors,omitempty"` }
func (GraphQLResponseAssignCustomer) GraphQLError ¶
func (r GraphQLResponseAssignCustomer) GraphQLError() []GraphQLError
type GraphQLResponseCreateChannel ¶
type GraphQLResponseCreateChannel struct { Data *ShipCreateChannelResult `json:"data,omitempty"` Errors []GraphQLError `json:"errors,omitempty"` }
GraphQLResponsePromoteRelease is the top-level response object from the graphql server
func (GraphQLResponseCreateChannel) GraphQLError ¶
func (r GraphQLResponseCreateChannel) GraphQLError() []GraphQLError
type GraphQLResponseListChannel ¶
type GraphQLResponseListChannel struct { Data *ShipChannelListResult `json:"data,omitempty"` Errors []GraphQLError `json:"errors,omitempty"` }
func (GraphQLResponseListChannel) GraphQLError ¶
func (r GraphQLResponseListChannel) GraphQLError() []GraphQLError
type GraphQLResponsePromoteRelease ¶
type GraphQLResponsePromoteRelease struct { Data *ShipReleaseResult `json:"data,omitempty"` Errors []GraphQLError `json:"errors,omitempty"` }
GraphQLResponsePromoteRelease is the top-level response object from the graphql server
func (GraphQLResponsePromoteRelease) GraphQLError ¶
func (r GraphQLResponsePromoteRelease) GraphQLError() []GraphQLError
type ShipAssignCustomerResult ¶
type ShipAssignCustomerResult struct {
AssignCustomerToChannel ShipChannel `json:"assignCustomerToChannel"`
}
type ShipChannel ¶
type ShipChannel struct { Name string `json:"name"` ID string `json:"id"` Customers []ShipCustomer `json:"customers"` }
type ShipChannelListResult ¶
type ShipChannelListResult struct {
SearchChannels []ShipChannel `json:"searchChannels"`
}
type ShipCreateChannelResult ¶
type ShipCreateChannelResult struct {
CreateChannel ShipChannel `json:"createChannel"`
}
type ShipCustomer ¶
type ShipReleaseResult ¶
type ShipReleaseResult struct {
PromoteResult map[string]interface{} `json:"promoteRelease"`
}
Click to show internal directories.
Click to hide internal directories.