peer

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 peer API

func (*Client) CreatePeer

CreatePeer adds a peer

Adds a new peer to the configuration file.

func (*Client) DeletePeer

DeletePeer deletes a peer

Deletes a peer from the configuration by it's name.

func (*Client) GetPeerSection

func (a *Client) GetPeerSection(params *GetPeerSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerSectionOK, error)

GetPeerSection returns a peer

Returns one peer configuration by it's name.

func (*Client) GetPeerSections

func (a *Client) GetPeerSections(params *GetPeerSectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerSectionsOK, error)

GetPeerSections returns an array of peer section

Returns an array of all configured peer_section.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreatePeer(params *CreatePeerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePeerCreated, *CreatePeerAccepted, error)

	DeletePeer(params *DeletePeerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePeerAccepted, *DeletePeerNoContent, error)

	GetPeerSection(params *GetPeerSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerSectionOK, error)

	GetPeerSections(params *GetPeerSectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerSectionsOK, 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 peer API client.

type CreatePeerAccepted

type CreatePeerAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.PeerSection
}

CreatePeerAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreatePeerAccepted

func NewCreatePeerAccepted() *CreatePeerAccepted

NewCreatePeerAccepted creates a CreatePeerAccepted with default headers values

func (*CreatePeerAccepted) Code added in v1.1.5

func (o *CreatePeerAccepted) Code() int

Code gets the status code for the create peer accepted response

func (*CreatePeerAccepted) Error

func (o *CreatePeerAccepted) Error() string

func (*CreatePeerAccepted) GetPayload

func (o *CreatePeerAccepted) GetPayload() *models.PeerSection

func (*CreatePeerAccepted) IsClientError added in v1.1.0

func (o *CreatePeerAccepted) IsClientError() bool

IsClientError returns true when this create peer accepted response has a 4xx status code

func (*CreatePeerAccepted) IsCode added in v1.1.0

func (o *CreatePeerAccepted) IsCode(code int) bool

IsCode returns true when this create peer accepted response a status code equal to that given

func (*CreatePeerAccepted) IsRedirect added in v1.1.0

func (o *CreatePeerAccepted) IsRedirect() bool

IsRedirect returns true when this create peer accepted response has a 3xx status code

func (*CreatePeerAccepted) IsServerError added in v1.1.0

func (o *CreatePeerAccepted) IsServerError() bool

IsServerError returns true when this create peer accepted response has a 5xx status code

func (*CreatePeerAccepted) IsSuccess added in v1.1.0

func (o *CreatePeerAccepted) IsSuccess() bool

IsSuccess returns true when this create peer accepted response has a 2xx status code

func (*CreatePeerAccepted) String added in v1.1.0

func (o *CreatePeerAccepted) String() string

type CreatePeerBadRequest

type CreatePeerBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreatePeerBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreatePeerBadRequest

func NewCreatePeerBadRequest() *CreatePeerBadRequest

NewCreatePeerBadRequest creates a CreatePeerBadRequest with default headers values

func (*CreatePeerBadRequest) Code added in v1.1.5

func (o *CreatePeerBadRequest) Code() int

Code gets the status code for the create peer bad request response

func (*CreatePeerBadRequest) Error

func (o *CreatePeerBadRequest) Error() string

func (*CreatePeerBadRequest) GetPayload

func (o *CreatePeerBadRequest) GetPayload() *models.Error

func (*CreatePeerBadRequest) IsClientError added in v1.1.0

func (o *CreatePeerBadRequest) IsClientError() bool

IsClientError returns true when this create peer bad request response has a 4xx status code

func (*CreatePeerBadRequest) IsCode added in v1.1.0

func (o *CreatePeerBadRequest) IsCode(code int) bool

IsCode returns true when this create peer bad request response a status code equal to that given

func (*CreatePeerBadRequest) IsRedirect added in v1.1.0

func (o *CreatePeerBadRequest) IsRedirect() bool

IsRedirect returns true when this create peer bad request response has a 3xx status code

func (*CreatePeerBadRequest) IsServerError added in v1.1.0

func (o *CreatePeerBadRequest) IsServerError() bool

IsServerError returns true when this create peer bad request response has a 5xx status code

func (*CreatePeerBadRequest) IsSuccess added in v1.1.0

func (o *CreatePeerBadRequest) IsSuccess() bool

IsSuccess returns true when this create peer bad request response has a 2xx status code

func (*CreatePeerBadRequest) String added in v1.1.0

func (o *CreatePeerBadRequest) String() string

type CreatePeerConflict

type CreatePeerConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreatePeerConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreatePeerConflict

func NewCreatePeerConflict() *CreatePeerConflict

NewCreatePeerConflict creates a CreatePeerConflict with default headers values

func (*CreatePeerConflict) Code added in v1.1.5

