Documentation ¶
Index ¶
- Constants
- type ClientOpts
- type ContainerShipCloudClient
- func (c *ContainerShipCloudClient) CreateApplication(clusterId string, appName string, application map[string]interface{}) (*ResponseOpts, error)
- func (c *ContainerShipCloudClient) DeleteApplication(clusterId string, appName string) (*ResponseOpts, error)
- func (c *ContainerShipCloudClient) GetApplication(clusterId string, appName string) (*ResponseOpts, error)
- func (c *ContainerShipCloudClient) UpdateApplication(clusterId string, appName string, application map[string]interface{}) (*ResponseOpts, error)
- type RequestOpts
- type ResponseOpts
Constants ¶
View Source
const ( BASE_API_URL = "https://api.containership.io" BASE_API_VERSION = "v1" CONTENT_TYPE_HEADER = "Content-Type" ORGANIZATION_HEADER = "X-ContainerShip-Cloud-Organization" API_KEY_HEADER = "X-ContainerShip-Cloud-API-Key" DEFAULT_CONTENT_TYPE = "application/json" DEFAULT_METHOD = "POST" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOpts ¶
type ContainerShipCloudClient ¶
type ContainerShipCloudClient struct {
Opts *ClientOpts
}
func NewContainerShipCloudClient ¶
func NewContainerShipCloudClient(organization string, apiKey string) *ContainerShipCloudClient
func (*ContainerShipCloudClient) CreateApplication ¶
func (c *ContainerShipCloudClient) CreateApplication(clusterId string, appName string, application map[string]interface{}) (*ResponseOpts, error)
func (*ContainerShipCloudClient) DeleteApplication ¶
func (c *ContainerShipCloudClient) DeleteApplication(clusterId string, appName string) (*ResponseOpts, error)
func (*ContainerShipCloudClient) GetApplication ¶
func (c *ContainerShipCloudClient) GetApplication(clusterId string, appName string) (*ResponseOpts, error)
func (*ContainerShipCloudClient) UpdateApplication ¶
func (c *ContainerShipCloudClient) UpdateApplication(clusterId string, appName string, application map[string]interface{}) (*ResponseOpts, error)
type RequestOpts ¶
type ResponseOpts ¶
type ResponseOpts struct { Body simplejson.Json StatusCode int }
func ApiRequest ¶
func ApiRequest(requestOpts *RequestOpts) (*ResponseOpts, error)
Click to show internal directories.
Click to hide internal directories.