e2e

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

type GraphQLClient struct {
	GQLServer *url.URL
	Token     string
	Logger    log.Logger
}

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 ShipCustomer struct {
	InstallationID string `json:"installationId"`
	ID             string `json:"id"`
}

type ShipReleaseResult

type ShipReleaseResult struct {
	PromoteResult map[string]interface{} `json:"promoteRelease"`
}

Jump to

Keyboard shortcuts

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