Documentation
¶
Index ¶
- type CreateEntitlementSpecResponse
- type CreateEntitlementValueResponse
- type EntitlementSpec
- type EntitlementValue
- type Errer
- type GetCustomerSpecResponse
- type GraphQLClient
- func (c *GraphQLClient) CreateEntitlementSpec(name string, spec string, appId string) (*EntitlementSpec, error)
- func (c *GraphQLClient) SetDefaultEntitlementSpec(specID string) (map[string]interface{}, error)
- func (c *GraphQLClient) SetEntitlementValue(customerID, specID, key, value, datatype, appId string) (*EntitlementValue, error)
- type GraphQLError
- type GraphQLRequest
- type GraphQLResponseCreateEntitlementSpec
- type GraphQLResponseCreateEntitlementValue
- type GraphQLResponseCustomerSpec
- type GraphQLResponseSetDefault
- type PremGraphQLClient
- type ShipRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEntitlementSpecResponse ¶
type CreateEntitlementSpecResponse struct {
CreateEntitlementSpec *EntitlementSpec `json:"createEntitlementSpec,omitempty"`
}
type CreateEntitlementValueResponse ¶
type CreateEntitlementValueResponse struct {
CreateEntitlementValue *EntitlementValue `json:"createEntitlementValue,omitempty"`
}
type EntitlementSpec ¶
type EntitlementValue ¶
type Errer ¶
type Errer interface {
GraphQLError() []GraphQLError
}
type GetCustomerSpecResponse ¶
type GetCustomerSpecResponse struct {
ShipRelease ShipRelease `json:"shipRelease,omitempty"` //
}
type GraphQLClient ¶
func (*GraphQLClient) CreateEntitlementSpec ¶
func (c *GraphQLClient) CreateEntitlementSpec(name string, spec string, appId string) (*EntitlementSpec, error)
func (*GraphQLClient) SetDefaultEntitlementSpec ¶
func (c *GraphQLClient) SetDefaultEntitlementSpec(specID string) (map[string]interface{}, error)
func (*GraphQLClient) SetEntitlementValue ¶
func (c *GraphQLClient) SetEntitlementValue(customerID, specID, key, value, datatype, appId string) (*EntitlementValue, 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 GraphQLResponseCreateEntitlementSpec ¶
type GraphQLResponseCreateEntitlementSpec struct {
Data *CreateEntitlementSpecResponse `json:"data,omitempty"`
Errors []GraphQLError `json:"errors,omitempty"`
}
func (GraphQLResponseCreateEntitlementSpec) GraphQLError ¶
func (r GraphQLResponseCreateEntitlementSpec) GraphQLError() []GraphQLError
type GraphQLResponseCreateEntitlementValue ¶
type GraphQLResponseCreateEntitlementValue struct {
Data *CreateEntitlementValueResponse `json:"data,omitempty"`
Errors []GraphQLError `json:"errors,omitempty"`
}
func (GraphQLResponseCreateEntitlementValue) GraphQLError ¶
func (r GraphQLResponseCreateEntitlementValue) GraphQLError() []GraphQLError
type GraphQLResponseCustomerSpec ¶
type GraphQLResponseCustomerSpec struct {
Data GetCustomerSpecResponse `json:"data,omitempty"`
Errors []GraphQLError `json:"errors,omitempty"`
}
func (GraphQLResponseCustomerSpec) GraphQLError ¶
func (r GraphQLResponseCustomerSpec) GraphQLError() []GraphQLError
type GraphQLResponseSetDefault ¶
type GraphQLResponseSetDefault struct {
Data map[string]interface{} `json:"data,omitempty"` // dont care
Errors []GraphQLError `json:"errors,omitempty"`
}
func (GraphQLResponseSetDefault) GraphQLError ¶
func (r GraphQLResponseSetDefault) GraphQLError() []GraphQLError
type PremGraphQLClient ¶
type PremGraphQLClient struct {
GQLServer *url.URL
CustomerID string
InstallationID string
Logger log.Logger
}
func (*PremGraphQLClient) FetchCustomerRelease ¶
func (c *PremGraphQLClient) FetchCustomerRelease() (ShipRelease, error)
type ShipRelease ¶
type ShipRelease map[string]interface{}
don't care what it looks like, just gonna json.MarshalIndent it to stdout
Click to show internal directories.
Click to hide internal directories.