peer_entry

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 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 entry API

func (*Client) CreatePeerEntry

CreatePeerEntry adds a new peer entry

Adds a new peer entry in the specified peer section in the configuration file.

func (*Client) DeletePeerEntry

DeletePeerEntry deletes a peer entry

Deletes a peer entry configuration by it's name in the specified peer section.

func (*Client) GetPeerEntries

func (a *Client) GetPeerEntries(params *GetPeerEntriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetPeerEntriesOK, error)

GetPeerEntries returns an array of peer entries

Returns an array of all peer_entries that are configured in specified peer section.

func (*Client) GetPeerEntry

func (a *Client) GetPeerEntry(params *GetPeerEntryParams, authInfo runtime.ClientAuthInfoWriter) (*GetPeerEntryOK, error)

GetPeerEntry returns one peer entry

Returns one peer_entry configuration by it's name in the specified peer section.

func (*Client) ReplacePeerEntry

ReplacePeerEntry replaces a peer entry

Replaces a peer entry configuration by it's name in the specified peer section.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new peer entry API client.

type CreatePeerEntryAccepted

type CreatePeerEntryAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.PeerEntry
}

CreatePeerEntryAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreatePeerEntryAccepted

func NewCreatePeerEntryAccepted() *CreatePeerEntryAccepted

NewCreatePeerEntryAccepted creates a CreatePeerEntryAccepted with default headers values

func (*CreatePeerEntryAccepted) Error

func (o *CreatePeerEntryAccepted) Error() string

func (*CreatePeerEntryAccepted) GetPayload

func (o *CreatePeerEntryAccepted) GetPayload() *models.PeerEntry

type CreatePeerEntryBadRequest

type CreatePeerEntryBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreatePeerEntryBadRequest handles this case with default header values.

Bad request

func NewCreatePeerEntryBadRequest

func NewCreatePeerEntryBadRequest() *CreatePeerEntryBadRequest

NewCreatePeerEntryBadRequest creates a CreatePeerEntryBadRequest with default headers values

func (*CreatePeerEntryBadRequest) Error

func (o *CreatePeerEntryBadRequest) Error() string

func (*CreatePeerEntryBadRequest) GetPayload

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

type CreatePeerEntryConflict

type CreatePeerEntryConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreatePeerEntryConflict handles this case with default header values.

The specified resource already exists

func NewCreatePeerEntryConflict

func NewCreatePeerEntryConflict() *CreatePeerEntryConflict

NewCreatePeerEntryConflict creates a CreatePeerEntryConflict with default headers values

func (*CreatePeerEntryConflict) Error

func (o *CreatePeerEntryConflict) Error() string

func (*CreatePeerEntryConflict) GetPayload

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

type CreatePeerEntryCreated

type CreatePeerEntryCreated struct {
	Payload *models.PeerEntry
}

CreatePeerEntryCreated handles this case with default header values.

PeerEntry created

func NewCreatePeerEntryCreated

func NewCreatePeerEntryCreated() *CreatePeerEntryCreated

NewCreatePeerEntryCreated creates a CreatePeerEntryCreated with default headers values

func (*CreatePeerEntryCreated) Error

func (o *CreatePeerEntryCreated) Error() string

func (*CreatePeerEntryCreated) GetPayload

func (o *CreatePeerEntryCreated) GetPayload() *models.PeerEntry

type CreatePeerEntryDefault

type CreatePeerEntryDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

CreatePeerEntryDefault handles this case with default header values.

General Error

func NewCreatePeerEntryDefault

func NewCreatePeerEntryDefault(code int) *CreatePeerEntryDefault

NewCreatePeerEntryDefault creates a CreatePeerEntryDefault with default headers values

func (*CreatePeerEntryDefault) Code

func (o *CreatePeerEntryDefault) Code() int

Code gets the status code for the create peer entry default response

func (*CreatePeerEntryDefault) Error

func (o *CreatePeerEntryDefault) Error() string

func (*CreatePeerEntryDefault) GetPayload

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

type CreatePeerEntryParams

type CreatePeerEntryParams struct {

	/*Data*/
	Data *models.PeerEntry
	/*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
	/*PeerSection
	  Parent peer section name

	*/
	PeerSection 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
}

