peer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 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) (*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) (*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 ClientService

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

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

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

	GetPeerSections(params *GetPeerSectionsParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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) Error

func (o *CreatePeerAccepted) Error() string

func (*CreatePeerAccepted) GetPayload

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

type CreatePeerBadRequest

type CreatePeerBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreatePeerBadRequest handles this case with default header values.

Bad request

func NewCreatePeerBadRequest

func NewCreatePeerBadRequest() *CreatePeerBadRequest

NewCreatePeerBadRequest creates a CreatePeerBadRequest with default headers values

func (*CreatePeerBadRequest) Error

func (o *CreatePeerBadRequest) Error() string

func (*CreatePeerBadRequest) GetPayload

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

type CreatePeerConflict

type CreatePeerConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreatePeerConflict handles this case with default header values.

The specified resource already exists

func NewCreatePeerConflict

func NewCreatePeerConflict() *CreatePeerConflict

NewCreatePeerConflict creates a CreatePeerConflict with default headers values

func (*CreatePeerConflict) Error

func (o *CreatePeerConflict) Error() string

func (*CreatePeerConflict) GetPayload

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

type CreatePeerCreated

type CreatePeerCreated struct {
	Payload *models.PeerSection
}

CreatePeerCreated handles this case with default header values.

Peer created

func NewCreatePeerCreated

func NewCreatePeerCreated() *CreatePeerCreated

NewCreatePeerCreated creates a CreatePeerCreated with default headers values

func (*CreatePeerCreated) Error

func (o *CreatePeerCreated) Error() string

func (*CreatePeerCreated) GetPayload

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

type CreatePeerDefault

type CreatePeerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreatePeerDefault handles this case 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

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 values initialized.

func NewCreatePeerParamsWithContext

func NewCreatePeerParamsWithContext(ctx context.Context) *CreatePeerParams

NewCreatePeerParamsWithContext creates a new CreatePeerParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *DeletePeerAccepted) Error() string

type DeletePeerDefault

type DeletePeerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

DeletePeerDefault handles this case 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

type DeletePeerNoContent

type DeletePeerNoContent struct {
}

DeletePeerNoContent handles this case with default header values.

Peer deleted

func NewDeletePeerNoContent

func NewDeletePeerNoContent() *DeletePeerNoContent

NewDeletePeerNoContent creates a DeletePeerNoContent with default headers values

func (*DeletePeerNoContent) Error

func (o *DeletePeerNoContent) Error() string

type DeletePeerNotFound

type DeletePeerNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

DeletePeerNotFound handles this case 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) Error

func (o *DeletePeerNotFound) Error() string

func (*DeletePeerNotFound) GetPayload

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

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 values initialized.

func NewDeletePeerParamsWithContext

func NewDeletePeerParamsWithContext(ctx context.Context) *DeletePeerParams

NewDeletePeerParamsWithContext creates a new DeletePeerParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 int64

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

GetPeerSectionDefault handles this case 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

type GetPeerSectionNotFound

type GetPeerSectionNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

GetPeerSectionNotFound handles this case 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) Error

func (o *GetPeerSectionNotFound) Error() string

func (*GetPeerSectionNotFound) GetPayload

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

type GetPeerSectionOK

type GetPeerSectionOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetPeerSectionOKBody
}

GetPeerSectionOK handles this case with default header values.

Successful operation

func NewGetPeerSectionOK

func NewGetPeerSectionOK() *GetPeerSectionOK

NewGetPeerSectionOK creates a GetPeerSectionOK with default headers values

func (*GetPeerSectionOK) Error

func (o *GetPeerSectionOK) Error() string

func (*GetPeerSectionOK) GetPayload

func (o *GetPeerSectionOK) GetPayload() *GetPeerSectionOKBody

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) 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 values initialized.

func NewGetPeerSectionParamsWithContext

func NewGetPeerSectionParamsWithContext(ctx context.Context) *GetPeerSectionParams

NewGetPeerSectionParamsWithContext creates a new GetPeerSectionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 int64

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

GetPeerSectionsDefault handles this case 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

type GetPeerSectionsOK

type GetPeerSectionsOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetPeerSectionsOKBody
}

GetPeerSectionsOK handles this case with default header values.

Successful operation

func NewGetPeerSectionsOK

func NewGetPeerSectionsOK() *GetPeerSectionsOK

NewGetPeerSectionsOK creates a GetPeerSectionsOK with default headers values

func (*GetPeerSectionsOK) Error

func (o *GetPeerSectionsOK) Error() string

func (*GetPeerSectionsOK) GetPayload

func (o *GetPeerSectionsOK) GetPayload() *GetPeerSectionsOKBody

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) 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 values initialized.

func NewGetPeerSectionsParamsWithContext

func NewGetPeerSectionsParamsWithContext(ctx context.Context) *GetPeerSectionsParams

NewGetPeerSectionsParamsWithContext creates a new GetPeerSectionsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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