Documentation
¶
Index ¶
- Variables
- func JWTFromCC(c *Client, accessKey, secretKey string) error
- type Client
- func (c *Client) CreateService(ctx context.Context, request CreateServiceRequest) (*CreateServiceResponse, error)
- func (c *Client) DeleteService(ctx context.Context, id string) (*Service, error)
- func (c *Client) GetProducts(ctx context.Context) ([]*Product, error)
- func (c *Client) GetService(ctx context.Context, id string) (*Service, error)
- func (c *Client) RenameService(ctx context.Context, serviceID string, newName string) error
- func (c *Client) ResizeInstance(ctx context.Context, serviceID string, config ResourceConfig) error
- type CreateServiceRequest
- type CreateServiceResponse
- type CreateServiceResponseData
- type DeleteServiceResponse
- type Error
- type GetServiceResponse
- type JWTFromCCResponse
- type Plan
- type Product
- type ProductsResponse
- type ResourceConfig
- type ResourceSpec
- type Response
- type Service
- type ServiceSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed queries/create_service.graphql CreateServiceMutation string //go:embed queries/rename_service.graphql RenameServiceMutation string //go:embed queries/resize_instance.graphql ResizeInstanceMutation string //go:embed queries/delete_service.graphql DeleteServiceMutation string //go:embed queries/get_service.graphql GetServiceQuery string //go:embed queries/products.graphql ProductsQuery string //go:embed queries/jwt_cc.graphql JWTFromCCQuery string )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateService ¶
func (c *Client) CreateService(ctx context.Context, request CreateServiceRequest) (*CreateServiceResponse, error)
func (*Client) DeleteService ¶
func (*Client) GetService ¶
func (*Client) RenameService ¶
func (*Client) ResizeInstance ¶
type CreateServiceRequest ¶
type CreateServiceResponse ¶
type CreateServiceResponseData ¶
type CreateServiceResponseData struct {
CreateServiceResponse CreateServiceResponse `json:"createService"`
}
type DeleteServiceResponse ¶
type DeleteServiceResponse struct {
Service Service `json:"deleteService"`
}
type GetServiceResponse ¶
type GetServiceResponse struct {
Service Service `json:"getService"`
}
type JWTFromCCResponse ¶
type JWTFromCCResponse struct {
Token string `json:"getJWTForClientCredentials"`
}
type ProductsResponse ¶
type ProductsResponse struct {
Products []*Product `json:"products"`
}
type ResourceConfig ¶
type ResourceSpec ¶
type Service ¶
type Service struct { ID string `json:"id"` Name string `json:"name"` AutoscaleSettings struct { Enabled bool `json:"enabled"` } `json:"autoscaleSettings"` Status string `json:"status"` RegionCode string `json:"regionCode"` ServiceSpec ServiceSpec `json:"spec"` Resources []ResourceSpec `json:"resources"` Created string `json:"created"` }
type ServiceSpec ¶
Click to show internal directories.
Click to hide internal directories.