CreatePeerEntryParams contains all the parameters to send to the API endpoint for the create peer entry operation typically these are written to a http.Request

func NewCreatePeerEntryParams

func NewCreatePeerEntryParams() *CreatePeerEntryParams

NewCreatePeerEntryParams creates a new CreatePeerEntryParams object with the default values initialized.

func NewCreatePeerEntryParamsWithContext

func NewCreatePeerEntryParamsWithContext(ctx context.Context) *CreatePeerEntryParams

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

func NewCreatePeerEntryParamsWithHTTPClient

func NewCreatePeerEntryParamsWithHTTPClient(client *http.Client) *CreatePeerEntryParams

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

func NewCreatePeerEntryParamsWithTimeout

func NewCreatePeerEntryParamsWithTimeout(timeout time.Duration) *CreatePeerEntryParams

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

func (*CreatePeerEntryParams) SetContext

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

SetContext adds the context to the create peer entry params

func (*CreatePeerEntryParams) SetData

func (o *CreatePeerEntryParams) SetData(data *models.PeerEntry)

SetData adds the data to the create peer entry params

func (*CreatePeerEntryParams) SetForceReload

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

SetForceReload adds the forceReload to the create peer entry params

func (*CreatePeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create peer entry params

func (*CreatePeerEntryParams) SetPeerSection

func (o *CreatePeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the create peer entry params

func (*CreatePeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the create peer entry params

func (*CreatePeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create peer entry params

func (*CreatePeerEntryParams) SetVersion

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

SetVersion adds the version to the create peer entry params

func (*CreatePeerEntryParams) WithContext

WithContext adds the context to the create peer entry params

func (*CreatePeerEntryParams) WithData

WithData adds the data to the create peer entry params

func (*CreatePeerEntryParams) WithForceReload

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

WithForceReload adds the forceReload to the create peer entry params

func (*CreatePeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create peer entry params

func (*CreatePeerEntryParams) WithPeerSection

func (o *CreatePeerEntryParams) WithPeerSection(peerSection string) *CreatePeerEntryParams

WithPeerSection adds the peerSection to the create peer entry params

func (*CreatePeerEntryParams) WithTimeout

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

WithTimeout adds the timeout to the create peer entry params

func (*CreatePeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create peer entry params

func (*CreatePeerEntryParams) WithVersion

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

WithVersion adds the version to the create peer entry params

func (*CreatePeerEntryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePeerEntryReader

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

CreatePeerEntryReader is a Reader for the CreatePeerEntry structure.

func (*CreatePeerEntryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePeerEntryAccepted

type DeletePeerEntryAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string
}

DeletePeerEntryAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeletePeerEntryAccepted

func NewDeletePeerEntryAccepted() *DeletePeerEntryAccepted

NewDeletePeerEntryAccepted creates a DeletePeerEntryAccepted with default headers values

func (*DeletePeerEntryAccepted) Error

func (o *DeletePeerEntryAccepted) Error() string

type DeletePeerEntryDefault

type DeletePeerEntryDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

DeletePeerEntryDefault handles this case with default header values.

General Error

func NewDeletePeerEntryDefault

func NewDeletePeerEntryDefault(code int) *DeletePeerEntryDefault

NewDeletePeerEntryDefault creates a DeletePeerEntryDefault with default headers values

func (*DeletePeerEntryDefault) Code

func (o *DeletePeerEntryDefault) Code() int

Code gets the status code for the delete peer entry default response

func (*DeletePeerEntryDefault) Error

func (o *DeletePeerEntryDefault) Error() string

func (*DeletePeerEntryDefault) GetPayload

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

type DeletePeerEntryNoContent

type DeletePeerEntryNoContent struct {
}

DeletePeerEntryNoContent handles this case with default header values.

PeerEntry deleted

func NewDeletePeerEntryNoContent

func NewDeletePeerEntryNoContent() *DeletePeerEntryNoContent

NewDeletePeerEntryNoContent creates a DeletePeerEntryNoContent with default headers values

func (*DeletePeerEntryNoContent) Error

func (o *DeletePeerEntryNoContent) Error() string

type DeletePeerEntryNotFound

type DeletePeerEntryNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeletePeerEntryNotFound handles this case with default header values.

The specified resource was not found

func NewDeletePeerEntryNotFound

func NewDeletePeerEntryNotFound() *DeletePeerEntryNotFound

NewDeletePeerEntryNotFound creates a DeletePeerEntryNotFound with default headers values

func (*DeletePeerEntryNotFound) Error

func (o *DeletePeerEntryNotFound) Error() string

func (*DeletePeerEntryNotFound) GetPayload

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

type DeletePeerEntryParams

type DeletePeerEntryParams 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
	  PeerEntry name

	*/
	Name string
	/*PeerSection
	  Parent peers name

	*/
	PeerSection 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
}

DeletePeerEntryParams contains all the parameters to send to the API endpoint for the delete peer entry operation typically these are written to a http.Request

func NewDeletePeerEntryParams

func NewDeletePeerEntryParams() *DeletePeerEntryParams

NewDeletePeerEntryParams creates a new DeletePeerEntryParams object with the default values initialized.

func NewDeletePeerEntryParamsWithContext

func NewDeletePeerEntryParamsWithContext(ctx context.Context) *DeletePeerEntryParams

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

func NewDeletePeerEntryParamsWithHTTPClient

func NewDeletePeerEntryParamsWithHTTPClient(client *http.Client) *DeletePeerEntryParams

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

func NewDeletePeerEntryParamsWithTimeout

func NewDeletePeerEntryParamsWithTimeout(timeout time.Duration) *DeletePeerEntryParams

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

func (*DeletePeerEntryParams) SetContext

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

SetContext adds the context to the delete peer entry params

func (*DeletePeerEntryParams) SetForceReload

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

SetForceReload adds the forceReload to the delete peer entry params

func (*DeletePeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete peer entry params

func (*DeletePeerEntryParams) SetName

func (o *DeletePeerEntryParams) SetName(name string)

SetName adds the name to the delete peer entry params

func (*DeletePeerEntryParams) SetPeerSection

func (o *DeletePeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the delete peer entry params

func (*DeletePeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the delete peer entry params

func (*DeletePeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete peer entry params

func (*DeletePeerEntryParams) SetVersion

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

SetVersion adds the version to the delete peer entry params

func (*DeletePeerEntryParams) WithContext

WithContext adds the context to the delete peer entry params

func (*DeletePeerEntryParams) WithForceReload

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

WithForceReload adds the forceReload to the delete peer entry params

func (*DeletePeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete peer entry params

func (*DeletePeerEntryParams) WithName

WithName adds the name to the delete peer entry params

func (*DeletePeerEntryParams) WithPeerSection

func (o *DeletePeerEntryParams) WithPeerSection(peerSection string) *DeletePeerEntryParams

WithPeerSection adds the peerSection to the delete peer entry params

func (*DeletePeerEntryParams) WithTimeout

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

WithTimeout adds the timeout to the delete peer entry params

func (*DeletePeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete peer entry params

func (*DeletePeerEntryParams) WithVersion

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

WithVersion adds the version to the delete peer entry params

func (*DeletePeerEntryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePeerEntryReader

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

DeletePeerEntryReader is a Reader for the DeletePeerEntry structure.

func (*DeletePeerEntryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPeerEntriesDefault

type GetPeerEntriesDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetPeerEntriesDefault handles this case with default header values.

General Error

func NewGetPeerEntriesDefault

func NewGetPeerEntriesDefault(code int) *GetPeerEntriesDefault

NewGetPeerEntriesDefault creates a GetPeerEntriesDefault with default headers values

func (*GetPeerEntriesDefault) Code

func (o *GetPeerEntriesDefault) Code() int

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

func (*GetPeerEntriesDefault) Error

func (o *GetPeerEntriesDefault) Error() string

func (*GetPeerEntriesDefault) GetPayload

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

type GetPeerEntriesOK

type GetPeerEntriesOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetPeerEntriesOKBody
}

GetPeerEntriesOK handles this case with default header values.

Successful operation

func NewGetPeerEntriesOK

func NewGetPeerEntriesOK() *GetPeerEntriesOK

NewGetPeerEntriesOK creates a GetPeerEntriesOK with default headers values

func (*GetPeerEntriesOK) Error

func (o *GetPeerEntriesOK) Error() string

func (*GetPeerEntriesOK) GetPayload

func (o *GetPeerEntriesOK) GetPayload() *GetPeerEntriesOKBody

type GetPeerEntriesOKBody

type GetPeerEntriesOKBody struct {

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

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

GetPeerEntriesOKBody get peer entries o k body swagger:model GetPeerEntriesOKBody

func (*GetPeerEntriesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetPeerEntriesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetPeerEntriesOKBody) Validate

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

Validate validates this get peer entries o k body

type GetPeerEntriesParams

type GetPeerEntriesParams struct {

	/*PeerSection
	  Parent peer section name

	*/
	PeerSection 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
}

GetPeerEntriesParams contains all the parameters to send to the API endpoint for the get peer entries operation typically these are written to a http.Request

func NewGetPeerEntriesParams

func NewGetPeerEntriesParams() *GetPeerEntriesParams

NewGetPeerEntriesParams creates a new GetPeerEntriesParams object with the default values initialized.

func NewGetPeerEntriesParamsWithContext

func NewGetPeerEntriesParamsWithContext(ctx context.Context) *GetPeerEntriesParams

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

func NewGetPeerEntriesParamsWithHTTPClient

func NewGetPeerEntriesParamsWithHTTPClient(client *http.Client) *GetPeerEntriesParams

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

func NewGetPeerEntriesParamsWithTimeout

func NewGetPeerEntriesParamsWithTimeout(timeout time.Duration) *GetPeerEntriesParams

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

func (*GetPeerEntriesParams) SetContext

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

SetContext adds the context to the get peer entries params

func (*GetPeerEntriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get peer entries params

func (*GetPeerEntriesParams) SetPeerSection

func (o *GetPeerEntriesParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the get peer entries params

func (*GetPeerEntriesParams) SetTimeout

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

SetTimeout adds the timeout to the get peer entries params

func (*GetPeerEntriesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get peer entries params

func (*GetPeerEntriesParams) WithContext

WithContext adds the context to the get peer entries params

func (*GetPeerEntriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get peer entries params

func (*GetPeerEntriesParams) WithPeerSection

func (o *GetPeerEntriesParams) WithPeerSection(peerSection string) *GetPeerEntriesParams

WithPeerSection adds the peerSection to the get peer entries params

func (*GetPeerEntriesParams) WithTimeout

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

WithTimeout adds the timeout to the get peer entries params

func (*GetPeerEntriesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get peer entries params

func (*GetPeerEntriesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPeerEntriesReader

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

GetPeerEntriesReader is a Reader for the GetPeerEntries structure.

func (*GetPeerEntriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPeerEntryDefault

type GetPeerEntryDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetPeerEntryDefault handles this case with default header values.

General Error

func NewGetPeerEntryDefault

func NewGetPeerEntryDefault(code int) *GetPeerEntryDefault

NewGetPeerEntryDefault creates a GetPeerEntryDefault with default headers values

func (*GetPeerEntryDefault) Code

func (o *GetPeerEntryDefault) Code() int

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

func (*GetPeerEntryDefault) Error

func (o *GetPeerEntryDefault) Error() string

func (*GetPeerEntryDefault) GetPayload

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

type GetPeerEntryNotFound

type GetPeerEntryNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetPeerEntryNotFound handles this case with default header values.

The specified resource already exists

func NewGetPeerEntryNotFound

func NewGetPeerEntryNotFound() *GetPeerEntryNotFound

NewGetPeerEntryNotFound creates a GetPeerEntryNotFound with default headers values

func (*GetPeerEntryNotFound) Error

func (o *GetPeerEntryNotFound) Error() string

func (*GetPeerEntryNotFound) GetPayload

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

type GetPeerEntryOK

type GetPeerEntryOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetPeerEntryOKBody
}

GetPeerEntryOK handles this case with default header values.

Successful operation

func NewGetPeerEntryOK

func NewGetPeerEntryOK() *GetPeerEntryOK

NewGetPeerEntryOK creates a GetPeerEntryOK with default headers values

func (*GetPeerEntryOK) Error

func (o *GetPeerEntryOK) Error() string

func (*GetPeerEntryOK) GetPayload

func (o *GetPeerEntryOK) GetPayload() *GetPeerEntryOKBody

type GetPeerEntryOKBody

type GetPeerEntryOKBody struct {

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

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

GetPeerEntryOKBody get peer entry o k body swagger:model GetPeerEntryOKBody

func (*GetPeerEntryOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetPeerEntryOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetPeerEntryOKBody) Validate

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

Validate validates this get peer entry o k body

type GetPeerEntryParams

type GetPeerEntryParams struct {

	/*Name
	  PeerEntry name

	*/
	Name string
	/*PeerSection
	  Parent peers name

	*/
	PeerSection 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
}

GetPeerEntryParams contains all the parameters to send to the API endpoint for the get peer entry operation typically these are written to a http.Request

func NewGetPeerEntryParams

func NewGetPeerEntryParams() *GetPeerEntryParams

NewGetPeerEntryParams creates a new GetPeerEntryParams object with the default values initialized.

func NewGetPeerEntryParamsWithContext

func NewGetPeerEntryParamsWithContext(ctx context.Context) *GetPeerEntryParams

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

func NewGetPeerEntryParamsWithHTTPClient

func NewGetPeerEntryParamsWithHTTPClient(client *http.Client) *GetPeerEntryParams

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

func NewGetPeerEntryParamsWithTimeout

func NewGetPeerEntryParamsWithTimeout(timeout time.Duration) *GetPeerEntryParams

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

func (*GetPeerEntryParams) SetContext

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

SetContext adds the context to the get peer entry params

func (*GetPeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get peer entry params

func (*GetPeerEntryParams) SetName

func (o *GetPeerEntryParams) SetName(name string)

SetName adds the name to the get peer entry params

func (*GetPeerEntryParams) SetPeerSection

func (o *GetPeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the get peer entry params

func (*GetPeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the get peer entry params

func (*GetPeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get peer entry params

func (*GetPeerEntryParams) WithContext

WithContext adds the context to the get peer entry params

func (*GetPeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get peer entry params

func (*GetPeerEntryParams) WithName

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

WithName adds the name to the get peer entry params

func (*GetPeerEntryParams) WithPeerSection

func (o *GetPeerEntryParams) WithPeerSection(peerSection string) *GetPeerEntryParams

WithPeerSection adds the peerSection to the get peer entry params

func (*GetPeerEntryParams) WithTimeout

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

WithTimeout adds the timeout to the get peer entry params

func (*GetPeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get peer entry params

func (*GetPeerEntryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPeerEntryReader

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

GetPeerEntryReader is a Reader for the GetPeerEntry structure.

func (*GetPeerEntryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplacePeerEntryAccepted

type ReplacePeerEntryAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.PeerEntry
}

ReplacePeerEntryAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplacePeerEntryAccepted

func NewReplacePeerEntryAccepted() *ReplacePeerEntryAccepted

NewReplacePeerEntryAccepted creates a ReplacePeerEntryAccepted with default headers values

func (*ReplacePeerEntryAccepted) Error

func (o *ReplacePeerEntryAccepted) Error() string

func (*ReplacePeerEntryAccepted) GetPayload

func (o *ReplacePeerEntryAccepted) GetPayload() *models.PeerEntry

type ReplacePeerEntryBadRequest

type ReplacePeerEntryBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplacePeerEntryBadRequest handles this case with default header values.

Bad request

func NewReplacePeerEntryBadRequest

func NewReplacePeerEntryBadRequest() *ReplacePeerEntryBadRequest

NewReplacePeerEntryBadRequest creates a ReplacePeerEntryBadRequest with default headers values

func (*ReplacePeerEntryBadRequest) Error

func (*ReplacePeerEntryBadRequest) GetPayload

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

type ReplacePeerEntryDefault

type ReplacePeerEntryDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplacePeerEntryDefault handles this case with default header values.

General Error

func NewReplacePeerEntryDefault

func NewReplacePeerEntryDefault(code int) *ReplacePeerEntryDefault

NewReplacePeerEntryDefault creates a ReplacePeerEntryDefault with default headers values

func (*ReplacePeerEntryDefault) Code

func (o *ReplacePeerEntryDefault) Code() int

Code gets the status code for the replace peer entry default response

func (*ReplacePeerEntryDefault) Error

func (o *ReplacePeerEntryDefault) Error() string

func (*ReplacePeerEntryDefault) GetPayload

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

type ReplacePeerEntryNotFound

type ReplacePeerEntryNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplacePeerEntryNotFound handles this case with default header values.

The specified resource was not found

func NewReplacePeerEntryNotFound

func NewReplacePeerEntryNotFound() *ReplacePeerEntryNotFound

NewReplacePeerEntryNotFound creates a ReplacePeerEntryNotFound with default headers values

func (*ReplacePeerEntryNotFound) Error

func (o *ReplacePeerEntryNotFound) Error() string

func (*ReplacePeerEntryNotFound) GetPayload

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

type ReplacePeerEntryOK

type ReplacePeerEntryOK struct {
	Payload *models.PeerEntry
}

ReplacePeerEntryOK handles this case with default header values.

PeerEntry replaced

func NewReplacePeerEntryOK

func NewReplacePeerEntryOK() *ReplacePeerEntryOK

NewReplacePeerEntryOK creates a ReplacePeerEntryOK with default headers values

func (*ReplacePeerEntryOK) Error

func (o *ReplacePeerEntryOK) Error() string

func (*ReplacePeerEntryOK) GetPayload

func (o *ReplacePeerEntryOK) GetPayload() *models.PeerEntry

type ReplacePeerEntryParams

type ReplacePeerEntryParams struct {

	/*Data*/
	Data *models.PeerEntry
	/*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
	  PeerEntry name

	*/
	Name string
	/*PeerSection
	  Parent peers name

	*/
	PeerSection 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
}

ReplacePeerEntryParams contains all the parameters to send to the API endpoint for the replace peer entry operation typically these are written to a http.Request

func NewReplacePeerEntryParams

func NewReplacePeerEntryParams() *ReplacePeerEntryParams

NewReplacePeerEntryParams creates a new ReplacePeerEntryParams object with the default values initialized.

func NewReplacePeerEntryParamsWithContext

func NewReplacePeerEntryParamsWithContext(ctx context.Context) *ReplacePeerEntryParams

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

func NewReplacePeerEntryParamsWithHTTPClient

func NewReplacePeerEntryParamsWithHTTPClient(client *http.Client) *ReplacePeerEntryParams

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

func NewReplacePeerEntryParamsWithTimeout

func NewReplacePeerEntryParamsWithTimeout(timeout time.Duration) *ReplacePeerEntryParams

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

func (*ReplacePeerEntryParams) SetContext

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

SetContext adds the context to the replace peer entry params

func (*ReplacePeerEntryParams) SetData

func (o *ReplacePeerEntryParams) SetData(data *models.PeerEntry)

SetData adds the data to the replace peer entry params

func (*ReplacePeerEntryParams) SetForceReload

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

SetForceReload adds the forceReload to the replace peer entry params

func (*ReplacePeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace peer entry params

func (*ReplacePeerEntryParams) SetName

func (o *ReplacePeerEntryParams) SetName(name string)

SetName adds the name to the replace peer entry params

func (*ReplacePeerEntryParams) SetPeerSection

func (o *ReplacePeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the replace peer entry params

func (*ReplacePeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the replace peer entry params

func (*ReplacePeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace peer entry params

func (*ReplacePeerEntryParams) SetVersion

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

SetVersion adds the version to the replace peer entry params

func (*ReplacePeerEntryParams) WithContext

WithContext adds the context to the replace peer entry params

func (*ReplacePeerEntryParams) WithData

WithData adds the data to the replace peer entry params

func (*ReplacePeerEntryParams) WithForceReload

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

WithForceReload adds the forceReload to the replace peer entry params

func (*ReplacePeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace peer entry params

func (*ReplacePeerEntryParams) WithName

WithName adds the name to the replace peer entry params

func (*ReplacePeerEntryParams) WithPeerSection

func (o *ReplacePeerEntryParams) WithPeerSection(peerSection string) *ReplacePeerEntryParams

WithPeerSection adds the peerSection to the replace peer entry params

func (*ReplacePeerEntryParams) WithTimeout

WithTimeout adds the timeout to the replace peer entry params

func (*ReplacePeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace peer entry params

func (*ReplacePeerEntryParams) WithVersion

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

WithVersion adds the version to the replace peer entry params

func (*ReplacePeerEntryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplacePeerEntryReader

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

ReplacePeerEntryReader is a Reader for the ReplacePeerEntry structure.

func (*ReplacePeerEntryReader) ReadResponse

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