func (o *CreatePeerConflict) Code() int

Code gets the status code for the create peer conflict response

func (*CreatePeerConflict) Error

func (o *CreatePeerConflict) Error() string

func (*CreatePeerConflict) GetPayload

func (o *CreatePeerConflict) GetPayload() *models.Error

func (*CreatePeerConflict) IsClientError added in v1.1.0

func (o *CreatePeerConflict) IsClientError() bool

IsClientError returns true when this create peer conflict response has a 4xx status code

func (*CreatePeerConflict) IsCode added in v1.1.0

func (o *CreatePeerConflict) IsCode(code int) bool

IsCode returns true when this create peer conflict response a status code equal to that given

func (*CreatePeerConflict) IsRedirect added in v1.1.0

func (o *CreatePeerConflict) IsRedirect() bool

IsRedirect returns true when this create peer conflict response has a 3xx status code

func (*CreatePeerConflict) IsServerError added in v1.1.0

func (o *CreatePeerConflict) IsServerError() bool

IsServerError returns true when this create peer conflict response has a 5xx status code

func (*CreatePeerConflict) IsSuccess added in v1.1.0

func (o *CreatePeerConflict) IsSuccess() bool

IsSuccess returns true when this create peer conflict response has a 2xx status code

func (*CreatePeerConflict) String added in v1.1.0

func (o *CreatePeerConflict) String() string

type CreatePeerCreated

type CreatePeerCreated struct {
	Payload *models.PeerSection
}

CreatePeerCreated describes a response with status code 201, with default header values.

Peer created

func NewCreatePeerCreated

func NewCreatePeerCreated() *CreatePeerCreated

NewCreatePeerCreated creates a CreatePeerCreated with default headers values

func (*CreatePeerCreated) Code added in v1.1.5

func (o *CreatePeerCreated) Code() int

Code gets the status code for the create peer created response

func (*CreatePeerCreated) Error

func (o *CreatePeerCreated) Error() string

func (*CreatePeerCreated) GetPayload

func (o *CreatePeerCreated) GetPayload() *models.PeerSection

func (*CreatePeerCreated) IsClientError added in v1.1.0

func (o *CreatePeerCreated) IsClientError() bool

IsClientError returns true when this create peer created response has a 4xx status code

func (*CreatePeerCreated) IsCode added in v1.1.0

func (o *CreatePeerCreated) IsCode(code int) bool

IsCode returns true when this create peer created response a status code equal to that given

func (*CreatePeerCreated) IsRedirect added in v1.1.0

func (o *CreatePeerCreated) IsRedirect() bool

IsRedirect returns true when this create peer created response has a 3xx status code

func (*CreatePeerCreated) IsServerError added in v1.1.0

func (o *CreatePeerCreated) IsServerError() bool

IsServerError returns true when this create peer created response has a 5xx status code

func (*CreatePeerCreated) IsSuccess added in v1.1.0

func (o *CreatePeerCreated) IsSuccess() bool

IsSuccess returns true when this create peer created response has a 2xx status code

func (*CreatePeerCreated) String added in v1.1.0

func (o *CreatePeerCreated) String() string

type CreatePeerDefault

type CreatePeerDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreatePeerDefault describes a response with status code -1, with default header values.

General Error

func NewCreatePeerDefault

func NewCreatePeerDefault(code int) *CreatePeerDefault

NewCreatePeerDefault creates a CreatePeerDefault with default headers values

func (*CreatePeerDefault) Code

func (o *CreatePeerDefault) Code() int

Code gets the status code for the create peer default response

func (*CreatePeerDefault) Error

func (o *CreatePeerDefault) Error() string

func (*CreatePeerDefault) GetPayload

func (o *CreatePeerDefault) GetPayload() *models.Error

func (*CreatePeerDefault) IsClientError added in v1.1.0

func (o *CreatePeerDefault) IsClientError() bool

IsClientError returns true when this create peer default response has a 4xx status code

func (*CreatePeerDefault) IsCode added in v1.1.0

func (o *CreatePeerDefault) IsCode(code int) bool

IsCode returns true when this create peer default response a status code equal to that given

func (*CreatePeerDefault) IsRedirect added in v1.1.0

func (o *CreatePeerDefault) IsRedirect() bool

IsRedirect returns true when this create peer default response has a 3xx status code

func (*CreatePeerDefault) IsServerError added in v1.1.0

func (o *CreatePeerDefault) IsServerError() bool

IsServerError returns true when this create peer default response has a 5xx status code

func (*CreatePeerDefault) IsSuccess added in v1.1.0

func (o *CreatePeerDefault) IsSuccess() bool

IsSuccess returns true when this create peer default response has a 2xx status code

func (*CreatePeerDefault) String added in v1.1.0

func (o *CreatePeerDefault) String() string

type CreatePeerParams

