service_discovery

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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 service discovery API

func (*Client) CreateConsul

func (a *Client) CreateConsul(params *CreateConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConsulCreated, error)

CreateConsul adds a new consul server

Adds a new Consul server.

func (*Client) DeleteConsul

func (a *Client) DeleteConsul(params *DeleteConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConsulNoContent, error)

DeleteConsul deletes a consul server

Deletes a Consul server configuration by it's id.

func (*Client) GetConsul

func (a *Client) GetConsul(params *GetConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsulOK, error)

GetConsul returns one consul server

Returns one Consul server configuration by it's id.

func (*Client) GetConsuls

func (a *Client) GetConsuls(params *GetConsulsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsulsOK, error)

GetConsuls returns an array of all configured consul servers

Returns all configured Consul servers.

func (*Client) ReplaceConsul

func (a *Client) ReplaceConsul(params *ReplaceConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceConsulOK, error)

ReplaceConsul replaces a consul server

Replaces a Consul server configuration by it's id.

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 {
	CreateConsul(params *CreateConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConsulCreated, error)

	DeleteConsul(params *DeleteConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConsulNoContent, error)

	GetConsul(params *GetConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsulOK, error)

	GetConsuls(params *GetConsulsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConsulsOK, error)

	ReplaceConsul(params *ReplaceConsulParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceConsulOK, 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 service discovery API client.

type CreateConsulBadRequest

type CreateConsulBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}
CreateConsulBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateConsulBadRequest

func NewCreateConsulBadRequest() *CreateConsulBadRequest

NewCreateConsulBadRequest creates a CreateConsulBadRequest with default headers values

func (*CreateConsulBadRequest) Error

func (o *CreateConsulBadRequest) Error() string

func (*CreateConsulBadRequest) GetPayload

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

type CreateConsulConflict

type CreateConsulConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}
CreateConsulConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateConsulConflict

func NewCreateConsulConflict() *CreateConsulConflict

NewCreateConsulConflict creates a CreateConsulConflict with default headers values

func (*CreateConsulConflict) Error

func (o *CreateConsulConflict) Error() string

func (*CreateConsulConflict) GetPayload

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

type CreateConsulCreated

type CreateConsulCreated struct {
	Payload *models.Consul
}
CreateConsulCreated describes a response with status code 201, with default header values.

Consul created

func NewCreateConsulCreated

func NewCreateConsulCreated() *CreateConsulCreated

NewCreateConsulCreated creates a CreateConsulCreated with default headers values

func (*CreateConsulCreated) Error

func (o *CreateConsulCreated) Error() string

func (*CreateConsulCreated) GetPayload

func (o *CreateConsulCreated) GetPayload() *models.Consul

type CreateConsulDefault

type CreateConsulDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}
CreateConsulDefault describes a response with status code -1, with default header values.

General Error

func NewCreateConsulDefault

func NewCreateConsulDefault(code int) *CreateConsulDefault

NewCreateConsulDefault creates a CreateConsulDefault with default headers values

func (*CreateConsulDefault) Code

func (o *CreateConsulDefault) Code() int

Code gets the status code for the create consul default response

func (*CreateConsulDefault) Error

func (o *CreateConsulDefault) Error() string

func (*CreateConsulDefault) GetPayload

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

type CreateConsulParams

