http_check

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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 http check API

func (*Client) CreateHTTPCheck

CreateHTTPCheck adds a new HTTP check

Adds a new HTTP check of the specified type in the specified parent.

func (*Client) DeleteHTTPCheck

DeleteHTTPCheck deletes a HTTP check

Deletes a HTTP check configuration by it's index from the specified parent.

func (*Client) GetHTTPCheck

func (a *Client) GetHTTPCheck(params *GetHTTPCheckParams, authInfo runtime.ClientAuthInfoWriter) (*GetHTTPCheckOK, error)

GetHTTPCheck returns one HTTP check

Returns one HTTP check configuration by it's index in the specified parent.

func (*Client) GetHTTPChecks

func (a *Client) GetHTTPChecks(params *GetHTTPChecksParams, authInfo runtime.ClientAuthInfoWriter) (*GetHTTPChecksOK, error)

GetHTTPChecks returns an array of HTTP checks

Returns all HTTP checks that are configured in specified parent.

func (*Client) ReplaceHTTPCheck

ReplaceHTTPCheck replaces a HTTP check

Replaces a HTTP Check configuration by it's index in the specified parent.

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 http check API client.

type CreateHTTPCheckAccepted

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

	Payload *models.HTTPCheck
}

CreateHTTPCheckAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateHTTPCheckAccepted

func NewCreateHTTPCheckAccepted() *CreateHTTPCheckAccepted

NewCreateHTTPCheckAccepted creates a CreateHTTPCheckAccepted with default headers values

func (*CreateHTTPCheckAccepted) Error

func (o *CreateHTTPCheckAccepted) Error() string

func (*CreateHTTPCheckAccepted) GetPayload

func (o *CreateHTTPCheckAccepted) GetPayload() *models.HTTPCheck

type CreateHTTPCheckBadRequest

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

	Payload *models.Error
}

CreateHTTPCheckBadRequest handles this case with default header values.

Bad request

func NewCreateHTTPCheckBadRequest

func NewCreateHTTPCheckBadRequest() *CreateHTTPCheckBadRequest

NewCreateHTTPCheckBadRequest creates a CreateHTTPCheckBadRequest with default headers values

func (*CreateHTTPCheckBadRequest) Error

func (o *CreateHTTPCheckBadRequest) Error() string

func (*CreateHTTPCheckBadRequest) GetPayload

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

type CreateHTTPCheckConflict

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

	Payload *models.Error
}

CreateHTTPCheckConflict handles this case with default header values.

The specified resource already exists

func NewCreateHTTPCheckConflict

func NewCreateHTTPCheckConflict() *CreateHTTPCheckConflict

NewCreateHTTPCheckConflict creates a CreateHTTPCheckConflict with default headers values

func (*CreateHTTPCheckConflict) Error

func (o *CreateHTTPCheckConflict) Error() string

func (*CreateHTTPCheckConflict) GetPayload

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

type CreateHTTPCheckCreated

type CreateHTTPCheckCreated struct {
	Payload *models.HTTPCheck
}

CreateHTTPCheckCreated handles this case with default header values.

HTTP check created

func NewCreateHTTPCheckCreated

func NewCreateHTTPCheckCreated() *CreateHTTPCheckCreated

NewCreateHTTPCheckCreated creates a CreateHTTPCheckCreated with default headers values

func (*CreateHTTPCheckCreated) Error

func (o *CreateHTTPCheckCreated) Error() string

func (*CreateHTTPCheckCreated) GetPayload

func (o *CreateHTTPCheckCreated) GetPayload() *models.HTTPCheck

type CreateHTTPCheckDefault

type CreateHTTPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

CreateHTTPCheckDefault handles this case with default header values.

General Error

func NewCreateHTTPCheckDefault

func NewCreateHTTPCheckDefault(code int) *CreateHTTPCheckDefault

NewCreateHTTPCheckDefault creates a CreateHTTPCheckDefault with default headers values

func (*CreateHTTPCheckDefault) Code

func (o *CreateHTTPCheckDefault) Code() int

Code gets the status code for the create HTTP check default response

func (*CreateHTTPCheckDefault) Error

func (o *CreateHTTPCheckDefault) Error() string

func (*CreateHTTPCheckDefault) GetPayload

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

type CreateHTTPCheckParams

