Documentation ¶
Index ¶
- Constants
- type ArtifactsItems0
- type Client
- type ClientService
- type DetailsItems0
- type ListArtifactsDefault
- type ListArtifactsDefaultBody
- type ListArtifactsOK
- type ListArtifactsOKBody
- type ListArtifactsParams
- func (o *ListArtifactsParams) SetBody(body interface{})
- func (o *ListArtifactsParams) SetContext(ctx context.Context)
- func (o *ListArtifactsParams) SetHTTPClient(client *http.Client)
- func (o *ListArtifactsParams) SetTimeout(timeout time.Duration)
- func (o *ListArtifactsParams) WithBody(body interface{}) *ListArtifactsParams
- func (o *ListArtifactsParams) WithContext(ctx context.Context) *ListArtifactsParams
- func (o *ListArtifactsParams) WithHTTPClient(client *http.Client) *ListArtifactsParams
- func (o *ListArtifactsParams) WithTimeout(timeout time.Duration) *ListArtifactsParams
- func (o *ListArtifactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListArtifactsReader
Constants ¶
const ( // ArtifactsItems0DataModelDATAMODELINVALID captures enum value "DATA_MODEL_INVALID" ArtifactsItems0DataModelDATAMODELINVALID string = "DATA_MODEL_INVALID" // ArtifactsItems0DataModelPHYSICAL captures enum value "PHYSICAL" ArtifactsItems0DataModelPHYSICAL string = "PHYSICAL" // ArtifactsItems0DataModelLOGICAL captures enum value "LOGICAL" ArtifactsItems0DataModelLOGICAL string = "LOGICAL" )
const ( // ArtifactsItems0StatusSTATUSINVALID captures enum value "STATUS_INVALID" ArtifactsItems0StatusSTATUSINVALID string = "STATUS_INVALID" // ArtifactsItems0StatusPENDING captures enum value "PENDING" ArtifactsItems0StatusPENDING string = "PENDING" // ArtifactsItems0StatusINPROGRESS captures enum value "IN_PROGRESS" ArtifactsItems0StatusINPROGRESS string = "IN_PROGRESS" // ArtifactsItems0StatusPAUSED captures enum value "PAUSED" ArtifactsItems0StatusPAUSED string = "PAUSED" // ArtifactsItems0StatusSUCCESS captures enum value "SUCCESS" ArtifactsItems0StatusSUCCESS string = "SUCCESS" // ArtifactsItems0StatusERROR captures enum value "ERROR" ArtifactsItems0StatusERROR string = "ERROR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactsItems0 ¶
type ArtifactsItems0 struct { // Machine-readable artifact ID. ArtifactID string `json:"artifact_id,omitempty"` // Artifact name Name string `json:"name,omitempty"` // Database vendor e.g. PostgreSQL, MongoDB, MySQL. Vendor string `json:"vendor,omitempty"` // Machine-readable location ID. LocationID string `json:"location_id,omitempty"` // Location name. LocationName string `json:"location_name,omitempty"` // Machine-readable service ID. ServiceID string `json:"service_id,omitempty"` // Service name. ServiceName string `json:"service_name,omitempty"` // DataModel is a model used for performing a backup. // Enum: [DATA_MODEL_INVALID PHYSICAL LOGICAL] DataModel *string `json:"data_model,omitempty"` // Status shows current status of backup. // Enum: [STATUS_INVALID PENDING IN_PROGRESS PAUSED SUCCESS ERROR] Status *string `json:"status,omitempty"` // Artifact creation time. // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` }
ArtifactsItems0 Artifact represents single backup artifact. swagger:model ArtifactsItems0
func (*ArtifactsItems0) MarshalBinary ¶
func (o *ArtifactsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ArtifactsItems0) UnmarshalBinary ¶
func (o *ArtifactsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for artifacts API
func (*Client) ListArtifacts ¶
func (a *Client) ListArtifacts(params *ListArtifactsParams) (*ListArtifactsOK, error)
ListArtifacts lists artifacts returns a list of all backup artifacts
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { ListArtifacts(params *ListArtifactsParams) (*ListArtifactsOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new artifacts API client.
type DetailsItems0 ¶
type DetailsItems0 struct { // type url TypeURL string `json:"type_url,omitempty"` // value // Format: byte Value strfmt.Base64 `json:"value,omitempty"` }
DetailsItems0 details items0 swagger:model DetailsItems0
func (*DetailsItems0) MarshalBinary ¶
func (o *DetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DetailsItems0) UnmarshalBinary ¶
func (o *DetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListArtifactsDefault ¶
type ListArtifactsDefault struct { Payload *ListArtifactsDefaultBody // contains filtered or unexported fields }
ListArtifactsDefault handles this case with default header values.
An unexpected error response.
func NewListArtifactsDefault ¶
func NewListArtifactsDefault(code int) *ListArtifactsDefault
NewListArtifactsDefault creates a ListArtifactsDefault with default headers values
func (*ListArtifactsDefault) Code ¶
func (o *ListArtifactsDefault) Code() int
Code gets the status code for the list artifacts default response
func (*ListArtifactsDefault) Error ¶
func (o *ListArtifactsDefault) Error() string
func (*ListArtifactsDefault) GetPayload ¶
func (o *ListArtifactsDefault) GetPayload() *ListArtifactsDefaultBody
type ListArtifactsDefaultBody ¶
type ListArtifactsDefaultBody struct { // error Error string `json:"error,omitempty"` // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` // details Details []*DetailsItems0 `json:"details"` }
ListArtifactsDefaultBody list artifacts default body swagger:model ListArtifactsDefaultBody
func (*ListArtifactsDefaultBody) MarshalBinary ¶
func (o *ListArtifactsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListArtifactsDefaultBody) UnmarshalBinary ¶
func (o *ListArtifactsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListArtifactsOK ¶
type ListArtifactsOK struct {
Payload *ListArtifactsOKBody
}
ListArtifactsOK handles this case with default header values.
A successful response.
func NewListArtifactsOK ¶
func NewListArtifactsOK() *ListArtifactsOK
NewListArtifactsOK creates a ListArtifactsOK with default headers values
func (*ListArtifactsOK) Error ¶
func (o *ListArtifactsOK) Error() string
func (*ListArtifactsOK) GetPayload ¶
func (o *ListArtifactsOK) GetPayload() *ListArtifactsOKBody
type ListArtifactsOKBody ¶
type ListArtifactsOKBody struct { // artifacts Artifacts []*ArtifactsItems0 `json:"artifacts"` }
ListArtifactsOKBody list artifacts OK body swagger:model ListArtifactsOKBody
func (*ListArtifactsOKBody) MarshalBinary ¶
func (o *ListArtifactsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListArtifactsOKBody) UnmarshalBinary ¶
func (o *ListArtifactsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListArtifactsParams ¶
type ListArtifactsParams struct { /*Body*/ Body interface{} Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListArtifactsParams contains all the parameters to send to the API endpoint for the list artifacts operation typically these are written to a http.Request
func NewListArtifactsParams ¶
func NewListArtifactsParams() *ListArtifactsParams
NewListArtifactsParams creates a new ListArtifactsParams object with the default values initialized.
func NewListArtifactsParamsWithContext ¶
func NewListArtifactsParamsWithContext(ctx context.Context) *ListArtifactsParams
NewListArtifactsParamsWithContext creates a new ListArtifactsParams object with the default values initialized, and the ability to set a context for a request
func NewListArtifactsParamsWithHTTPClient ¶
func NewListArtifactsParamsWithHTTPClient(client *http.Client) *ListArtifactsParams
NewListArtifactsParamsWithHTTPClient creates a new ListArtifactsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListArtifactsParamsWithTimeout ¶
func NewListArtifactsParamsWithTimeout(timeout time.Duration) *ListArtifactsParams
NewListArtifactsParamsWithTimeout creates a new ListArtifactsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListArtifactsParams) SetBody ¶
func (o *ListArtifactsParams) SetBody(body interface{})
SetBody adds the body to the list artifacts params
func (*ListArtifactsParams) SetContext ¶
func (o *ListArtifactsParams) SetContext(ctx context.Context)
SetContext adds the context to the list artifacts params
func (*ListArtifactsParams) SetHTTPClient ¶
func (o *ListArtifactsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list artifacts params
func (*ListArtifactsParams) SetTimeout ¶
func (o *ListArtifactsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list artifacts params
func (*ListArtifactsParams) WithBody ¶
func (o *ListArtifactsParams) WithBody(body interface{}) *ListArtifactsParams
WithBody adds the body to the list artifacts params
func (*ListArtifactsParams) WithContext ¶
func (o *ListArtifactsParams) WithContext(ctx context.Context) *ListArtifactsParams
WithContext adds the context to the list artifacts params
func (*ListArtifactsParams) WithHTTPClient ¶
func (o *ListArtifactsParams) WithHTTPClient(client *http.Client) *ListArtifactsParams
WithHTTPClient adds the HTTPClient to the list artifacts params
func (*ListArtifactsParams) WithTimeout ¶
func (o *ListArtifactsParams) WithTimeout(timeout time.Duration) *ListArtifactsParams
WithTimeout adds the timeout to the list artifacts params
func (*ListArtifactsParams) WriteToRequest ¶
func (o *ListArtifactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListArtifactsReader ¶
type ListArtifactsReader struct {
// contains filtered or unexported fields
}
ListArtifactsReader is a Reader for the ListArtifacts structure.
func (*ListArtifactsReader) ReadResponse ¶
func (o *ListArtifactsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.