type CreateConsulParams struct {

	// Data.
	Data *models.Consul

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

CreateConsulParams contains all the parameters to send to the API endpoint

for the create consul operation.

Typically these are written to a http.Request.

func NewCreateConsulParams

func NewCreateConsulParams() *CreateConsulParams

NewCreateConsulParams creates a new CreateConsulParams 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 NewCreateConsulParamsWithContext

func NewCreateConsulParamsWithContext(ctx context.Context) *CreateConsulParams

NewCreateConsulParamsWithContext creates a new CreateConsulParams object with the ability to set a context for a request.

func NewCreateConsulParamsWithHTTPClient

func NewCreateConsulParamsWithHTTPClient(client *http.Client) *CreateConsulParams

NewCreateConsulParamsWithHTTPClient creates a new CreateConsulParams object with the ability to set a custom HTTPClient for a request.

func NewCreateConsulParamsWithTimeout

func NewCreateConsulParamsWithTimeout(timeout time.Duration) *CreateConsulParams

NewCreateConsulParamsWithTimeout creates a new CreateConsulParams object with the ability to set a timeout on a request.

func (*CreateConsulParams) SetContext

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

SetContext adds the context to the create consul params

func (*CreateConsulParams) SetData

func (o *CreateConsulParams) SetData(data *models.Consul)

SetData adds the data to the create consul params

func (*CreateConsulParams) SetDefaults

func (o *CreateConsulParams) SetDefaults()

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

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

func (*CreateConsulParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create consul params

func (*CreateConsulParams) SetTimeout

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

SetTimeout adds the timeout to the create consul params

func (*CreateConsulParams) WithContext

WithContext adds the context to the create consul params

func (*CreateConsulParams) WithData

func (o *CreateConsulParams) WithData(data *models.Consul) *CreateConsulParams

WithData adds the data to the create consul params

func (*CreateConsulParams) WithDefaults

func (o *CreateConsulParams) WithDefaults() *CreateConsulParams

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

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

func (*CreateConsulParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create consul params

func (*CreateConsulParams) WithTimeout

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

WithTimeout adds the timeout to the create consul params

func (*CreateConsulParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateConsulReader

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

CreateConsulReader is a Reader for the CreateConsul structure.

func (*CreateConsulReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteConsulDefault

type DeleteConsulDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}
DeleteConsulDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteConsulDefault

func NewDeleteConsulDefault(code int) *DeleteConsulDefault

NewDeleteConsulDefault creates a DeleteConsulDefault with default headers values

func (*DeleteConsulDefault) Code

func (o *DeleteConsulDefault) Code() int

Code gets the status code for the delete consul default response

func (*DeleteConsulDefault) Error

func (o *DeleteConsulDefault) Error() string

func (*DeleteConsulDefault) GetPayload

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

type DeleteConsulNoContent

type DeleteConsulNoContent struct {
}
DeleteConsulNoContent describes a response with status code 204, with default header values.

Consul server deleted

func NewDeleteConsulNoContent

func NewDeleteConsulNoContent() *DeleteConsulNoContent

NewDeleteConsulNoContent creates a DeleteConsulNoContent with default headers values

func (*DeleteConsulNoContent) Error

func (o *DeleteConsulNoContent) Error() string

type DeleteConsulNotFound

type DeleteConsulNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}
DeleteConsulNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeleteConsulNotFound

func NewDeleteConsulNotFound() *DeleteConsulNotFound

NewDeleteConsulNotFound creates a DeleteConsulNotFound with default headers values

func (*DeleteConsulNotFound) Error

func (o *DeleteConsulNotFound) Error() string

func (*DeleteConsulNotFound) GetPayload

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

type DeleteConsulParams

type DeleteConsulParams struct {

	/* ID.

	   Consul server Index
	*/
	ID string

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

DeleteConsulParams contains all the parameters to send to the API endpoint

for the delete consul operation.

Typically these are written to a http.Request.

func NewDeleteConsulParams

func NewDeleteConsulParams() *DeleteConsulParams

NewDeleteConsulParams creates a new DeleteConsulParams 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 NewDeleteConsulParamsWithContext

func NewDeleteConsulParamsWithContext(ctx context.Context) *DeleteConsulParams

NewDeleteConsulParamsWithContext creates a new DeleteConsulParams object with the ability to set a context for a request.

func NewDeleteConsulParamsWithHTTPClient

func NewDeleteConsulParamsWithHTTPClient(client *http.Client) *DeleteConsulParams

NewDeleteConsulParamsWithHTTPClient creates a new DeleteConsulParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteConsulParamsWithTimeout

func NewDeleteConsulParamsWithTimeout(timeout time.Duration) *DeleteConsulParams

NewDeleteConsulParamsWithTimeout creates a new DeleteConsulParams object with the ability to set a timeout on a request.

func (*DeleteConsulParams) SetContext

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

SetContext adds the context to the delete consul params

func (*DeleteConsulParams) SetDefaults

func (o *DeleteConsulParams) SetDefaults()

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

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

func (*DeleteConsulParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete consul params

func (*DeleteConsulParams) SetID

func (o *DeleteConsulParams) SetID(id string)

SetID adds the id to the delete consul params

func (*DeleteConsulParams) SetTimeout

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

SetTimeout adds the timeout to the delete consul params

func (*DeleteConsulParams) WithContext

WithContext adds the context to the delete consul params

func (*DeleteConsulParams) WithDefaults

func (o *DeleteConsulParams) WithDefaults() *DeleteConsulParams

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

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

func (*DeleteConsulParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete consul params

func (*DeleteConsulParams) WithID

WithID adds the id to the delete consul params

func (*DeleteConsulParams) WithTimeout

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

WithTimeout adds the timeout to the delete consul params

func (*DeleteConsulParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteConsulReader

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

DeleteConsulReader is a Reader for the DeleteConsul structure.

func (*DeleteConsulReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConsulDefault

type GetConsulDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}
GetConsulDefault describes a response with status code -1, with default header values.

General Error

func NewGetConsulDefault

func NewGetConsulDefault(code int) *GetConsulDefault

NewGetConsulDefault creates a GetConsulDefault with default headers values

func (*GetConsulDefault) Code

func (o *GetConsulDefault) Code() int

Code gets the status code for the get consul default response

func (*GetConsulDefault) Error

func (o *GetConsulDefault) Error() string

func (*GetConsulDefault) GetPayload

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

type GetConsulNotFound

type GetConsulNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}
GetConsulNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewGetConsulNotFound

func NewGetConsulNotFound() *GetConsulNotFound

NewGetConsulNotFound creates a GetConsulNotFound with default headers values

func (*GetConsulNotFound) Error

func (o *GetConsulNotFound) Error() string

func (*GetConsulNotFound) GetPayload

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

type GetConsulOK

type GetConsulOK struct {
	Payload *GetConsulOKBody
}
GetConsulOK describes a response with status code 200, with default header values.

Successful operation

func NewGetConsulOK

func NewGetConsulOK() *GetConsulOK

NewGetConsulOK creates a GetConsulOK with default headers values

func (*GetConsulOK) Error

func (o *GetConsulOK) Error() string

func (*GetConsulOK) GetPayload

func (o *GetConsulOK) GetPayload() *GetConsulOKBody

type GetConsulOKBody

type GetConsulOKBody struct {

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

GetConsulOKBody get consul o k body swagger:model GetConsulOKBody

func (*GetConsulOKBody) ContextValidate

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

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

func (*GetConsulOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetConsulOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetConsulOKBody) Validate

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

Validate validates this get consul o k body

type GetConsulParams

type GetConsulParams struct {

	/* ID.

	   Consul server id
	*/
	ID string

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

GetConsulParams contains all the parameters to send to the API endpoint

for the get consul operation.

Typically these are written to a http.Request.

func NewGetConsulParams

func NewGetConsulParams() *GetConsulParams

NewGetConsulParams creates a new GetConsulParams 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 NewGetConsulParamsWithContext

func NewGetConsulParamsWithContext(ctx context.Context) *GetConsulParams

NewGetConsulParamsWithContext creates a new GetConsulParams object with the ability to set a context for a request.

func NewGetConsulParamsWithHTTPClient

func NewGetConsulParamsWithHTTPClient(client *http.Client) *GetConsulParams

NewGetConsulParamsWithHTTPClient creates a new GetConsulParams object with the ability to set a custom HTTPClient for a request.

func NewGetConsulParamsWithTimeout

func NewGetConsulParamsWithTimeout(timeout time.Duration) *GetConsulParams

NewGetConsulParamsWithTimeout creates a new GetConsulParams object with the ability to set a timeout on a request.

func (*GetConsulParams) SetContext

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

SetContext adds the context to the get consul params

func (*GetConsulParams) SetDefaults

func (o *GetConsulParams) SetDefaults()

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

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

func (*GetConsulParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get consul params

func (*GetConsulParams) SetID

func (o *GetConsulParams) SetID(id string)

SetID adds the id to the get consul params

func (*GetConsulParams) SetTimeout

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

SetTimeout adds the timeout to the get consul params

func (*GetConsulParams) WithContext

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

WithContext adds the context to the get consul params

func (*GetConsulParams) WithDefaults

func (o *GetConsulParams) WithDefaults() *GetConsulParams

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

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

func (*GetConsulParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get consul params

func (*GetConsulParams) WithID

func (o *GetConsulParams) WithID(id string) *GetConsulParams

WithID adds the id to the get consul params

func (*GetConsulParams) WithTimeout

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

WithTimeout adds the timeout to the get consul params

func (*GetConsulParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConsulReader

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

GetConsulReader is a Reader for the GetConsul structure.

func (*GetConsulReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConsulsDefault

type GetConsulsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}
GetConsulsDefault describes a response with status code -1, with default header values.

General Error

func NewGetConsulsDefault

func NewGetConsulsDefault(code int) *GetConsulsDefault

NewGetConsulsDefault creates a GetConsulsDefault with default headers values

func (*GetConsulsDefault) Code

func (o *GetConsulsDefault) Code() int

Code gets the status code for the get consuls default response

func (*GetConsulsDefault) Error

func (o *GetConsulsDefault) Error() string

func (*GetConsulsDefault) GetPayload

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

type GetConsulsOK

type GetConsulsOK struct {
	Payload *GetConsulsOKBody
}
GetConsulsOK describes a response with status code 200, with default header values.

Successful operation

func NewGetConsulsOK

func NewGetConsulsOK() *GetConsulsOK

NewGetConsulsOK creates a GetConsulsOK with default headers values

func (*GetConsulsOK) Error

func (o *GetConsulsOK) Error() string

func (*GetConsulsOK) GetPayload

func (o *GetConsulsOK) GetPayload() *GetConsulsOKBody

type GetConsulsOKBody

type GetConsulsOKBody struct {

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

GetConsulsOKBody get consuls o k body swagger:model GetConsulsOKBody

func (*GetConsulsOKBody) ContextValidate

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

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

func (*GetConsulsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetConsulsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetConsulsOKBody) Validate

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

Validate validates this get consuls o k body

type GetConsulsParams

type GetConsulsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetConsulsParams contains all the parameters to send to the API endpoint

for the get consuls operation.

Typically these are written to a http.Request.

func NewGetConsulsParams

func NewGetConsulsParams() *GetConsulsParams

NewGetConsulsParams creates a new GetConsulsParams 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 NewGetConsulsParamsWithContext

func NewGetConsulsParamsWithContext(ctx context.Context) *GetConsulsParams

NewGetConsulsParamsWithContext creates a new GetConsulsParams object with the ability to set a context for a request.

func NewGetConsulsParamsWithHTTPClient

func NewGetConsulsParamsWithHTTPClient(client *http.Client) *GetConsulsParams

NewGetConsulsParamsWithHTTPClient creates a new GetConsulsParams object with the ability to set a custom HTTPClient for a request.

func NewGetConsulsParamsWithTimeout

func NewGetConsulsParamsWithTimeout(timeout time.Duration) *GetConsulsParams

NewGetConsulsParamsWithTimeout creates a new GetConsulsParams object with the ability to set a timeout on a request.

func (*GetConsulsParams) SetContext

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

SetContext adds the context to the get consuls params

func (*GetConsulsParams) SetDefaults

func (o *GetConsulsParams) SetDefaults()

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

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

func (*GetConsulsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get consuls params

func (*GetConsulsParams) SetTimeout

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

SetTimeout adds the timeout to the get consuls params

func (*GetConsulsParams) WithContext

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

WithContext adds the context to the get consuls params

func (*GetConsulsParams) WithDefaults

func (o *GetConsulsParams) WithDefaults() *GetConsulsParams

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

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

func (*GetConsulsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get consuls params

func (*GetConsulsParams) WithTimeout

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

WithTimeout adds the timeout to the get consuls params

func (*GetConsulsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConsulsReader

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

GetConsulsReader is a Reader for the GetConsuls structure.

func (*GetConsulsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceConsulBadRequest

type ReplaceConsulBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}
ReplaceConsulBadRequest describes a response with status code 400, with default header values.

Bad request

func NewReplaceConsulBadRequest

func NewReplaceConsulBadRequest() *ReplaceConsulBadRequest

NewReplaceConsulBadRequest creates a ReplaceConsulBadRequest with default headers values

func (*ReplaceConsulBadRequest) Error

func (o *ReplaceConsulBadRequest) Error() string

func (*ReplaceConsulBadRequest) GetPayload

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

type ReplaceConsulDefault

type ReplaceConsulDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}
ReplaceConsulDefault describes a response with status code -1, with default header values.

General Error

func NewReplaceConsulDefault

func NewReplaceConsulDefault(code int) *ReplaceConsulDefault

NewReplaceConsulDefault creates a ReplaceConsulDefault with default headers values

func (*ReplaceConsulDefault) Code

func (o *ReplaceConsulDefault) Code() int

Code gets the status code for the replace consul default response

func (*ReplaceConsulDefault) Error

func (o *ReplaceConsulDefault) Error() string

func (*ReplaceConsulDefault) GetPayload

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

type ReplaceConsulNotFound

type ReplaceConsulNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}
ReplaceConsulNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewReplaceConsulNotFound

func NewReplaceConsulNotFound() *ReplaceConsulNotFound

NewReplaceConsulNotFound creates a ReplaceConsulNotFound with default headers values

func (*ReplaceConsulNotFound) Error

func (o *ReplaceConsulNotFound) Error() string

func (*ReplaceConsulNotFound) GetPayload

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

type ReplaceConsulOK

type ReplaceConsulOK struct {
	Payload *models.Consul
}
ReplaceConsulOK describes a response with status code 200, with default header values.

Consul server replaced

func NewReplaceConsulOK

func NewReplaceConsulOK() *ReplaceConsulOK

NewReplaceConsulOK creates a ReplaceConsulOK with default headers values

func (*ReplaceConsulOK) Error

func (o *ReplaceConsulOK) Error() string

func (*ReplaceConsulOK) GetPayload

func (o *ReplaceConsulOK) GetPayload() *models.Consul

type ReplaceConsulParams

type ReplaceConsulParams struct {

	// Data.
	Data *models.Consul

	/* ID.

	   Consul Index
	*/
	ID string

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

ReplaceConsulParams contains all the parameters to send to the API endpoint

for the replace consul operation.

Typically these are written to a http.Request.

func NewReplaceConsulParams

func NewReplaceConsulParams() *ReplaceConsulParams

NewReplaceConsulParams creates a new ReplaceConsulParams 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 NewReplaceConsulParamsWithContext

func NewReplaceConsulParamsWithContext(ctx context.Context) *ReplaceConsulParams

NewReplaceConsulParamsWithContext creates a new ReplaceConsulParams object with the ability to set a context for a request.

func NewReplaceConsulParamsWithHTTPClient

func NewReplaceConsulParamsWithHTTPClient(client *http.Client) *ReplaceConsulParams

NewReplaceConsulParamsWithHTTPClient creates a new ReplaceConsulParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceConsulParamsWithTimeout

func NewReplaceConsulParamsWithTimeout(timeout time.Duration) *ReplaceConsulParams

NewReplaceConsulParamsWithTimeout creates a new ReplaceConsulParams object with the ability to set a timeout on a request.

func (*ReplaceConsulParams) SetContext

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

SetContext adds the context to the replace consul params

func (*ReplaceConsulParams) SetData

func (o *ReplaceConsulParams) SetData(data *models.Consul)

SetData adds the data to the replace consul params

func (*ReplaceConsulParams) SetDefaults

func (o *ReplaceConsulParams) SetDefaults()

SetDefaults hydrates default values in the replace consul params (not the query body).

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

func (*ReplaceConsulParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace consul params

func (*ReplaceConsulParams) SetID

func (o *ReplaceConsulParams) SetID(id string)

SetID adds the id to the replace consul params

func (*ReplaceConsulParams) SetTimeout

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

SetTimeout adds the timeout to the replace consul params

func (*ReplaceConsulParams) WithContext

WithContext adds the context to the replace consul params

func (*ReplaceConsulParams) WithData

WithData adds the data to the replace consul params

func (*ReplaceConsulParams) WithDefaults

func (o *ReplaceConsulParams) WithDefaults() *ReplaceConsulParams

WithDefaults hydrates default values in the replace consul params (not the query body).

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

func (*ReplaceConsulParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace consul params

func (*ReplaceConsulParams) WithID

WithID adds the id to the replace consul params

func (*ReplaceConsulParams) WithTimeout

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

WithTimeout adds the timeout to the replace consul params

func (*ReplaceConsulParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceConsulReader

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

ReplaceConsulReader is a Reader for the ReplaceConsul structure.

func (*ReplaceConsulReader) ReadResponse

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