type CreatePeerParams struct {

	// Data.
	Data *models.PeerSection

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

CreatePeerParams contains all the parameters to send to the API endpoint

for the create peer operation.

Typically these are written to a http.Request.

func NewCreatePeerParams

func NewCreatePeerParams() *CreatePeerParams

NewCreatePeerParams creates a new CreatePeerParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreatePeerParamsWithContext

func NewCreatePeerParamsWithContext(ctx context.Context) *CreatePeerParams

NewCreatePeerParamsWithContext creates a new CreatePeerParams object with the ability to set a context for a request.

func NewCreatePeerParamsWithHTTPClient

func NewCreatePeerParamsWithHTTPClient(client *http.Client) *CreatePeerParams

NewCreatePeerParamsWithHTTPClient creates a new CreatePeerParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePeerParamsWithTimeout

func NewCreatePeerParamsWithTimeout(timeout time.Duration) *CreatePeerParams

NewCreatePeerParamsWithTimeout creates a new CreatePeerParams object with the ability to set a timeout on a request.

func (*CreatePeerParams) SetContext

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

SetContext adds the context to the create peer params

func (*CreatePeerParams) SetData

func (o *CreatePeerParams) SetData(data *models.PeerSection)

SetData adds the data to the create peer params

func (*CreatePeerParams) SetDefaults

func (o *CreatePeerParams) SetDefaults()

SetDefaults hydrates default values in the create peer params (not the query body).

All values with no default are reset to their zero value.

func (*CreatePeerParams) SetForceReload

func (o *CreatePeerParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create peer params

func (*CreatePeerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create peer params

func (*CreatePeerParams) SetTimeout

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

SetTimeout adds the timeout to the create peer params

func (*CreatePeerParams) SetTransactionID

func (o *CreatePeerParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create peer params

func (*CreatePeerParams) SetVersion

func (o *CreatePeerParams) SetVersion(version *int64)

SetVersion adds the version to the create peer params

func (*CreatePeerParams) WithContext

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

WithContext adds the context to the create peer params

func (*CreatePeerParams) WithData

WithData adds the data to the create peer params

func (*CreatePeerParams) WithDefaults

func (o *CreatePeerParams) WithDefaults() *CreatePeerParams

WithDefaults hydrates default values in the create peer params (not the query body).

All values with no default are reset to their zero value.

func (*CreatePeerParams) WithForceReload

func (o *CreatePeerParams) WithForceReload(forceReload *bool) *CreatePeerParams

WithForceReload adds the forceReload to the create peer params

func (*CreatePeerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create peer params

func (*CreatePeerParams) WithTimeout

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

WithTimeout adds the timeout to the create peer params

func (*CreatePeerParams) WithTransactionID

func (o *CreatePeerParams) WithTransactionID(transactionID *string) *CreatePeerParams

WithTransactionID adds the transactionID to the create peer params

func (*CreatePeerParams) WithVersion

func (o *CreatePeerParams) WithVersion(version *int64) *CreatePeerParams

WithVersion adds the version to the create peer params

func (*CreatePeerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePeerReader

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

CreatePeerReader is a Reader for the CreatePeer structure.

func (*CreatePeerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePeerAccepted

type DeletePeerAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeletePeerAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeletePeerAccepted

func NewDeletePeerAccepted() *DeletePeerAccepted

NewDeletePeerAccepted creates a DeletePeerAccepted with default headers values

func (*DeletePeerAccepted) Code added in v1.1.5

func (o *DeletePeerAccepted) Code() int

Code gets the status code for the delete peer accepted response

func (*DeletePeerAccepted) Error

func (o *DeletePeerAccepted) Error() string

func (*DeletePeerAccepted) IsClientError added in v1.1.0

func (o *DeletePeerAccepted) IsClientError() bool

IsClientError returns true when this delete peer accepted response has a 4xx status code

func (*DeletePeerAccepted) IsCode added in v1.1.0

func (o *DeletePeerAccepted) IsCode(code int) bool

IsCode returns true when this delete peer accepted response a status code equal to that given

func (*DeletePeerAccepted) IsRedirect added in v1.1.0

func (o *DeletePeerAccepted) IsRedirect() bool

IsRedirect returns true when this delete peer accepted response has a 3xx status code

func (*DeletePeerAccepted) IsServerError added in v1.1.0

func (o *DeletePeerAccepted) IsServerError() bool

IsServerError returns true when this delete peer accepted response has a 5xx status code

func (*DeletePeerAccepted) IsSuccess added in v1.1.0

func (o *DeletePeerAccepted) IsSuccess() bool

IsSuccess returns true when this delete peer accepted response has a 2xx status code

func (*DeletePeerAccepted) String added in v1.1.0

func (o *DeletePeerAccepted) String() string

type DeletePeerDefault

type DeletePeerDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeletePeerDefault describes a response with status code -1, with default header values.

General Error

func NewDeletePeerDefault

func NewDeletePeerDefault(code int) *DeletePeerDefault

NewDeletePeerDefault creates a DeletePeerDefault with default headers values

func (*DeletePeerDefault) Code

func (o *DeletePeerDefault) Code() int

Code gets the status code for the delete peer default response

func (*DeletePeerDefault) Error

func (o *DeletePeerDefault) Error() string

func (*DeletePeerDefault) GetPayload

func (o *DeletePeerDefault) GetPayload() *models.Error

func (*DeletePeerDefault) IsClientError added in v1.1.0

func (o *DeletePeerDefault) IsClientError() bool

IsClientError returns true when this delete peer default response has a 4xx status code

func (*DeletePeerDefault) IsCode added in v1.1.0

func (o *DeletePeerDefault) IsCode(code int) bool

IsCode returns true when this delete peer default response a status code equal to that given

func (*DeletePeerDefault) IsRedirect added in v1.1.0

func (o *DeletePeerDefault) IsRedirect() bool

IsRedirect returns true when this delete peer default response has a 3xx status code

func (*DeletePeerDefault) IsServerError added in v1.1.0

func (o *DeletePeerDefault) IsServerError() bool

IsServerError returns true when this delete peer default response has a 5xx status code

func (*DeletePeerDefault) IsSuccess added in v1.1.0

func (o *DeletePeerDefault) IsSuccess() bool

IsSuccess returns true when this delete peer default response has a 2xx status code

func (*DeletePeerDefault) String added in v1.1.0

func (o *DeletePeerDefault) String() string

type DeletePeerNoContent

type DeletePeerNoContent struct {
}

DeletePeerNoContent describes a response with status code 204, with default header values.

Peer deleted

func NewDeletePeerNoContent

func NewDeletePeerNoContent() *DeletePeerNoContent

NewDeletePeerNoContent creates a DeletePeerNoContent with default headers values

func (*DeletePeerNoContent) Code added in v1.1.5

func (o *DeletePeerNoContent) Code() int

Code gets the status code for the delete peer no content response

func (*DeletePeerNoContent) Error

func (o *DeletePeerNoContent) Error() string

func (*DeletePeerNoContent) IsClientError added in v1.1.0

func (o *DeletePeerNoContent) IsClientError() bool

IsClientError returns true when this delete peer no content response has a 4xx status code

func (*DeletePeerNoContent) IsCode added in v1.1.0

func (o *DeletePeerNoContent) IsCode(code int) bool

IsCode returns true when this delete peer no content response a status code equal to that given

func (*DeletePeerNoContent) IsRedirect added in v1.1.0

func (o *DeletePeerNoContent) IsRedirect() bool

IsRedirect returns true when this delete peer no content response has a 3xx status code

func (*DeletePeerNoContent) IsServerError added in v1.1.0

func (o *DeletePeerNoContent) IsServerError() bool

IsServerError returns true when this delete peer no content response has a 5xx status code

func (*DeletePeerNoContent) IsSuccess added in v1.1.0

func (o *DeletePeerNoContent) IsSuccess() bool

IsSuccess returns true when this delete peer no content response has a 2xx status code

func (*DeletePeerNoContent) String added in v1.1.0

func (o *DeletePeerNoContent) String() string

type DeletePeerNotFound

type DeletePeerNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeletePeerNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeletePeerNotFound

func NewDeletePeerNotFound() *DeletePeerNotFound

NewDeletePeerNotFound creates a DeletePeerNotFound with default headers values

func (*DeletePeerNotFound) Code added in v1.1.5

func (o *DeletePeerNotFound) Code() int

Code gets the status code for the delete peer not found response

func (*DeletePeerNotFound) Error

func (o *DeletePeerNotFound) Error() string

func (*DeletePeerNotFound) GetPayload

func (o *DeletePeerNotFound) GetPayload() *models.Error

func (*DeletePeerNotFound) IsClientError added in v1.1.0

func (o *DeletePeerNotFound) IsClientError() bool

IsClientError returns true when this delete peer not found response has a 4xx status code

func (*DeletePeerNotFound) IsCode added in v1.1.0

func (o *DeletePeerNotFound) IsCode(code int) bool

IsCode returns true when this delete peer not found response a status code equal to that given

func (*DeletePeerNotFound) IsRedirect added in v1.1.0

func (o *DeletePeerNotFound) IsRedirect() bool

IsRedirect returns true when this delete peer not found response has a 3xx status code

func (*DeletePeerNotFound) IsServerError added in v1.1.0

func (o *DeletePeerNotFound) IsServerError() bool

IsServerError returns true when this delete peer not found response has a 5xx status code

func (*DeletePeerNotFound) IsSuccess added in v1.1.0

func (o *DeletePeerNotFound) IsSuccess() bool

IsSuccess returns true when this delete peer not found response has a 2xx status code

func (*DeletePeerNotFound) String added in v1.1.0

func (o *DeletePeerNotFound) String() string

type DeletePeerParams

type DeletePeerParams struct {

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   Peer name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

DeletePeerParams contains all the parameters to send to the API endpoint

for the delete peer operation.

Typically these are written to a http.Request.

func NewDeletePeerParams

func NewDeletePeerParams() *DeletePeerParams

NewDeletePeerParams creates a new DeletePeerParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeletePeerParamsWithContext

func NewDeletePeerParamsWithContext(ctx context.Context) *DeletePeerParams

NewDeletePeerParamsWithContext creates a new DeletePeerParams object with the ability to set a context for a request.

func NewDeletePeerParamsWithHTTPClient

func NewDeletePeerParamsWithHTTPClient(client *http.Client) *DeletePeerParams

NewDeletePeerParamsWithHTTPClient creates a new DeletePeerParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePeerParamsWithTimeout

func NewDeletePeerParamsWithTimeout(timeout time.Duration) *DeletePeerParams

NewDeletePeerParamsWithTimeout creates a new DeletePeerParams object with the ability to set a timeout on a request.

func (*DeletePeerParams) SetContext

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

SetContext adds the context to the delete peer params

func (*DeletePeerParams) SetDefaults

func (o *DeletePeerParams) SetDefaults()

SetDefaults hydrates default values in the delete peer params (not the query body).

All values with no default are reset to their zero value.

func (*DeletePeerParams) SetForceReload

func (o *DeletePeerParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete peer params

func (*DeletePeerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete peer params

func (*DeletePeerParams) SetName

func (o *DeletePeerParams) SetName(name string)

SetName adds the name to the delete peer params

func (*DeletePeerParams) SetTimeout

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

SetTimeout adds the timeout to the delete peer params

func (*DeletePeerParams) SetTransactionID

func (o *DeletePeerParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete peer params

func (*DeletePeerParams) SetVersion

func (o *DeletePeerParams) SetVersion(version *int64)

SetVersion adds the version to the delete peer params

func (*DeletePeerParams) WithContext

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

WithContext adds the context to the delete peer params

func (*DeletePeerParams) WithDefaults

func (o *DeletePeerParams) WithDefaults() *DeletePeerParams

WithDefaults hydrates default values in the delete peer params (not the query body).

All values with no default are reset to their zero value.

func (*DeletePeerParams) WithForceReload

func (o *DeletePeerParams) WithForceReload(forceReload *bool) *DeletePeerParams

WithForceReload adds the forceReload to the delete peer params

func (*DeletePeerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete peer params

func (*DeletePeerParams) WithName

func (o *DeletePeerParams) WithName(name string) *DeletePeerParams

WithName adds the name to the delete peer params

func (*DeletePeerParams) WithTimeout

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

WithTimeout adds the timeout to the delete peer params

func (*DeletePeerParams) WithTransactionID

func (o *DeletePeerParams) WithTransactionID(transactionID *string) *DeletePeerParams

WithTransactionID adds the transactionID to the delete peer params

func (*DeletePeerParams) WithVersion

func (o *DeletePeerParams) WithVersion(version *int64) *DeletePeerParams

WithVersion adds the version to the delete peer params

func (*DeletePeerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePeerReader

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

DeletePeerReader is a Reader for the DeletePeer structure.

func (*DeletePeerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPeerSectionDefault

type GetPeerSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetPeerSectionDefault describes a response with status code -1, with default header values.

General Error

func NewGetPeerSectionDefault

func NewGetPeerSectionDefault(code int) *GetPeerSectionDefault

NewGetPeerSectionDefault creates a GetPeerSectionDefault with default headers values

func (*GetPeerSectionDefault) Code

func (o *GetPeerSectionDefault) Code() int

Code gets the status code for the get peer section default response

func (*GetPeerSectionDefault) Error

func (o *GetPeerSectionDefault) Error() string

func (*GetPeerSectionDefault) GetPayload

func (o *GetPeerSectionDefault) GetPayload() *models.Error

func (*GetPeerSectionDefault) IsClientError added in v1.1.0

func (o *GetPeerSectionDefault) IsClientError() bool

IsClientError returns true when this get peer section default response has a 4xx status code

func (*GetPeerSectionDefault) IsCode added in v1.1.0

func (o *GetPeerSectionDefault) IsCode(code int) bool

IsCode returns true when this get peer section default response a status code equal to that given

func (*GetPeerSectionDefault) IsRedirect added in v1.1.0

func (o *GetPeerSectionDefault) IsRedirect() bool

IsRedirect returns true when this get peer section default response has a 3xx status code

func (*GetPeerSectionDefault) IsServerError added in v1.1.0

func (o *GetPeerSectionDefault) IsServerError() bool

IsServerError returns true when this get peer section default response has a 5xx status code

func (*GetPeerSectionDefault) IsSuccess added in v1.1.0

func (o *GetPeerSectionDefault) IsSuccess() bool

IsSuccess returns true when this get peer section default response has a 2xx status code

func (*GetPeerSectionDefault) String added in v1.1.0

func (o *GetPeerSectionDefault) String() string

type GetPeerSectionNotFound

type GetPeerSectionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetPeerSectionNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewGetPeerSectionNotFound

func NewGetPeerSectionNotFound() *GetPeerSectionNotFound

NewGetPeerSectionNotFound creates a GetPeerSectionNotFound with default headers values

func (*GetPeerSectionNotFound) Code added in v1.1.5

func (o *GetPeerSectionNotFound) Code() int

Code gets the status code for the get peer section not found response

func (*GetPeerSectionNotFound) Error

func (o *GetPeerSectionNotFound) Error() string

func (*GetPeerSectionNotFound) GetPayload

func (o *GetPeerSectionNotFound) GetPayload() *models.Error

func (*GetPeerSectionNotFound) IsClientError added in v1.1.0

func (o *GetPeerSectionNotFound) IsClientError() bool

IsClientError returns true when this get peer section not found response has a 4xx status code

func (*GetPeerSectionNotFound) IsCode added in v1.1.0

func (o *GetPeerSectionNotFound) IsCode(code int) bool

IsCode returns true when this get peer section not found response a status code equal to that given

func (*GetPeerSectionNotFound) IsRedirect added in v1.1.0

func (o *GetPeerSectionNotFound) IsRedirect() bool

IsRedirect returns true when this get peer section not found response has a 3xx status code

func (*GetPeerSectionNotFound) IsServerError added in v1.1.0

func (o *GetPeerSectionNotFound) IsServerError() bool

IsServerError returns true when this get peer section not found response has a 5xx status code

func (*GetPeerSectionNotFound) IsSuccess added in v1.1.0

func (o *GetPeerSectionNotFound) IsSuccess() bool

IsSuccess returns true when this get peer section not found response has a 2xx status code

func (*GetPeerSectionNotFound) String added in v1.1.0

func (o *GetPeerSectionNotFound) String() string

type GetPeerSectionOK

type GetPeerSectionOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetPeerSectionOKBody
}

GetPeerSectionOK describes a response with status code 200, with default header values.

Successful operation

func NewGetPeerSectionOK

func NewGetPeerSectionOK() *GetPeerSectionOK

NewGetPeerSectionOK creates a GetPeerSectionOK with default headers values

func (*GetPeerSectionOK) Code added in v1.1.5

func (o *GetPeerSectionOK) Code() int

Code gets the status code for the get peer section o k response

func (*GetPeerSectionOK) Error

func (o *GetPeerSectionOK) Error() string

func (*GetPeerSectionOK) GetPayload

func (o *GetPeerSectionOK) GetPayload() *GetPeerSectionOKBody

func (*GetPeerSectionOK) IsClientError added in v1.1.0

func (o *GetPeerSectionOK) IsClientError() bool

IsClientError returns true when this get peer section o k response has a 4xx status code

func (*GetPeerSectionOK) IsCode added in v1.1.0

func (o *GetPeerSectionOK) IsCode(code int) bool

IsCode returns true when this get peer section o k response a status code equal to that given

func (*GetPeerSectionOK) IsRedirect added in v1.1.0

func (o *GetPeerSectionOK) IsRedirect() bool

IsRedirect returns true when this get peer section o k response has a 3xx status code

func (*GetPeerSectionOK) IsServerError added in v1.1.0

func (o *GetPeerSectionOK) IsServerError() bool

IsServerError returns true when this get peer section o k response has a 5xx status code

func (*GetPeerSectionOK) IsSuccess added in v1.1.0

func (o *GetPeerSectionOK) IsSuccess() bool

IsSuccess returns true when this get peer section o k response has a 2xx status code

func (*GetPeerSectionOK) String added in v1.1.0

func (o *GetPeerSectionOK) String() string

type GetPeerSectionOKBody

type GetPeerSectionOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.PeerSection `json:"data,omitempty"`
}

GetPeerSectionOKBody get peer section o k body swagger:model GetPeerSectionOKBody

func (*GetPeerSectionOKBody) ContextValidate

func (o *GetPeerSectionOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get peer section o k body based on the context it is used

func (*GetPeerSectionOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetPeerSectionOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetPeerSectionOKBody) Validate

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

Validate validates this get peer section o k body

type GetPeerSectionParams

type GetPeerSectionParams struct {

	/* Name.

	   Peer name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetPeerSectionParams contains all the parameters to send to the API endpoint

for the get peer section operation.

Typically these are written to a http.Request.

func NewGetPeerSectionParams

func NewGetPeerSectionParams() *GetPeerSectionParams

NewGetPeerSectionParams creates a new GetPeerSectionParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetPeerSectionParamsWithContext

func NewGetPeerSectionParamsWithContext(ctx context.Context) *GetPeerSectionParams

NewGetPeerSectionParamsWithContext creates a new GetPeerSectionParams object with the ability to set a context for a request.

func NewGetPeerSectionParamsWithHTTPClient

func NewGetPeerSectionParamsWithHTTPClient(client *http.Client) *GetPeerSectionParams

NewGetPeerSectionParamsWithHTTPClient creates a new GetPeerSectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetPeerSectionParamsWithTimeout

func NewGetPeerSectionParamsWithTimeout(timeout time.Duration) *GetPeerSectionParams

NewGetPeerSectionParamsWithTimeout creates a new GetPeerSectionParams object with the ability to set a timeout on a request.

func (*GetPeerSectionParams) SetContext

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

SetContext adds the context to the get peer section params

func (*GetPeerSectionParams) SetDefaults

func (o *GetPeerSectionParams) SetDefaults()

SetDefaults hydrates default values in the get peer section params (not the query body).

All values with no default are reset to their zero value.

func (*GetPeerSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get peer section params

func (*GetPeerSectionParams) SetName

func (o *GetPeerSectionParams) SetName(name string)

SetName adds the name to the get peer section params

func (*GetPeerSectionParams) SetTimeout

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

SetTimeout adds the timeout to the get peer section params

func (*GetPeerSectionParams) SetTransactionID

func (o *GetPeerSectionParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get peer section params

func (*GetPeerSectionParams) WithContext

WithContext adds the context to the get peer section params

func (*GetPeerSectionParams) WithDefaults

func (o *GetPeerSectionParams) WithDefaults() *GetPeerSectionParams

WithDefaults hydrates default values in the get peer section params (not the query body).

All values with no default are reset to their zero value.

func (*GetPeerSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get peer section params

func (*GetPeerSectionParams) WithName

WithName adds the name to the get peer section params

func (*GetPeerSectionParams) WithTimeout

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

WithTimeout adds the timeout to the get peer section params

func (*GetPeerSectionParams) WithTransactionID

func (o *GetPeerSectionParams) WithTransactionID(transactionID *string) *GetPeerSectionParams

WithTransactionID adds the transactionID to the get peer section params

func (*GetPeerSectionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPeerSectionReader

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

GetPeerSectionReader is a Reader for the GetPeerSection structure.

func (*GetPeerSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPeerSectionsDefault

type GetPeerSectionsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetPeerSectionsDefault describes a response with status code -1, with default header values.

General Error

func NewGetPeerSectionsDefault

func NewGetPeerSectionsDefault(code int) *GetPeerSectionsDefault

NewGetPeerSectionsDefault creates a GetPeerSectionsDefault with default headers values

func (*GetPeerSectionsDefault) Code

func (o *GetPeerSectionsDefault) Code() int

Code gets the status code for the get peer sections default response

func (*GetPeerSectionsDefault) Error

func (o *GetPeerSectionsDefault) Error() string

func (*GetPeerSectionsDefault) GetPayload

func (o *GetPeerSectionsDefault) GetPayload() *models.Error

func (*GetPeerSectionsDefault) IsClientError added in v1.1.0

func (o *GetPeerSectionsDefault) IsClientError() bool

IsClientError returns true when this get peer sections default response has a 4xx status code

func (*GetPeerSectionsDefault) IsCode added in v1.1.0

func (o *GetPeerSectionsDefault) IsCode(code int) bool

IsCode returns true when this get peer sections default response a status code equal to that given

func (*GetPeerSectionsDefault) IsRedirect added in v1.1.0

func (o *GetPeerSectionsDefault) IsRedirect() bool

IsRedirect returns true when this get peer sections default response has a 3xx status code

func (*GetPeerSectionsDefault) IsServerError added in v1.1.0

func (o *GetPeerSectionsDefault) IsServerError() bool

IsServerError returns true when this get peer sections default response has a 5xx status code

func (*GetPeerSectionsDefault) IsSuccess added in v1.1.0

func (o *GetPeerSectionsDefault) IsSuccess() bool

IsSuccess returns true when this get peer sections default response has a 2xx status code

func (*GetPeerSectionsDefault) String added in v1.1.0

func (o *GetPeerSectionsDefault) String() string

type GetPeerSectionsOK

type GetPeerSectionsOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetPeerSectionsOKBody
}

GetPeerSectionsOK describes a response with status code 200, with default header values.

Successful operation

func NewGetPeerSectionsOK

func NewGetPeerSectionsOK() *GetPeerSectionsOK

NewGetPeerSectionsOK creates a GetPeerSectionsOK with default headers values

func (*GetPeerSectionsOK) Code added in v1.1.5

func (o *GetPeerSectionsOK) Code() int

Code gets the status code for the get peer sections o k response

func (*GetPeerSectionsOK) Error

func (o *GetPeerSectionsOK) Error() string

func (*GetPeerSectionsOK) GetPayload

func (o *GetPeerSectionsOK) GetPayload() *GetPeerSectionsOKBody

func (*GetPeerSectionsOK) IsClientError added in v1.1.0

func (o *GetPeerSectionsOK) IsClientError() bool

IsClientError returns true when this get peer sections o k response has a 4xx status code

func (*GetPeerSectionsOK) IsCode added in v1.1.0

func (o *GetPeerSectionsOK) IsCode(code int) bool

IsCode returns true when this get peer sections o k response a status code equal to that given

func (*GetPeerSectionsOK) IsRedirect added in v1.1.0

func (o *GetPeerSectionsOK) IsRedirect() bool

IsRedirect returns true when this get peer sections o k response has a 3xx status code

func (*GetPeerSectionsOK) IsServerError added in v1.1.0

func (o *GetPeerSectionsOK) IsServerError() bool

IsServerError returns true when this get peer sections o k response has a 5xx status code

func (*GetPeerSectionsOK) IsSuccess added in v1.1.0

func (o *GetPeerSectionsOK) IsSuccess() bool

IsSuccess returns true when this get peer sections o k response has a 2xx status code

func (*GetPeerSectionsOK) String added in v1.1.0

func (o *GetPeerSectionsOK) String() string

type GetPeerSectionsOKBody

type GetPeerSectionsOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.PeerSections `json:"data"`
}

GetPeerSectionsOKBody get peer sections o k body swagger:model GetPeerSectionsOKBody

func (*GetPeerSectionsOKBody) ContextValidate

func (o *GetPeerSectionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get peer sections o k body based on the context it is used

func (*GetPeerSectionsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetPeerSectionsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetPeerSectionsOKBody) Validate

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

Validate validates this get peer sections o k body

type GetPeerSectionsParams

type GetPeerSectionsParams struct {

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetPeerSectionsParams contains all the parameters to send to the API endpoint

for the get peer sections operation.

Typically these are written to a http.Request.

func NewGetPeerSectionsParams

func NewGetPeerSectionsParams() *GetPeerSectionsParams

NewGetPeerSectionsParams creates a new GetPeerSectionsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetPeerSectionsParamsWithContext

func NewGetPeerSectionsParamsWithContext(ctx context.Context) *GetPeerSectionsParams

NewGetPeerSectionsParamsWithContext creates a new GetPeerSectionsParams object with the ability to set a context for a request.

func NewGetPeerSectionsParamsWithHTTPClient

func NewGetPeerSectionsParamsWithHTTPClient(client *http.Client) *GetPeerSectionsParams

NewGetPeerSectionsParamsWithHTTPClient creates a new GetPeerSectionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetPeerSectionsParamsWithTimeout

func NewGetPeerSectionsParamsWithTimeout(timeout time.Duration) *GetPeerSectionsParams

NewGetPeerSectionsParamsWithTimeout creates a new GetPeerSectionsParams object with the ability to set a timeout on a request.

func (*GetPeerSectionsParams) SetContext

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

SetContext adds the context to the get peer sections params

func (*GetPeerSectionsParams) SetDefaults

func (o *GetPeerSectionsParams) SetDefaults()

SetDefaults hydrates default values in the get peer sections params (not the query body).

All values with no default are reset to their zero value.

func (*GetPeerSectionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get peer sections params

func (*GetPeerSectionsParams) SetTimeout

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

SetTimeout adds the timeout to the get peer sections params

func (*GetPeerSectionsParams) SetTransactionID

func (o *GetPeerSectionsParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get peer sections params

func (*GetPeerSectionsParams) WithContext

WithContext adds the context to the get peer sections params

func (*GetPeerSectionsParams) WithDefaults

func (o *GetPeerSectionsParams) WithDefaults() *GetPeerSectionsParams

WithDefaults hydrates default values in the get peer sections params (not the query body).

All values with no default are reset to their zero value.

func (*GetPeerSectionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get peer sections params

func (*GetPeerSectionsParams) WithTimeout

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

WithTimeout adds the timeout to the get peer sections params

func (*GetPeerSectionsParams) WithTransactionID

func (o *GetPeerSectionsParams) WithTransactionID(transactionID *string) *GetPeerSectionsParams

WithTransactionID adds the transactionID to the get peer sections params

func (*GetPeerSectionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPeerSectionsReader

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

GetPeerSectionsReader is a Reader for the GetPeerSections structure.

func (*GetPeerSectionsReader) ReadResponse

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