Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateDeployment(params *CreateDeploymentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateDeploymentOK, error)
- func (a *Client) GetDeployments(params *GetDeploymentsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeploymentsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type CreateDeploymentDefault
- type CreateDeploymentOK
- type CreateDeploymentParams
- func (o *CreateDeploymentParams) WithAppName(appName string) *CreateDeploymentParams
- func (o *CreateDeploymentParams) WithAppTarball(appTarball os.File) *CreateDeploymentParams
- func (o *CreateDeploymentParams) WithDescription(description *string) *CreateDeploymentParams
- func (o *CreateDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateDeploymentReader
- type GetDeploymentsDefault
- type GetDeploymentsForbidden
- type GetDeploymentsOK
- type GetDeploymentsOKBodyBody
- type GetDeploymentsParams
- func (o *GetDeploymentsParams) WithAppID(appID int64) *GetDeploymentsParams
- func (o *GetDeploymentsParams) WithLimit(limit *int64) *GetDeploymentsParams
- func (o *GetDeploymentsParams) WithSince(since *int64) *GetDeploymentsParams
- func (o *GetDeploymentsParams) WithTeamID(teamID int64) *GetDeploymentsParams
- func (o *GetDeploymentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeploymentsReader
- type GetDeploymentsUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for deployments API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new deployments API client.
func (*Client) CreateDeployment ¶
func (a *Client) CreateDeployment(params *CreateDeploymentParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*CreateDeploymentOK, error)
CreateDeployment creates a new deploy
Create a deploy for an app
func (*Client) GetDeployments ¶
func (a *Client) GetDeployments(params *GetDeploymentsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeploymentsOK, error)
GetDeployments gets app deployments
Get deployments an app may have
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateDeploymentDefault ¶
type CreateDeploymentDefault struct { Payload *models.Error // contains filtered or unexported fields }
CreateDeploymentDefault handles this case with default header values.
Error
func NewCreateDeploymentDefault ¶
func NewCreateDeploymentDefault(code int) *CreateDeploymentDefault
NewCreateDeploymentDefault creates a CreateDeploymentDefault with default headers values
func (*CreateDeploymentDefault) Code ¶
func (o *CreateDeploymentDefault) Code() int
Code gets the status code for the create deployment default response
func (*CreateDeploymentDefault) Error ¶
func (o *CreateDeploymentDefault) Error() string
type CreateDeploymentOK ¶
CreateDeploymentOK handles this case with default header values.
App
func NewCreateDeploymentOK ¶
func NewCreateDeploymentOK(writer io.Writer) *CreateDeploymentOK
NewCreateDeploymentOK creates a CreateDeploymentOK with default headers values
func (*CreateDeploymentOK) Error ¶
func (o *CreateDeploymentOK) Error() string
type CreateDeploymentParams ¶
type CreateDeploymentParams struct { /*AppTarball*/ AppTarball os.File /*AppName App name */ AppName string /*Description*/ Description *string // contains filtered or unexported fields }
CreateDeploymentParams contains all the parameters to send to the API endpoint for the create deployment operation typically these are written to a http.Request
func NewCreateDeploymentParams ¶
func NewCreateDeploymentParams() *CreateDeploymentParams
NewCreateDeploymentParams creates a new CreateDeploymentParams object with the default values initialized.
func NewCreateDeploymentParamsWithTimeout ¶
func NewCreateDeploymentParamsWithTimeout(timeout time.Duration) *CreateDeploymentParams
NewCreateDeploymentParamsWithTimeout creates a new CreateDeploymentParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateDeploymentParams) WithAppName ¶ added in v0.2.0
func (o *CreateDeploymentParams) WithAppName(appName string) *CreateDeploymentParams
WithAppName adds the appName to the create deployment params
func (*CreateDeploymentParams) WithAppTarball ¶
func (o *CreateDeploymentParams) WithAppTarball(appTarball os.File) *CreateDeploymentParams
WithAppTarball adds the appTarball to the create deployment params
func (*CreateDeploymentParams) WithDescription ¶
func (o *CreateDeploymentParams) WithDescription(description *string) *CreateDeploymentParams
WithDescription adds the description to the create deployment params
func (*CreateDeploymentParams) WriteToRequest ¶
func (o *CreateDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateDeploymentReader ¶
type CreateDeploymentReader struct {
// contains filtered or unexported fields
}
CreateDeploymentReader is a Reader for the CreateDeployment structure.
func (*CreateDeploymentReader) ReadResponse ¶
func (o *CreateDeploymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the recieved o.
type GetDeploymentsDefault ¶
type GetDeploymentsDefault struct { Payload *models.GenericError // contains filtered or unexported fields }
GetDeploymentsDefault handles this case with default header values.
Error
func NewGetDeploymentsDefault ¶
func NewGetDeploymentsDefault(code int) *GetDeploymentsDefault
NewGetDeploymentsDefault creates a GetDeploymentsDefault with default headers values
func (*GetDeploymentsDefault) Code ¶
func (o *GetDeploymentsDefault) Code() int
Code gets the status code for the get deployments default response
func (*GetDeploymentsDefault) Error ¶
func (o *GetDeploymentsDefault) Error() string
type GetDeploymentsForbidden ¶
type GetDeploymentsForbidden struct {
Payload *models.Unauthorized
}
GetDeploymentsForbidden handles this case with default header values.
User does not have the credentials to access this resource
func NewGetDeploymentsForbidden ¶
func NewGetDeploymentsForbidden() *GetDeploymentsForbidden
NewGetDeploymentsForbidden creates a GetDeploymentsForbidden with default headers values
func (*GetDeploymentsForbidden) Error ¶
func (o *GetDeploymentsForbidden) Error() string
type GetDeploymentsOK ¶
type GetDeploymentsOK struct {
Payload GetDeploymentsOKBodyBody
}
GetDeploymentsOK handles this case with default header values.
Get app deployments
func NewGetDeploymentsOK ¶
func NewGetDeploymentsOK() *GetDeploymentsOK
NewGetDeploymentsOK creates a GetDeploymentsOK with default headers values
func (*GetDeploymentsOK) Error ¶
func (o *GetDeploymentsOK) Error() string
type GetDeploymentsOKBodyBody ¶
type GetDeploymentsOKBodyBody struct { models.Pagination /* items Required: true */ Items []*models.Deployment `json:"items"` }
GetDeploymentsOKBodyBody get deployments o k body body
swagger:model GetDeploymentsOKBodyBody
type GetDeploymentsParams ¶
type GetDeploymentsParams struct { /*AppID App ID */ AppID int64 /*Limit Limit */ Limit *int64 /*Since Offset */ Since *int64 /*TeamID Team ID */ TeamID int64 // contains filtered or unexported fields }
GetDeploymentsParams contains all the parameters to send to the API endpoint for the get deployments operation typically these are written to a http.Request
func NewGetDeploymentsParams ¶
func NewGetDeploymentsParams() *GetDeploymentsParams
NewGetDeploymentsParams creates a new GetDeploymentsParams object with the default values initialized.
func NewGetDeploymentsParamsWithTimeout ¶
func NewGetDeploymentsParamsWithTimeout(timeout time.Duration) *GetDeploymentsParams
NewGetDeploymentsParamsWithTimeout creates a new GetDeploymentsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDeploymentsParams) WithAppID ¶
func (o *GetDeploymentsParams) WithAppID(appID int64) *GetDeploymentsParams
WithAppID adds the appID to the get deployments params
func (*GetDeploymentsParams) WithLimit ¶
func (o *GetDeploymentsParams) WithLimit(limit *int64) *GetDeploymentsParams
WithLimit adds the limit to the get deployments params
func (*GetDeploymentsParams) WithSince ¶
func (o *GetDeploymentsParams) WithSince(since *int64) *GetDeploymentsParams
WithSince adds the since to the get deployments params
func (*GetDeploymentsParams) WithTeamID ¶
func (o *GetDeploymentsParams) WithTeamID(teamID int64) *GetDeploymentsParams
WithTeamID adds the teamID to the get deployments params
func (*GetDeploymentsParams) WriteToRequest ¶
func (o *GetDeploymentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDeploymentsReader ¶
type GetDeploymentsReader struct {
// contains filtered or unexported fields
}
GetDeploymentsReader is a Reader for the GetDeployments structure.
func (*GetDeploymentsReader) ReadResponse ¶
func (o *GetDeploymentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the recieved o.
type GetDeploymentsUnauthorized ¶
type GetDeploymentsUnauthorized struct {
}GetDeploymentsUnauthorized handles this case with default header values.
User not authorized
func NewGetDeploymentsUnauthorized ¶
func NewGetDeploymentsUnauthorized() *GetDeploymentsUnauthorized
NewGetDeploymentsUnauthorized creates a GetDeploymentsUnauthorized with default headers values
func (*GetDeploymentsUnauthorized) Error ¶
func (o *GetDeploymentsUnauthorized) Error() string