type CreateHTTPCheckParams struct {

	/*Data*/
	Data *models.HTTPCheck
	/*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
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

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

CreateHTTPCheckParams contains all the parameters to send to the API endpoint for the create HTTP check operation typically these are written to a http.Request

func NewCreateHTTPCheckParams

func NewCreateHTTPCheckParams() *CreateHTTPCheckParams

NewCreateHTTPCheckParams creates a new CreateHTTPCheckParams object with the default values initialized.

func NewCreateHTTPCheckParamsWithContext

func NewCreateHTTPCheckParamsWithContext(ctx context.Context) *CreateHTTPCheckParams

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

func NewCreateHTTPCheckParamsWithHTTPClient

func NewCreateHTTPCheckParamsWithHTTPClient(client *http.Client) *CreateHTTPCheckParams

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

func NewCreateHTTPCheckParamsWithTimeout

func NewCreateHTTPCheckParamsWithTimeout(timeout time.Duration) *CreateHTTPCheckParams

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

func (*CreateHTTPCheckParams) SetContext

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

SetContext adds the context to the create HTTP check params

func (*CreateHTTPCheckParams) SetData

func (o *CreateHTTPCheckParams) SetData(data *models.HTTPCheck)

SetData adds the data to the create HTTP check params

func (*CreateHTTPCheckParams) SetForceReload

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

SetForceReload adds the forceReload to the create HTTP check params

func (*CreateHTTPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create HTTP check params

func (*CreateHTTPCheckParams) SetParentName

func (o *CreateHTTPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the create HTTP check params

func (*CreateHTTPCheckParams) SetParentType

func (o *CreateHTTPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the create HTTP check params

func (*CreateHTTPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the create HTTP check params

func (*CreateHTTPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create HTTP check params

func (*CreateHTTPCheckParams) SetVersion

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

SetVersion adds the version to the create HTTP check params

func (*CreateHTTPCheckParams) WithContext

WithContext adds the context to the create HTTP check params

func (*CreateHTTPCheckParams) WithData

WithData adds the data to the create HTTP check params

func (*CreateHTTPCheckParams) WithForceReload

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

WithForceReload adds the forceReload to the create HTTP check params

func (*CreateHTTPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create HTTP check params

func (*CreateHTTPCheckParams) WithParentName

func (o *CreateHTTPCheckParams) WithParentName(parentName *string) *CreateHTTPCheckParams

WithParentName adds the parentName to the create HTTP check params

func (*CreateHTTPCheckParams) WithParentType

func (o *CreateHTTPCheckParams) WithParentType(parentType string) *CreateHTTPCheckParams

WithParentType adds the parentType to the create HTTP check params

func (*CreateHTTPCheckParams) WithTimeout

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

WithTimeout adds the timeout to the create HTTP check params

func (*CreateHTTPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create HTTP check params

func (*CreateHTTPCheckParams) WithVersion

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

WithVersion adds the version to the create HTTP check params

func (*CreateHTTPCheckParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateHTTPCheckReader

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

CreateHTTPCheckReader is a Reader for the CreateHTTPCheck structure.

func (*CreateHTTPCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteHTTPCheckAccepted

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

DeleteHTTPCheckAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteHTTPCheckAccepted

func NewDeleteHTTPCheckAccepted() *DeleteHTTPCheckAccepted

NewDeleteHTTPCheckAccepted creates a DeleteHTTPCheckAccepted with default headers values

func (*DeleteHTTPCheckAccepted) Error

func (o *DeleteHTTPCheckAccepted) Error() string

type DeleteHTTPCheckDefault

type DeleteHTTPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

DeleteHTTPCheckDefault handles this case with default header values.

General Error

func NewDeleteHTTPCheckDefault

func NewDeleteHTTPCheckDefault(code int) *DeleteHTTPCheckDefault

NewDeleteHTTPCheckDefault creates a DeleteHTTPCheckDefault with default headers values

func (*DeleteHTTPCheckDefault) Code

func (o *DeleteHTTPCheckDefault) Code() int

Code gets the status code for the delete HTTP check default response

func (*DeleteHTTPCheckDefault) Error

func (o *DeleteHTTPCheckDefault) Error() string

func (*DeleteHTTPCheckDefault) GetPayload

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

type DeleteHTTPCheckNoContent

type DeleteHTTPCheckNoContent struct {
}

DeleteHTTPCheckNoContent handles this case with default header values.

HTTP check deleted

func NewDeleteHTTPCheckNoContent

func NewDeleteHTTPCheckNoContent() *DeleteHTTPCheckNoContent

NewDeleteHTTPCheckNoContent creates a DeleteHTTPCheckNoContent with default headers values

func (*DeleteHTTPCheckNoContent) Error

func (o *DeleteHTTPCheckNoContent) Error() string

type DeleteHTTPCheckNotFound

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

	Payload *models.Error
}

DeleteHTTPCheckNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteHTTPCheckNotFound

func NewDeleteHTTPCheckNotFound() *DeleteHTTPCheckNotFound

NewDeleteHTTPCheckNotFound creates a DeleteHTTPCheckNotFound with default headers values

func (*DeleteHTTPCheckNotFound) Error

func (o *DeleteHTTPCheckNotFound) Error() string

func (*DeleteHTTPCheckNotFound) GetPayload

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

type DeleteHTTPCheckParams

type DeleteHTTPCheckParams 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
	/*Index
	  HTTP check Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

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

DeleteHTTPCheckParams contains all the parameters to send to the API endpoint for the delete HTTP check operation typically these are written to a http.Request

func NewDeleteHTTPCheckParams

func NewDeleteHTTPCheckParams() *DeleteHTTPCheckParams

NewDeleteHTTPCheckParams creates a new DeleteHTTPCheckParams object with the default values initialized.

func NewDeleteHTTPCheckParamsWithContext

func NewDeleteHTTPCheckParamsWithContext(ctx context.Context) *DeleteHTTPCheckParams

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

func NewDeleteHTTPCheckParamsWithHTTPClient

func NewDeleteHTTPCheckParamsWithHTTPClient(client *http.Client) *DeleteHTTPCheckParams

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

func NewDeleteHTTPCheckParamsWithTimeout

func NewDeleteHTTPCheckParamsWithTimeout(timeout time.Duration) *DeleteHTTPCheckParams

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

func (*DeleteHTTPCheckParams) SetContext

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

SetContext adds the context to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetForceReload

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

SetForceReload adds the forceReload to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetIndex

func (o *DeleteHTTPCheckParams) SetIndex(index int64)

SetIndex adds the index to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetParentName

func (o *DeleteHTTPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetParentType

func (o *DeleteHTTPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete HTTP check params

func (*DeleteHTTPCheckParams) SetVersion

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

SetVersion adds the version to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithContext

WithContext adds the context to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithForceReload

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

WithForceReload adds the forceReload to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithIndex

func (o *DeleteHTTPCheckParams) WithIndex(index int64) *DeleteHTTPCheckParams

WithIndex adds the index to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithParentName

func (o *DeleteHTTPCheckParams) WithParentName(parentName *string) *DeleteHTTPCheckParams

WithParentName adds the parentName to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithParentType

func (o *DeleteHTTPCheckParams) WithParentType(parentType string) *DeleteHTTPCheckParams

WithParentType adds the parentType to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithTimeout

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

WithTimeout adds the timeout to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete HTTP check params

func (*DeleteHTTPCheckParams) WithVersion

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

WithVersion adds the version to the delete HTTP check params

func (*DeleteHTTPCheckParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteHTTPCheckReader

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

DeleteHTTPCheckReader is a Reader for the DeleteHTTPCheck structure.

func (*DeleteHTTPCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHTTPCheckDefault

type GetHTTPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetHTTPCheckDefault handles this case with default header values.

General Error

func NewGetHTTPCheckDefault

func NewGetHTTPCheckDefault(code int) *GetHTTPCheckDefault

NewGetHTTPCheckDefault creates a GetHTTPCheckDefault with default headers values

func (*GetHTTPCheckDefault) Code

func (o *GetHTTPCheckDefault) Code() int

Code gets the status code for the get HTTP check default response

func (*GetHTTPCheckDefault) Error

func (o *GetHTTPCheckDefault) Error() string

func (*GetHTTPCheckDefault) GetPayload

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

type GetHTTPCheckNotFound

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

	Payload *models.Error
}

GetHTTPCheckNotFound handles this case with default header values.

The specified resource was not found

func NewGetHTTPCheckNotFound

func NewGetHTTPCheckNotFound() *GetHTTPCheckNotFound

NewGetHTTPCheckNotFound creates a GetHTTPCheckNotFound with default headers values

func (*GetHTTPCheckNotFound) Error

func (o *GetHTTPCheckNotFound) Error() string

func (*GetHTTPCheckNotFound) GetPayload

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

type GetHTTPCheckOK

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

	Payload *GetHTTPCheckOKBody
}

GetHTTPCheckOK handles this case with default header values.

Successful operation

func NewGetHTTPCheckOK

func NewGetHTTPCheckOK() *GetHTTPCheckOK

NewGetHTTPCheckOK creates a GetHTTPCheckOK with default headers values

func (*GetHTTPCheckOK) Error

func (o *GetHTTPCheckOK) Error() string

func (*GetHTTPCheckOK) GetPayload

func (o *GetHTTPCheckOK) GetPayload() *GetHTTPCheckOKBody

type GetHTTPCheckOKBody

type GetHTTPCheckOKBody struct {

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

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

GetHTTPCheckOKBody get HTTP check o k body swagger:model GetHTTPCheckOKBody

func (*GetHTTPCheckOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPCheckOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPCheckOKBody) Validate

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

Validate validates this get HTTP check o k body

type GetHTTPCheckParams

type GetHTTPCheckParams struct {

	/*Index
	  HTTP Check Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

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

GetHTTPCheckParams contains all the parameters to send to the API endpoint for the get HTTP check operation typically these are written to a http.Request

func NewGetHTTPCheckParams

func NewGetHTTPCheckParams() *GetHTTPCheckParams

NewGetHTTPCheckParams creates a new GetHTTPCheckParams object with the default values initialized.

func NewGetHTTPCheckParamsWithContext

func NewGetHTTPCheckParamsWithContext(ctx context.Context) *GetHTTPCheckParams

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

func NewGetHTTPCheckParamsWithHTTPClient

func NewGetHTTPCheckParamsWithHTTPClient(client *http.Client) *GetHTTPCheckParams

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

func NewGetHTTPCheckParamsWithTimeout

func NewGetHTTPCheckParamsWithTimeout(timeout time.Duration) *GetHTTPCheckParams

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

func (*GetHTTPCheckParams) SetContext

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

SetContext adds the context to the get HTTP check params

func (*GetHTTPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get HTTP check params

func (*GetHTTPCheckParams) SetIndex

func (o *GetHTTPCheckParams) SetIndex(index int64)

SetIndex adds the index to the get HTTP check params

func (*GetHTTPCheckParams) SetParentName

func (o *GetHTTPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the get HTTP check params

func (*GetHTTPCheckParams) SetParentType

func (o *GetHTTPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the get HTTP check params

func (*GetHTTPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the get HTTP check params

func (*GetHTTPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get HTTP check params

func (*GetHTTPCheckParams) WithContext

WithContext adds the context to the get HTTP check params

func (*GetHTTPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get HTTP check params

func (*GetHTTPCheckParams) WithIndex

func (o *GetHTTPCheckParams) WithIndex(index int64) *GetHTTPCheckParams

WithIndex adds the index to the get HTTP check params

func (*GetHTTPCheckParams) WithParentName

func (o *GetHTTPCheckParams) WithParentName(parentName *string) *GetHTTPCheckParams

WithParentName adds the parentName to the get HTTP check params

func (*GetHTTPCheckParams) WithParentType

func (o *GetHTTPCheckParams) WithParentType(parentType string) *GetHTTPCheckParams

WithParentType adds the parentType to the get HTTP check params

func (*GetHTTPCheckParams) WithTimeout

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

WithTimeout adds the timeout to the get HTTP check params

func (*GetHTTPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get HTTP check params

func (*GetHTTPCheckParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHTTPCheckReader

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

GetHTTPCheckReader is a Reader for the GetHTTPCheck structure.

func (*GetHTTPCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHTTPChecksDefault

type GetHTTPChecksDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetHTTPChecksDefault handles this case with default header values.

General Error

func NewGetHTTPChecksDefault

func NewGetHTTPChecksDefault(code int) *GetHTTPChecksDefault

NewGetHTTPChecksDefault creates a GetHTTPChecksDefault with default headers values

func (*GetHTTPChecksDefault) Code

func (o *GetHTTPChecksDefault) Code() int

Code gets the status code for the get HTTP checks default response

func (*GetHTTPChecksDefault) Error

func (o *GetHTTPChecksDefault) Error() string

func (*GetHTTPChecksDefault) GetPayload

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

type GetHTTPChecksOK

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

	Payload *GetHTTPChecksOKBody
}

GetHTTPChecksOK handles this case with default header values.

Successful operation

func NewGetHTTPChecksOK

func NewGetHTTPChecksOK() *GetHTTPChecksOK

NewGetHTTPChecksOK creates a GetHTTPChecksOK with default headers values

func (*GetHTTPChecksOK) Error

func (o *GetHTTPChecksOK) Error() string

func (*GetHTTPChecksOK) GetPayload

func (o *GetHTTPChecksOK) GetPayload() *GetHTTPChecksOKBody

type GetHTTPChecksOKBody

type GetHTTPChecksOKBody struct {

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

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

GetHTTPChecksOKBody get HTTP checks o k body swagger:model GetHTTPChecksOKBody

func (*GetHTTPChecksOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPChecksOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPChecksOKBody) Validate

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

Validate validates this get HTTP checks o k body

type GetHTTPChecksParams

type GetHTTPChecksParams struct {

	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

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

GetHTTPChecksParams contains all the parameters to send to the API endpoint for the get HTTP checks operation typically these are written to a http.Request

func NewGetHTTPChecksParams

func NewGetHTTPChecksParams() *GetHTTPChecksParams

NewGetHTTPChecksParams creates a new GetHTTPChecksParams object with the default values initialized.

func NewGetHTTPChecksParamsWithContext

func NewGetHTTPChecksParamsWithContext(ctx context.Context) *GetHTTPChecksParams

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

func NewGetHTTPChecksParamsWithHTTPClient

func NewGetHTTPChecksParamsWithHTTPClient(client *http.Client) *GetHTTPChecksParams

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

func NewGetHTTPChecksParamsWithTimeout

func NewGetHTTPChecksParamsWithTimeout(timeout time.Duration) *GetHTTPChecksParams

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

func (*GetHTTPChecksParams) SetContext

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

SetContext adds the context to the get HTTP checks params

func (*GetHTTPChecksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get HTTP checks params

func (*GetHTTPChecksParams) SetParentName

func (o *GetHTTPChecksParams) SetParentName(parentName *string)

SetParentName adds the parentName to the get HTTP checks params

func (*GetHTTPChecksParams) SetParentType

func (o *GetHTTPChecksParams) SetParentType(parentType string)

SetParentType adds the parentType to the get HTTP checks params

func (*GetHTTPChecksParams) SetTimeout

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

SetTimeout adds the timeout to the get HTTP checks params

func (*GetHTTPChecksParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get HTTP checks params

func (*GetHTTPChecksParams) WithContext

WithContext adds the context to the get HTTP checks params

func (*GetHTTPChecksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get HTTP checks params

func (*GetHTTPChecksParams) WithParentName

func (o *GetHTTPChecksParams) WithParentName(parentName *string) *GetHTTPChecksParams

WithParentName adds the parentName to the get HTTP checks params

func (*GetHTTPChecksParams) WithParentType

func (o *GetHTTPChecksParams) WithParentType(parentType string) *GetHTTPChecksParams

WithParentType adds the parentType to the get HTTP checks params

func (*GetHTTPChecksParams) WithTimeout

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

WithTimeout adds the timeout to the get HTTP checks params

func (*GetHTTPChecksParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get HTTP checks params

func (*GetHTTPChecksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHTTPChecksReader

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

GetHTTPChecksReader is a Reader for the GetHTTPChecks structure.

func (*GetHTTPChecksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceHTTPCheckAccepted

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

	Payload *models.HTTPCheck
}

ReplaceHTTPCheckAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceHTTPCheckAccepted

func NewReplaceHTTPCheckAccepted() *ReplaceHTTPCheckAccepted

NewReplaceHTTPCheckAccepted creates a ReplaceHTTPCheckAccepted with default headers values

func (*ReplaceHTTPCheckAccepted) Error

func (o *ReplaceHTTPCheckAccepted) Error() string

func (*ReplaceHTTPCheckAccepted) GetPayload

func (o *ReplaceHTTPCheckAccepted) GetPayload() *models.HTTPCheck

type ReplaceHTTPCheckBadRequest

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

	Payload *models.Error
}

ReplaceHTTPCheckBadRequest handles this case with default header values.

Bad request

func NewReplaceHTTPCheckBadRequest

func NewReplaceHTTPCheckBadRequest() *ReplaceHTTPCheckBadRequest

NewReplaceHTTPCheckBadRequest creates a ReplaceHTTPCheckBadRequest with default headers values

func (*ReplaceHTTPCheckBadRequest) Error

func (*ReplaceHTTPCheckBadRequest) GetPayload

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

type ReplaceHTTPCheckDefault

type ReplaceHTTPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceHTTPCheckDefault handles this case with default header values.

General Error

func NewReplaceHTTPCheckDefault

func NewReplaceHTTPCheckDefault(code int) *ReplaceHTTPCheckDefault

NewReplaceHTTPCheckDefault creates a ReplaceHTTPCheckDefault with default headers values

func (*ReplaceHTTPCheckDefault) Code

func (o *ReplaceHTTPCheckDefault) Code() int

Code gets the status code for the replace HTTP check default response

func (*ReplaceHTTPCheckDefault) Error

func (o *ReplaceHTTPCheckDefault) Error() string

func (*ReplaceHTTPCheckDefault) GetPayload

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

type ReplaceHTTPCheckNotFound

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

	Payload *models.Error
}

ReplaceHTTPCheckNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceHTTPCheckNotFound

func NewReplaceHTTPCheckNotFound() *ReplaceHTTPCheckNotFound

NewReplaceHTTPCheckNotFound creates a ReplaceHTTPCheckNotFound with default headers values

func (*ReplaceHTTPCheckNotFound) Error

func (o *ReplaceHTTPCheckNotFound) Error() string

func (*ReplaceHTTPCheckNotFound) GetPayload

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

type ReplaceHTTPCheckOK

type ReplaceHTTPCheckOK struct {
	Payload *models.HTTPCheck
}

ReplaceHTTPCheckOK handles this case with default header values.

HTTP check replaced

func NewReplaceHTTPCheckOK

func NewReplaceHTTPCheckOK() *ReplaceHTTPCheckOK

NewReplaceHTTPCheckOK creates a ReplaceHTTPCheckOK with default headers values

func (*ReplaceHTTPCheckOK) Error

func (o *ReplaceHTTPCheckOK) Error() string

func (*ReplaceHTTPCheckOK) GetPayload

func (o *ReplaceHTTPCheckOK) GetPayload() *models.HTTPCheck

type ReplaceHTTPCheckParams

type ReplaceHTTPCheckParams struct {

	/*Data*/
	Data *models.HTTPCheck
	/*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
	/*Index
	  HTTP Check Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

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

ReplaceHTTPCheckParams contains all the parameters to send to the API endpoint for the replace HTTP check operation typically these are written to a http.Request

func NewReplaceHTTPCheckParams

func NewReplaceHTTPCheckParams() *ReplaceHTTPCheckParams

NewReplaceHTTPCheckParams creates a new ReplaceHTTPCheckParams object with the default values initialized.

func NewReplaceHTTPCheckParamsWithContext

func NewReplaceHTTPCheckParamsWithContext(ctx context.Context) *ReplaceHTTPCheckParams

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

func NewReplaceHTTPCheckParamsWithHTTPClient

func NewReplaceHTTPCheckParamsWithHTTPClient(client *http.Client) *ReplaceHTTPCheckParams

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

func NewReplaceHTTPCheckParamsWithTimeout

func NewReplaceHTTPCheckParamsWithTimeout(timeout time.Duration) *ReplaceHTTPCheckParams

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

func (*ReplaceHTTPCheckParams) SetContext

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

SetContext adds the context to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetData

func (o *ReplaceHTTPCheckParams) SetData(data *models.HTTPCheck)

SetData adds the data to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetForceReload

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

SetForceReload adds the forceReload to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetIndex

func (o *ReplaceHTTPCheckParams) SetIndex(index int64)

SetIndex adds the index to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetParentName

func (o *ReplaceHTTPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetParentType

func (o *ReplaceHTTPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace HTTP check params

func (*ReplaceHTTPCheckParams) SetVersion

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

SetVersion adds the version to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithContext

WithContext adds the context to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithData

WithData adds the data to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithForceReload

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

WithForceReload adds the forceReload to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithIndex

WithIndex adds the index to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithParentName

func (o *ReplaceHTTPCheckParams) WithParentName(parentName *string) *ReplaceHTTPCheckParams

WithParentName adds the parentName to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithParentType

func (o *ReplaceHTTPCheckParams) WithParentType(parentType string) *ReplaceHTTPCheckParams

WithParentType adds the parentType to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithTimeout

WithTimeout adds the timeout to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WithVersion

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

WithVersion adds the version to the replace HTTP check params

func (*ReplaceHTTPCheckParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceHTTPCheckReader

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

ReplaceHTTPCheckReader is a Reader for the ReplaceHTTPCheck structure.

func (*ReplaceHTTPCheckReader) ReadResponse

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