Versions in this module Expand all Collapse all v0 v0.0.1 Jul 12, 2023 Changes in this version + func NewCreateNewDeploymentRequest(server string, accountName string, params *CreateNewDeploymentParams, ...) (*http.Request, error) + func NewCreateNewDeploymentRequestWithBody(server string, accountName string, params *CreateNewDeploymentParams, ...) (*http.Request, error) + func NewDeleteDeploymentRequest(server string, accountName string, uid string, params *DeleteDeploymentParams) (*http.Request, error) + func NewGenerateNewTokenRequest(server string, params *GenerateNewTokenParams) (*http.Request, error) + func NewGetDeploymentsListRequest(server string, accountName string, params *GetDeploymentsListParams) (*http.Request, error) + type AuthTokenResponse struct + Token *string + type AuthorizationToken = string + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) CreateNewDeployment(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*http.Response, error) + func (c *Client) CreateNewDeploymentWithBody(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*http.Response, error) + func (c *Client) DeleteDeployment(ctx context.Context, accountName string, uid string, ...) (*http.Response, error) + func (c *Client) GenerateNewToken(ctx context.Context, params *GenerateNewTokenParams, ...) (*http.Response, error) + func (c *Client) GetDeploymentsList(ctx context.Context, accountName string, params *GetDeploymentsListParams, ...) (*http.Response, error) + type ClientInterface interface + CreateNewDeployment func(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*http.Response, error) + CreateNewDeploymentWithBody func(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*http.Response, error) + DeleteDeployment func(ctx context.Context, accountName string, uid string, ...) (*http.Response, error) + GenerateNewToken func(ctx context.Context, params *GenerateNewTokenParams, ...) (*http.Response, error) + GetDeploymentsList func(ctx context.Context, accountName string, params *GetDeploymentsListParams, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) CreateNewDeploymentWithBodyWithResponse(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*CreateNewDeploymentResponse, error) + func (c *ClientWithResponses) CreateNewDeploymentWithResponse(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*CreateNewDeploymentResponse, error) + func (c *ClientWithResponses) DeleteDeploymentWithResponse(ctx context.Context, accountName string, uid string, ...) (*DeleteDeploymentResponse, error) + func (c *ClientWithResponses) GenerateNewTokenWithResponse(ctx context.Context, params *GenerateNewTokenParams, ...) (*GenerateNewTokenResponse, error) + func (c *ClientWithResponses) GetDeploymentsListWithResponse(ctx context.Context, accountName string, params *GetDeploymentsListParams, ...) (*GetDeploymentsListResponse, error) + type ClientWithResponsesInterface interface + CreateNewDeploymentWithBodyWithResponse func(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*CreateNewDeploymentResponse, error) + CreateNewDeploymentWithResponse func(ctx context.Context, accountName string, params *CreateNewDeploymentParams, ...) (*CreateNewDeploymentResponse, error) + DeleteDeploymentWithResponse func(ctx context.Context, accountName string, uid string, ...) (*DeleteDeploymentResponse, error) + GenerateNewTokenWithResponse func(ctx context.Context, params *GenerateNewTokenParams, ...) (*GenerateNewTokenResponse, error) + GetDeploymentsListWithResponse func(ctx context.Context, accountName string, params *GetDeploymentsListParams, ...) (*GetDeploymentsListResponse, error) + type CreateNewDeploymentJSONRequestBody = DeploymentCreateRequest + type CreateNewDeploymentParams struct + AuthorizationToken AuthorizationToken + type CreateNewDeploymentResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *DeploymentCreateResponse + func ParseCreateNewDeploymentResponse(rsp *http.Response) (*CreateNewDeploymentResponse, error) + func (r CreateNewDeploymentResponse) Status() string + func (r CreateNewDeploymentResponse) StatusCode() int + type DeleteDeploymentParams struct + AuthorizationToken AuthorizationToken + type DeleteDeploymentResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]DeploymentDeleteResponse + func ParseDeleteDeploymentResponse(rsp *http.Response) (*DeleteDeploymentResponse, error) + func (r DeleteDeploymentResponse) Status() string + func (r DeleteDeploymentResponse) StatusCode() int + type DeploymentCreateRequest struct + Application string + ApplicationVersion string + CloudProviderId string + Name string + NumAdditionalAppNodes *int32 + Plan string + PlanType string + PrivateVpc *string + RegionId string + TerminationLock bool + type DeploymentCreateResponse struct + Application string + ApplicationVersion string + CloudProviderId DeploymentCreateResponseCloudProviderId + Name string + NumAdditionalAppNodes *int32 + Plan string + PlanType string + PrivateVpc *int32 + RegionId string + TerminationLock bool + type DeploymentCreateResponseCloudProviderId string + const Aws + const Azure + const Gcp + type DeploymentDeleteResponse struct + Message *string + Success *bool + type DeploymentListResponse struct + Count *int32 + Next *string + Previous *string + Results ... + type GenerateNewTokenParams struct + Password string + TfaToken *string + Username string + type GenerateNewTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} + func ParseGenerateNewTokenResponse(rsp *http.Response) (*GenerateNewTokenResponse, error) + func (r GenerateNewTokenResponse) Status() string + func (r GenerateNewTokenResponse) StatusCode() int + type GetDeploymentsListParams struct + AuthorizationToken AuthorizationToken + type GetDeploymentsListResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]DeploymentListResponse + func ParseGetDeploymentsListResponse(rsp *http.Response) (*GetDeploymentsListResponse, error) + func (r GetDeploymentsListResponse) Status() string + func (r GetDeploymentsListResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type RequestEditorFn func(ctx context.Context, req *http.Request) error