artifacts

package
v2.18.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: AGPL-3.0 Imports: 13 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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"
)
View Source
const (

	// ArtifactsItems0StatusBACKUPSTATUSINVALID captures enum value "BACKUP_STATUS_INVALID"
	ArtifactsItems0StatusBACKUPSTATUSINVALID string = "BACKUP_STATUS_INVALID"

	// ArtifactsItems0StatusBACKUPSTATUSPENDING captures enum value "BACKUP_STATUS_PENDING"
	ArtifactsItems0StatusBACKUPSTATUSPENDING string = "BACKUP_STATUS_PENDING"

	// ArtifactsItems0StatusBACKUPSTATUSINPROGRESS captures enum value "BACKUP_STATUS_IN_PROGRESS"
	ArtifactsItems0StatusBACKUPSTATUSINPROGRESS string = "BACKUP_STATUS_IN_PROGRESS"

	// ArtifactsItems0StatusBACKUPSTATUSPAUSED captures enum value "BACKUP_STATUS_PAUSED"
	ArtifactsItems0StatusBACKUPSTATUSPAUSED string = "BACKUP_STATUS_PAUSED"

	// ArtifactsItems0StatusBACKUPSTATUSSUCCESS captures enum value "BACKUP_STATUS_SUCCESS"
	ArtifactsItems0StatusBACKUPSTATUSSUCCESS string = "BACKUP_STATUS_SUCCESS"

	// ArtifactsItems0StatusBACKUPSTATUSERROR captures enum value "BACKUP_STATUS_ERROR"
	ArtifactsItems0StatusBACKUPSTATUSERROR string = "BACKUP_STATUS_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"`

	// BackupStatus shows the current status of execution of backup.
	// Enum: [BACKUP_STATUS_INVALID BACKUP_STATUS_PENDING BACKUP_STATUS_IN_PROGRESS BACKUP_STATUS_PAUSED BACKUP_STATUS_SUCCESS BACKUP_STATUS_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

func (*ArtifactsItems0) Validate

func (o *ArtifactsItems0) Validate(formats strfmt.Registry) error

Validate validates this artifacts items0

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

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

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

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

func (*ListArtifactsDefaultBody) Validate

func (o *ListArtifactsDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this list artifacts default body

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

func (*ListArtifactsOKBody) Validate

func (o *ListArtifactsOKBody) Validate(formats strfmt.Registry) error

Validate validates this list artifacts OK body

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL