locations

package
v2.16.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddLocationBody

type AddLocationBody struct {

	// Location name
	Name string `json:"name,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// pmm client config
	PMMClientConfig *AddLocationParamsBodyPMMClientConfig `json:"pmm_client_config,omitempty"`

	// pmm server config
	PMMServerConfig *AddLocationParamsBodyPMMServerConfig `json:"pmm_server_config,omitempty"`

	// s3 config
	S3Config *AddLocationParamsBodyS3Config `json:"s3_config,omitempty"`
}

AddLocationBody add location body swagger:model AddLocationBody

func (*AddLocationBody) MarshalBinary

func (o *AddLocationBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddLocationBody) UnmarshalBinary

func (o *AddLocationBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddLocationBody) Validate

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

Validate validates this add location body

type AddLocationDefault

type AddLocationDefault struct {
	Payload *AddLocationDefaultBody
	// contains filtered or unexported fields
}

AddLocationDefault handles this case with default header values.

An unexpected error response.

func NewAddLocationDefault

func NewAddLocationDefault(code int) *AddLocationDefault

NewAddLocationDefault creates a AddLocationDefault with default headers values

func (*AddLocationDefault) Code

func (o *AddLocationDefault) Code() int

Code gets the status code for the add location default response

func (*AddLocationDefault) Error

func (o *AddLocationDefault) Error() string

func (*AddLocationDefault) GetPayload

func (o *AddLocationDefault) GetPayload() *AddLocationDefaultBody

type AddLocationDefaultBody

type AddLocationDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddLocationDefaultBody add location default body swagger:model AddLocationDefaultBody

func (*AddLocationDefaultBody) MarshalBinary

func (o *AddLocationDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddLocationDefaultBody) UnmarshalBinary

func (o *AddLocationDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddLocationDefaultBody) Validate

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

Validate validates this add location default body

type AddLocationOK

type AddLocationOK struct {
	Payload *AddLocationOKBody
}

AddLocationOK handles this case with default header values.

A successful response.

func NewAddLocationOK

func NewAddLocationOK() *AddLocationOK

NewAddLocationOK creates a AddLocationOK with default headers values

func (*AddLocationOK) Error

func (o *AddLocationOK) Error() string

func (*AddLocationOK) GetPayload

func (o *AddLocationOK) GetPayload() *AddLocationOKBody

type AddLocationOKBody

type AddLocationOKBody struct {

	// Machine-readable ID.
	LocationID string `json:"location_id,omitempty"`
}

AddLocationOKBody add location OK body swagger:model AddLocationOKBody

func (*AddLocationOKBody) MarshalBinary

func (o *AddLocationOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddLocationOKBody) UnmarshalBinary

func (o *AddLocationOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddLocationOKBody) Validate

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

Validate validates this add location OK body

type AddLocationParams

type AddLocationParams struct {

	/*Body*/
	Body AddLocationBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddLocationParams contains all the parameters to send to the API endpoint for the add location operation typically these are written to a http.Request

func NewAddLocationParams

func NewAddLocationParams() *AddLocationParams

NewAddLocationParams creates a new AddLocationParams object with the default values initialized.

func NewAddLocationParamsWithContext

func NewAddLocationParamsWithContext(ctx context.Context) *AddLocationParams

NewAddLocationParamsWithContext creates a new AddLocationParams object with the default values initialized, and the ability to set a context for a request

func NewAddLocationParamsWithHTTPClient

func NewAddLocationParamsWithHTTPClient(client *http.Client) *AddLocationParams

NewAddLocationParamsWithHTTPClient creates a new AddLocationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddLocationParamsWithTimeout

func NewAddLocationParamsWithTimeout(timeout time.Duration) *AddLocationParams

NewAddLocationParamsWithTimeout creates a new AddLocationParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddLocationParams) SetBody

func (o *AddLocationParams) SetBody(body AddLocationBody)

SetBody adds the body to the add location params

func (*AddLocationParams) SetContext

func (o *AddLocationParams) SetContext(ctx context.Context)

SetContext adds the context to the add location params

func (*AddLocationParams) SetHTTPClient

func (o *AddLocationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add location params

func (*AddLocationParams) SetTimeout

func (o *AddLocationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add location params

func (*AddLocationParams) WithBody

WithBody adds the body to the add location params

func (*AddLocationParams) WithContext

func (o *AddLocationParams) WithContext(ctx context.Context) *AddLocationParams

WithContext adds the context to the add location params

func (*AddLocationParams) WithHTTPClient

func (o *AddLocationParams) WithHTTPClient(client *http.Client) *AddLocationParams

WithHTTPClient adds the HTTPClient to the add location params

func (*AddLocationParams) WithTimeout

func (o *AddLocationParams) WithTimeout(timeout time.Duration) *AddLocationParams

WithTimeout adds the timeout to the add location params

func (*AddLocationParams) WriteToRequest

func (o *AddLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddLocationParamsBodyPMMClientConfig

type AddLocationParamsBodyPMMClientConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

AddLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model AddLocationParamsBodyPMMClientConfig

func (*AddLocationParamsBodyPMMClientConfig) MarshalBinary

func (o *AddLocationParamsBodyPMMClientConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddLocationParamsBodyPMMClientConfig) UnmarshalBinary

func (o *AddLocationParamsBodyPMMClientConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddLocationParamsBodyPMMClientConfig) Validate

Validate validates this add location params body PMM client config

type AddLocationParamsBodyPMMServerConfig

type AddLocationParamsBodyPMMServerConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

AddLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model AddLocationParamsBodyPMMServerConfig

func (*AddLocationParamsBodyPMMServerConfig) MarshalBinary

func (o *AddLocationParamsBodyPMMServerConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddLocationParamsBodyPMMServerConfig) UnmarshalBinary

func (o *AddLocationParamsBodyPMMServerConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddLocationParamsBodyPMMServerConfig) Validate

Validate validates this add location params body PMM server config

type AddLocationParamsBodyS3Config

type AddLocationParamsBodyS3Config struct {

	// endpoint
	Endpoint string `json:"endpoint,omitempty"`

	// access key
	AccessKey string `json:"access_key,omitempty"`

	// secret key
	SecretKey string `json:"secret_key,omitempty"`

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`
}

AddLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. swagger:model AddLocationParamsBodyS3Config

func (*AddLocationParamsBodyS3Config) MarshalBinary

func (o *AddLocationParamsBodyS3Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddLocationParamsBodyS3Config) UnmarshalBinary

func (o *AddLocationParamsBodyS3Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddLocationParamsBodyS3Config) Validate

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

Validate validates this add location params body s3 config

type AddLocationReader

type AddLocationReader struct {
	// contains filtered or unexported fields
}

AddLocationReader is a Reader for the AddLocation structure.

func (*AddLocationReader) ReadResponse

func (o *AddLocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ChangeLocationBody

type ChangeLocationBody struct {

	// Machine-readable ID.
	LocationID string `json:"location_id,omitempty"`

	// Location name
	Name string `json:"name,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// pmm client config
	PMMClientConfig *ChangeLocationParamsBodyPMMClientConfig `json:"pmm_client_config,omitempty"`

	// pmm server config
	PMMServerConfig *ChangeLocationParamsBodyPMMServerConfig `json:"pmm_server_config,omitempty"`

	// s3 config
	S3Config *ChangeLocationParamsBodyS3Config `json:"s3_config,omitempty"`
}

ChangeLocationBody change location body swagger:model ChangeLocationBody

func (*ChangeLocationBody) MarshalBinary

func (o *ChangeLocationBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeLocationBody) UnmarshalBinary

func (o *ChangeLocationBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeLocationBody) Validate

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

Validate validates this change location body

type ChangeLocationDefault

type ChangeLocationDefault struct {
	Payload *ChangeLocationDefaultBody
	// contains filtered or unexported fields
}

ChangeLocationDefault handles this case with default header values.

An unexpected error response.

func NewChangeLocationDefault

func NewChangeLocationDefault(code int) *ChangeLocationDefault

NewChangeLocationDefault creates a ChangeLocationDefault with default headers values

func (*ChangeLocationDefault) Code

func (o *ChangeLocationDefault) Code() int

Code gets the status code for the change location default response

func (*ChangeLocationDefault) Error

func (o *ChangeLocationDefault) Error() string

func (*ChangeLocationDefault) GetPayload

type ChangeLocationDefaultBody

type ChangeLocationDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ChangeLocationDefaultBody change location default body swagger:model ChangeLocationDefaultBody

func (*ChangeLocationDefaultBody) MarshalBinary

func (o *ChangeLocationDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeLocationDefaultBody) UnmarshalBinary

func (o *ChangeLocationDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeLocationDefaultBody) Validate

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

Validate validates this change location default body

type ChangeLocationOK

type ChangeLocationOK struct {
	Payload interface{}
}

ChangeLocationOK handles this case with default header values.

A successful response.

func NewChangeLocationOK

func NewChangeLocationOK() *ChangeLocationOK

NewChangeLocationOK creates a ChangeLocationOK with default headers values

func (*ChangeLocationOK) Error

func (o *ChangeLocationOK) Error() string

func (*ChangeLocationOK) GetPayload

func (o *ChangeLocationOK) GetPayload() interface{}

type ChangeLocationParams

type ChangeLocationParams struct {

	/*Body*/
	Body ChangeLocationBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ChangeLocationParams contains all the parameters to send to the API endpoint for the change location operation typically these are written to a http.Request

func NewChangeLocationParams

func NewChangeLocationParams() *ChangeLocationParams

NewChangeLocationParams creates a new ChangeLocationParams object with the default values initialized.

func NewChangeLocationParamsWithContext

func NewChangeLocationParamsWithContext(ctx context.Context) *ChangeLocationParams

NewChangeLocationParamsWithContext creates a new ChangeLocationParams object with the default values initialized, and the ability to set a context for a request

func NewChangeLocationParamsWithHTTPClient

func NewChangeLocationParamsWithHTTPClient(client *http.Client) *ChangeLocationParams

NewChangeLocationParamsWithHTTPClient creates a new ChangeLocationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewChangeLocationParamsWithTimeout

func NewChangeLocationParamsWithTimeout(timeout time.Duration) *ChangeLocationParams

NewChangeLocationParamsWithTimeout creates a new ChangeLocationParams object with the default values initialized, and the ability to set a timeout on a request

func (*ChangeLocationParams) SetBody

func (o *ChangeLocationParams) SetBody(body ChangeLocationBody)

SetBody adds the body to the change location params

func (*ChangeLocationParams) SetContext

func (o *ChangeLocationParams) SetContext(ctx context.Context)

SetContext adds the context to the change location params

func (*ChangeLocationParams) SetHTTPClient

func (o *ChangeLocationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the change location params

func (*ChangeLocationParams) SetTimeout

func (o *ChangeLocationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the change location params

func (*ChangeLocationParams) WithBody

WithBody adds the body to the change location params

func (*ChangeLocationParams) WithContext

WithContext adds the context to the change location params

func (*ChangeLocationParams) WithHTTPClient

func (o *ChangeLocationParams) WithHTTPClient(client *http.Client) *ChangeLocationParams

WithHTTPClient adds the HTTPClient to the change location params

func (*ChangeLocationParams) WithTimeout

func (o *ChangeLocationParams) WithTimeout(timeout time.Duration) *ChangeLocationParams

WithTimeout adds the timeout to the change location params

func (*ChangeLocationParams) WriteToRequest

func (o *ChangeLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ChangeLocationParamsBodyPMMClientConfig

type ChangeLocationParamsBodyPMMClientConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

ChangeLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model ChangeLocationParamsBodyPMMClientConfig

func (*ChangeLocationParamsBodyPMMClientConfig) MarshalBinary

func (o *ChangeLocationParamsBodyPMMClientConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeLocationParamsBodyPMMClientConfig) UnmarshalBinary

func (o *ChangeLocationParamsBodyPMMClientConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeLocationParamsBodyPMMClientConfig) Validate

Validate validates this change location params body PMM client config

type ChangeLocationParamsBodyPMMServerConfig

type ChangeLocationParamsBodyPMMServerConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

ChangeLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model ChangeLocationParamsBodyPMMServerConfig

func (*ChangeLocationParamsBodyPMMServerConfig) MarshalBinary

func (o *ChangeLocationParamsBodyPMMServerConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeLocationParamsBodyPMMServerConfig) UnmarshalBinary

func (o *ChangeLocationParamsBodyPMMServerConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeLocationParamsBodyPMMServerConfig) Validate

Validate validates this change location params body PMM server config

type ChangeLocationParamsBodyS3Config

type ChangeLocationParamsBodyS3Config struct {

	// endpoint
	Endpoint string `json:"endpoint,omitempty"`

	// access key
	AccessKey string `json:"access_key,omitempty"`

	// secret key
	SecretKey string `json:"secret_key,omitempty"`

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`
}

ChangeLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. swagger:model ChangeLocationParamsBodyS3Config

func (*ChangeLocationParamsBodyS3Config) MarshalBinary

func (o *ChangeLocationParamsBodyS3Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeLocationParamsBodyS3Config) UnmarshalBinary

func (o *ChangeLocationParamsBodyS3Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeLocationParamsBodyS3Config) Validate

Validate validates this change location params body s3 config

type ChangeLocationReader

type ChangeLocationReader struct {
	// contains filtered or unexported fields
}

ChangeLocationReader is a Reader for the ChangeLocation structure.

func (*ChangeLocationReader) ReadResponse

func (o *ChangeLocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for locations API

func (*Client) AddLocation

func (a *Client) AddLocation(params *AddLocationParams) (*AddLocationOK, error)

AddLocation adds location adds backup location

func (*Client) ChangeLocation

func (a *Client) ChangeLocation(params *ChangeLocationParams) (*ChangeLocationOK, error)

ChangeLocation changes location changes backup location

func (*Client) ListLocations

func (a *Client) ListLocations(params *ListLocationsParams) (*ListLocationsOK, error)

ListLocations lists locations returns a list of all backup locations

func (*Client) RemoveLocation

func (a *Client) RemoveLocation(params *RemoveLocationParams) (*RemoveLocationOK, error)

RemoveLocation removes location removes existing backup location

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) TestLocationConfig

func (a *Client) TestLocationConfig(params *TestLocationConfigParams) (*TestLocationConfigOK, error)

TestLocationConfig tests location config tests backup location and credentials

type ClientService

type ClientService interface {
	AddLocation(params *AddLocationParams) (*AddLocationOK, error)

	ChangeLocation(params *ChangeLocationParams) (*ChangeLocationOK, error)

	ListLocations(params *ListLocationsParams) (*ListLocationsOK, error)

	RemoveLocation(params *RemoveLocationParams) (*RemoveLocationOK, error)

	TestLocationConfig(params *TestLocationConfigParams) (*TestLocationConfigOK, 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 locations 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 ListLocationsDefault

type ListLocationsDefault struct {
	Payload *ListLocationsDefaultBody
	// contains filtered or unexported fields
}

ListLocationsDefault handles this case with default header values.

An unexpected error response.

func NewListLocationsDefault

func NewListLocationsDefault(code int) *ListLocationsDefault

NewListLocationsDefault creates a ListLocationsDefault with default headers values

func (*ListLocationsDefault) Code

func (o *ListLocationsDefault) Code() int

Code gets the status code for the list locations default response

func (*ListLocationsDefault) Error

func (o *ListLocationsDefault) Error() string

func (*ListLocationsDefault) GetPayload

type ListLocationsDefaultBody

type ListLocationsDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ListLocationsDefaultBody list locations default body swagger:model ListLocationsDefaultBody

func (*ListLocationsDefaultBody) MarshalBinary

func (o *ListLocationsDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListLocationsDefaultBody) UnmarshalBinary

func (o *ListLocationsDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListLocationsDefaultBody) Validate

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

Validate validates this list locations default body

type ListLocationsOK

type ListLocationsOK struct {
	Payload *ListLocationsOKBody
}

ListLocationsOK handles this case with default header values.

A successful response.

func NewListLocationsOK

func NewListLocationsOK() *ListLocationsOK

NewListLocationsOK creates a ListLocationsOK with default headers values

func (*ListLocationsOK) Error

func (o *ListLocationsOK) Error() string

func (*ListLocationsOK) GetPayload

func (o *ListLocationsOK) GetPayload() *ListLocationsOKBody

type ListLocationsOKBody

type ListLocationsOKBody struct {

	// locations
	Locations []*LocationsItems0 `json:"locations"`
}

ListLocationsOKBody list locations OK body swagger:model ListLocationsOKBody

func (*ListLocationsOKBody) MarshalBinary

func (o *ListLocationsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListLocationsOKBody) UnmarshalBinary

func (o *ListLocationsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListLocationsOKBody) Validate

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

Validate validates this list locations OK body

type ListLocationsParams

type ListLocationsParams struct {

	/*Body*/
	Body interface{}

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListLocationsParams contains all the parameters to send to the API endpoint for the list locations operation typically these are written to a http.Request

func NewListLocationsParams

func NewListLocationsParams() *ListLocationsParams

NewListLocationsParams creates a new ListLocationsParams object with the default values initialized.

func NewListLocationsParamsWithContext

func NewListLocationsParamsWithContext(ctx context.Context) *ListLocationsParams

NewListLocationsParamsWithContext creates a new ListLocationsParams object with the default values initialized, and the ability to set a context for a request

func NewListLocationsParamsWithHTTPClient

func NewListLocationsParamsWithHTTPClient(client *http.Client) *ListLocationsParams

NewListLocationsParamsWithHTTPClient creates a new ListLocationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListLocationsParamsWithTimeout

func NewListLocationsParamsWithTimeout(timeout time.Duration) *ListLocationsParams

NewListLocationsParamsWithTimeout creates a new ListLocationsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListLocationsParams) SetBody

func (o *ListLocationsParams) SetBody(body interface{})

SetBody adds the body to the list locations params

func (*ListLocationsParams) SetContext

func (o *ListLocationsParams) SetContext(ctx context.Context)

SetContext adds the context to the list locations params

func (*ListLocationsParams) SetHTTPClient

func (o *ListLocationsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list locations params

func (*ListLocationsParams) SetTimeout

func (o *ListLocationsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list locations params

func (*ListLocationsParams) WithBody

func (o *ListLocationsParams) WithBody(body interface{}) *ListLocationsParams

WithBody adds the body to the list locations params

func (*ListLocationsParams) WithContext

WithContext adds the context to the list locations params

func (*ListLocationsParams) WithHTTPClient

func (o *ListLocationsParams) WithHTTPClient(client *http.Client) *ListLocationsParams

WithHTTPClient adds the HTTPClient to the list locations params

func (*ListLocationsParams) WithTimeout

func (o *ListLocationsParams) WithTimeout(timeout time.Duration) *ListLocationsParams

WithTimeout adds the timeout to the list locations params

func (*ListLocationsParams) WriteToRequest

func (o *ListLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListLocationsReader

type ListLocationsReader struct {
	// contains filtered or unexported fields
}

ListLocationsReader is a Reader for the ListLocations structure.

func (*ListLocationsReader) ReadResponse

func (o *ListLocationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type LocationsItems0

type LocationsItems0 struct {

	// Machine-readable ID.
	LocationID string `json:"location_id,omitempty"`

	// Location name
	Name string `json:"name,omitempty"`

	// Short description
	Description string `json:"description,omitempty"`

	// pmm client config
	PMMClientConfig *LocationsItems0PMMClientConfig `json:"pmm_client_config,omitempty"`

	// pmm server config
	PMMServerConfig *LocationsItems0PMMServerConfig `json:"pmm_server_config,omitempty"`

	// s3 config
	S3Config *LocationsItems0S3Config `json:"s3_config,omitempty"`
}

LocationsItems0 Location represents single Backup Location. swagger:model LocationsItems0

func (*LocationsItems0) MarshalBinary

func (o *LocationsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocationsItems0) UnmarshalBinary

func (o *LocationsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocationsItems0) Validate

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

Validate validates this locations items0

type LocationsItems0PMMClientConfig

type LocationsItems0PMMClientConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

LocationsItems0PMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model LocationsItems0PMMClientConfig

func (*LocationsItems0PMMClientConfig) MarshalBinary

func (o *LocationsItems0PMMClientConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocationsItems0PMMClientConfig) UnmarshalBinary

func (o *LocationsItems0PMMClientConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocationsItems0PMMClientConfig) Validate

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

Validate validates this locations items0 PMM client config

type LocationsItems0PMMServerConfig

type LocationsItems0PMMServerConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

LocationsItems0PMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model LocationsItems0PMMServerConfig

func (*LocationsItems0PMMServerConfig) MarshalBinary

func (o *LocationsItems0PMMServerConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocationsItems0PMMServerConfig) UnmarshalBinary

func (o *LocationsItems0PMMServerConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocationsItems0PMMServerConfig) Validate

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

Validate validates this locations items0 PMM server config

type LocationsItems0S3Config

type LocationsItems0S3Config struct {

	// endpoint
	Endpoint string `json:"endpoint,omitempty"`

	// access key
	AccessKey string `json:"access_key,omitempty"`

	// secret key
	SecretKey string `json:"secret_key,omitempty"`

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`
}

LocationsItems0S3Config S3LocationConfig represents S3 bucket configuration. swagger:model LocationsItems0S3Config

func (*LocationsItems0S3Config) MarshalBinary

func (o *LocationsItems0S3Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocationsItems0S3Config) UnmarshalBinary

func (o *LocationsItems0S3Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocationsItems0S3Config) Validate

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

Validate validates this locations items0 s3 config

type RemoveLocationBody

type RemoveLocationBody struct {

	// Machine-readable ID.
	LocationID string `json:"location_id,omitempty"`

	// Force mode
	Force bool `json:"force,omitempty"`
}

RemoveLocationBody remove location body swagger:model RemoveLocationBody

func (*RemoveLocationBody) MarshalBinary

func (o *RemoveLocationBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoveLocationBody) UnmarshalBinary

func (o *RemoveLocationBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoveLocationBody) Validate

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

Validate validates this remove location body

type RemoveLocationDefault

type RemoveLocationDefault struct {
	Payload *RemoveLocationDefaultBody
	// contains filtered or unexported fields
}

RemoveLocationDefault handles this case with default header values.

An unexpected error response.

func NewRemoveLocationDefault

func NewRemoveLocationDefault(code int) *RemoveLocationDefault

NewRemoveLocationDefault creates a RemoveLocationDefault with default headers values

func (*RemoveLocationDefault) Code

func (o *RemoveLocationDefault) Code() int

Code gets the status code for the remove location default response

func (*RemoveLocationDefault) Error

func (o *RemoveLocationDefault) Error() string

func (*RemoveLocationDefault) GetPayload

type RemoveLocationDefaultBody

type RemoveLocationDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

RemoveLocationDefaultBody remove location default body swagger:model RemoveLocationDefaultBody

func (*RemoveLocationDefaultBody) MarshalBinary

func (o *RemoveLocationDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoveLocationDefaultBody) UnmarshalBinary

func (o *RemoveLocationDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoveLocationDefaultBody) Validate

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

Validate validates this remove location default body

type RemoveLocationOK

type RemoveLocationOK struct {
	Payload interface{}
}

RemoveLocationOK handles this case with default header values.

A successful response.

func NewRemoveLocationOK

func NewRemoveLocationOK() *RemoveLocationOK

NewRemoveLocationOK creates a RemoveLocationOK with default headers values

func (*RemoveLocationOK) Error

func (o *RemoveLocationOK) Error() string

func (*RemoveLocationOK) GetPayload

func (o *RemoveLocationOK) GetPayload() interface{}

type RemoveLocationParams

type RemoveLocationParams struct {

	/*Body*/
	Body RemoveLocationBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RemoveLocationParams contains all the parameters to send to the API endpoint for the remove location operation typically these are written to a http.Request

func NewRemoveLocationParams

func NewRemoveLocationParams() *RemoveLocationParams

NewRemoveLocationParams creates a new RemoveLocationParams object with the default values initialized.

func NewRemoveLocationParamsWithContext

func NewRemoveLocationParamsWithContext(ctx context.Context) *RemoveLocationParams

NewRemoveLocationParamsWithContext creates a new RemoveLocationParams object with the default values initialized, and the ability to set a context for a request

func NewRemoveLocationParamsWithHTTPClient

func NewRemoveLocationParamsWithHTTPClient(client *http.Client) *RemoveLocationParams

NewRemoveLocationParamsWithHTTPClient creates a new RemoveLocationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRemoveLocationParamsWithTimeout

func NewRemoveLocationParamsWithTimeout(timeout time.Duration) *RemoveLocationParams

NewRemoveLocationParamsWithTimeout creates a new RemoveLocationParams object with the default values initialized, and the ability to set a timeout on a request

func (*RemoveLocationParams) SetBody

func (o *RemoveLocationParams) SetBody(body RemoveLocationBody)

SetBody adds the body to the remove location params

func (*RemoveLocationParams) SetContext

func (o *RemoveLocationParams) SetContext(ctx context.Context)

SetContext adds the context to the remove location params

func (*RemoveLocationParams) SetHTTPClient

func (o *RemoveLocationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the remove location params

func (*RemoveLocationParams) SetTimeout

func (o *RemoveLocationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the remove location params

func (*RemoveLocationParams) WithBody

WithBody adds the body to the remove location params

func (*RemoveLocationParams) WithContext

WithContext adds the context to the remove location params

func (*RemoveLocationParams) WithHTTPClient

func (o *RemoveLocationParams) WithHTTPClient(client *http.Client) *RemoveLocationParams

WithHTTPClient adds the HTTPClient to the remove location params

func (*RemoveLocationParams) WithTimeout

func (o *RemoveLocationParams) WithTimeout(timeout time.Duration) *RemoveLocationParams

WithTimeout adds the timeout to the remove location params

func (*RemoveLocationParams) WriteToRequest

func (o *RemoveLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RemoveLocationReader

type RemoveLocationReader struct {
	// contains filtered or unexported fields
}

RemoveLocationReader is a Reader for the RemoveLocation structure.

func (*RemoveLocationReader) ReadResponse

func (o *RemoveLocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type TestLocationConfigBody

type TestLocationConfigBody struct {

	// pmm client config
	PMMClientConfig *TestLocationConfigParamsBodyPMMClientConfig `json:"pmm_client_config,omitempty"`

	// pmm server config
	PMMServerConfig *TestLocationConfigParamsBodyPMMServerConfig `json:"pmm_server_config,omitempty"`

	// s3 config
	S3Config *TestLocationConfigParamsBodyS3Config `json:"s3_config,omitempty"`
}

TestLocationConfigBody test location config body swagger:model TestLocationConfigBody

func (*TestLocationConfigBody) MarshalBinary

func (o *TestLocationConfigBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestLocationConfigBody) UnmarshalBinary

func (o *TestLocationConfigBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestLocationConfigBody) Validate

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

Validate validates this test location config body

type TestLocationConfigDefault

type TestLocationConfigDefault struct {
	Payload *TestLocationConfigDefaultBody
	// contains filtered or unexported fields
}

TestLocationConfigDefault handles this case with default header values.

An unexpected error response.

func NewTestLocationConfigDefault

func NewTestLocationConfigDefault(code int) *TestLocationConfigDefault

NewTestLocationConfigDefault creates a TestLocationConfigDefault with default headers values

func (*TestLocationConfigDefault) Code

func (o *TestLocationConfigDefault) Code() int

Code gets the status code for the test location config default response

func (*TestLocationConfigDefault) Error

func (o *TestLocationConfigDefault) Error() string

func (*TestLocationConfigDefault) GetPayload

type TestLocationConfigDefaultBody

type TestLocationConfigDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

TestLocationConfigDefaultBody test location config default body swagger:model TestLocationConfigDefaultBody

func (*TestLocationConfigDefaultBody) MarshalBinary

func (o *TestLocationConfigDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestLocationConfigDefaultBody) UnmarshalBinary

func (o *TestLocationConfigDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestLocationConfigDefaultBody) Validate

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

Validate validates this test location config default body

type TestLocationConfigOK

type TestLocationConfigOK struct {
	Payload interface{}
}

TestLocationConfigOK handles this case with default header values.

A successful response.

func NewTestLocationConfigOK

func NewTestLocationConfigOK() *TestLocationConfigOK

NewTestLocationConfigOK creates a TestLocationConfigOK with default headers values

func (*TestLocationConfigOK) Error

func (o *TestLocationConfigOK) Error() string

func (*TestLocationConfigOK) GetPayload

func (o *TestLocationConfigOK) GetPayload() interface{}

type TestLocationConfigParams

type TestLocationConfigParams struct {

	/*Body*/
	Body TestLocationConfigBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

TestLocationConfigParams contains all the parameters to send to the API endpoint for the test location config operation typically these are written to a http.Request

func NewTestLocationConfigParams

func NewTestLocationConfigParams() *TestLocationConfigParams

NewTestLocationConfigParams creates a new TestLocationConfigParams object with the default values initialized.

func NewTestLocationConfigParamsWithContext

func NewTestLocationConfigParamsWithContext(ctx context.Context) *TestLocationConfigParams

NewTestLocationConfigParamsWithContext creates a new TestLocationConfigParams object with the default values initialized, and the ability to set a context for a request

func NewTestLocationConfigParamsWithHTTPClient

func NewTestLocationConfigParamsWithHTTPClient(client *http.Client) *TestLocationConfigParams

NewTestLocationConfigParamsWithHTTPClient creates a new TestLocationConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTestLocationConfigParamsWithTimeout

func NewTestLocationConfigParamsWithTimeout(timeout time.Duration) *TestLocationConfigParams

NewTestLocationConfigParamsWithTimeout creates a new TestLocationConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*TestLocationConfigParams) SetBody

SetBody adds the body to the test location config params

func (*TestLocationConfigParams) SetContext

func (o *TestLocationConfigParams) SetContext(ctx context.Context)

SetContext adds the context to the test location config params

func (*TestLocationConfigParams) SetHTTPClient

func (o *TestLocationConfigParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the test location config params

func (*TestLocationConfigParams) SetTimeout

func (o *TestLocationConfigParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the test location config params

func (*TestLocationConfigParams) WithBody

WithBody adds the body to the test location config params

func (*TestLocationConfigParams) WithContext

WithContext adds the context to the test location config params

func (*TestLocationConfigParams) WithHTTPClient

func (o *TestLocationConfigParams) WithHTTPClient(client *http.Client) *TestLocationConfigParams

WithHTTPClient adds the HTTPClient to the test location config params

func (*TestLocationConfigParams) WithTimeout

WithTimeout adds the timeout to the test location config params

func (*TestLocationConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TestLocationConfigParamsBodyPMMClientConfig

type TestLocationConfigParamsBodyPMMClientConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

TestLocationConfigParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model TestLocationConfigParamsBodyPMMClientConfig

func (*TestLocationConfigParamsBodyPMMClientConfig) MarshalBinary

func (o *TestLocationConfigParamsBodyPMMClientConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestLocationConfigParamsBodyPMMClientConfig) UnmarshalBinary

func (o *TestLocationConfigParamsBodyPMMClientConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestLocationConfigParamsBodyPMMClientConfig) Validate

Validate validates this test location config params body PMM client config

type TestLocationConfigParamsBodyPMMServerConfig

type TestLocationConfigParamsBodyPMMServerConfig struct {

	// path
	Path string `json:"path,omitempty"`
}

TestLocationConfigParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model TestLocationConfigParamsBodyPMMServerConfig

func (*TestLocationConfigParamsBodyPMMServerConfig) MarshalBinary

func (o *TestLocationConfigParamsBodyPMMServerConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestLocationConfigParamsBodyPMMServerConfig) UnmarshalBinary

func (o *TestLocationConfigParamsBodyPMMServerConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestLocationConfigParamsBodyPMMServerConfig) Validate

Validate validates this test location config params body PMM server config

type TestLocationConfigParamsBodyS3Config

type TestLocationConfigParamsBodyS3Config struct {

	// endpoint
	Endpoint string `json:"endpoint,omitempty"`

	// access key
	AccessKey string `json:"access_key,omitempty"`

	// secret key
	SecretKey string `json:"secret_key,omitempty"`

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`
}

TestLocationConfigParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. swagger:model TestLocationConfigParamsBodyS3Config

func (*TestLocationConfigParamsBodyS3Config) MarshalBinary

func (o *TestLocationConfigParamsBodyS3Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestLocationConfigParamsBodyS3Config) UnmarshalBinary

func (o *TestLocationConfigParamsBodyS3Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestLocationConfigParamsBodyS3Config) Validate

Validate validates this test location config params body s3 config

type TestLocationConfigReader

type TestLocationConfigReader struct {
	// contains filtered or unexported fields
}

TestLocationConfigReader is a Reader for the TestLocationConfig structure.

func (*TestLocationConfigReader) ReadResponse

func (o *TestLocationConfigReader) 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