frontend

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for frontend API

func (*Client) CreateFrontend

CreateFrontend adds a frontend

Adds a new frontend to the configuration file.

func (*Client) DeleteFrontend

DeleteFrontend deletes a frontend

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

func (*Client) GetFrontend

func (a *Client) GetFrontend(params *GetFrontendParams, authInfo runtime.ClientAuthInfoWriter) (*GetFrontendOK, error)

GetFrontend returns a frontend

Returns one frontend configuration by it's name.

func (*Client) GetFrontends

func (a *Client) GetFrontends(params *GetFrontendsParams, authInfo runtime.ClientAuthInfoWriter) (*GetFrontendsOK, error)

GetFrontends returns an array of frontends

Returns an array of all configured frontends.

func (*Client) ReplaceFrontend

ReplaceFrontend replaces a frontend

Replaces a frontend configuration by it's name.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.2.0

ClientService is the interface for Client methods

func New

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

New creates a new frontend API client.

type CreateFrontendAccepted

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

	Payload *models.Frontend
}

CreateFrontendAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateFrontendAccepted

func NewCreateFrontendAccepted() *CreateFrontendAccepted

NewCreateFrontendAccepted creates a CreateFrontendAccepted with default headers values

func (*CreateFrontendAccepted) Error

func (o *CreateFrontendAccepted) Error() string

func (*CreateFrontendAccepted) GetPayload added in v0.2.0

func (o *CreateFrontendAccepted) GetPayload() *models.Frontend

type CreateFrontendBadRequest

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

	Payload *models.Error
}

CreateFrontendBadRequest handles this case with default header values.

Bad request

func NewCreateFrontendBadRequest

func NewCreateFrontendBadRequest() *CreateFrontendBadRequest

NewCreateFrontendBadRequest creates a CreateFrontendBadRequest with default headers values

func (*CreateFrontendBadRequest) Error

func (o *CreateFrontendBadRequest) Error() string

func (*CreateFrontendBadRequest) GetPayload added in v0.2.0

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

type CreateFrontendConflict

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

	Payload *models.Error
}

CreateFrontendConflict handles this case with default header values.

The specified resource already exists

func NewCreateFrontendConflict

func NewCreateFrontendConflict() *CreateFrontendConflict

NewCreateFrontendConflict creates a CreateFrontendConflict with default headers values

func (*CreateFrontendConflict) Error

func (o *CreateFrontendConflict) Error() string

func (*CreateFrontendConflict) GetPayload added in v0.2.0

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

type CreateFrontendCreated

type CreateFrontendCreated struct {
	Payload *models.Frontend
}

CreateFrontendCreated handles this case with default header values.

Frontend created

func NewCreateFrontendCreated

func NewCreateFrontendCreated() *CreateFrontendCreated

NewCreateFrontendCreated creates a CreateFrontendCreated with default headers values

func (*CreateFrontendCreated) Error

func (o *CreateFrontendCreated) Error() string

func (*CreateFrontendCreated) GetPayload added in v0.2.0

func (o *CreateFrontendCreated) GetPayload() *models.Frontend

type CreateFrontendDefault

type CreateFrontendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreateFrontendDefault handles this case with default header values.

General Error

func NewCreateFrontendDefault

func NewCreateFrontendDefault(code int) *CreateFrontendDefault

NewCreateFrontendDefault creates a CreateFrontendDefault with default headers values

func (*CreateFrontendDefault) Code

func (o *CreateFrontendDefault) Code() int

Code gets the status code for the create frontend default response

func (*CreateFrontendDefault) Error

func (o *CreateFrontendDefault) Error() string

func (*CreateFrontendDefault) GetPayload added in v0.2.0

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

type CreateFrontendParams

type CreateFrontendParams struct {

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

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

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

	*/
	Version *int64

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

CreateFrontendParams contains all the parameters to send to the API endpoint for the create frontend operation typically these are written to a http.Request

func NewCreateFrontendParams

func NewCreateFrontendParams() *CreateFrontendParams

NewCreateFrontendParams creates a new CreateFrontendParams object with the default values initialized.

func NewCreateFrontendParamsWithContext

func NewCreateFrontendParamsWithContext(ctx context.Context) *CreateFrontendParams

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

func NewCreateFrontendParamsWithHTTPClient

func NewCreateFrontendParamsWithHTTPClient(client *http.Client) *CreateFrontendParams

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

func NewCreateFrontendParamsWithTimeout

func NewCreateFrontendParamsWithTimeout(timeout time.Duration) *CreateFrontendParams

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

func (*CreateFrontendParams) SetContext

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

SetContext adds the context to the create frontend params

func (*CreateFrontendParams) SetData

func (o *CreateFrontendParams) SetData(data *models.Frontend)

SetData adds the data to the create frontend params

func (*CreateFrontendParams) SetForceReload

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

SetForceReload adds the forceReload to the create frontend params

func (*CreateFrontendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create frontend params

func (*CreateFrontendParams) SetTimeout

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

SetTimeout adds the timeout to the create frontend params

func (*CreateFrontendParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create frontend params

func (*CreateFrontendParams) SetVersion

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

SetVersion adds the version to the create frontend params

func (*CreateFrontendParams) WithContext

WithContext adds the context to the create frontend params

func (*CreateFrontendParams) WithData

WithData adds the data to the create frontend params

func (*CreateFrontendParams) WithForceReload

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

WithForceReload adds the forceReload to the create frontend params

func (*CreateFrontendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create frontend params

func (*CreateFrontendParams) WithTimeout

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

WithTimeout adds the timeout to the create frontend params

func (*CreateFrontendParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create frontend params

func (*CreateFrontendParams) WithVersion

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

WithVersion adds the version to the create frontend params

func (*CreateFrontendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateFrontendReader

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

CreateFrontendReader is a Reader for the CreateFrontend structure.

func (*CreateFrontendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteFrontendAccepted

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

DeleteFrontendAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteFrontendAccepted

func NewDeleteFrontendAccepted() *DeleteFrontendAccepted

NewDeleteFrontendAccepted creates a DeleteFrontendAccepted with default headers values

func (*DeleteFrontendAccepted) Error

func (o *DeleteFrontendAccepted) Error() string

type DeleteFrontendDefault

type DeleteFrontendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

DeleteFrontendDefault handles this case with default header values.

General Error

func NewDeleteFrontendDefault

func NewDeleteFrontendDefault(code int) *DeleteFrontendDefault

NewDeleteFrontendDefault creates a DeleteFrontendDefault with default headers values

func (*DeleteFrontendDefault) Code

func (o *DeleteFrontendDefault) Code() int

Code gets the status code for the delete frontend default response

func (*DeleteFrontendDefault) Error

func (o *DeleteFrontendDefault) Error() string

func (*DeleteFrontendDefault) GetPayload added in v0.2.0

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

type DeleteFrontendNoContent

type DeleteFrontendNoContent struct {
}

DeleteFrontendNoContent handles this case with default header values.

Frontend deleted

func NewDeleteFrontendNoContent

func NewDeleteFrontendNoContent() *DeleteFrontendNoContent

NewDeleteFrontendNoContent creates a DeleteFrontendNoContent with default headers values

func (*DeleteFrontendNoContent) Error

func (o *DeleteFrontendNoContent) Error() string

type DeleteFrontendNotFound

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

	Payload *models.Error
}

DeleteFrontendNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteFrontendNotFound

func NewDeleteFrontendNotFound() *DeleteFrontendNotFound

NewDeleteFrontendNotFound creates a DeleteFrontendNotFound with default headers values

func (*DeleteFrontendNotFound) Error

func (o *DeleteFrontendNotFound) Error() string

func (*DeleteFrontendNotFound) GetPayload added in v0.2.0

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

type DeleteFrontendParams

type DeleteFrontendParams 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
	  Frontend name

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

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

	*/
	Version *int64

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

DeleteFrontendParams contains all the parameters to send to the API endpoint for the delete frontend operation typically these are written to a http.Request

func NewDeleteFrontendParams

func NewDeleteFrontendParams() *DeleteFrontendParams

NewDeleteFrontendParams creates a new DeleteFrontendParams object with the default values initialized.

func NewDeleteFrontendParamsWithContext

func NewDeleteFrontendParamsWithContext(ctx context.Context) *DeleteFrontendParams

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

func NewDeleteFrontendParamsWithHTTPClient

func NewDeleteFrontendParamsWithHTTPClient(client *http.Client) *DeleteFrontendParams

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

func NewDeleteFrontendParamsWithTimeout

func NewDeleteFrontendParamsWithTimeout(timeout time.Duration) *DeleteFrontendParams

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

func (*DeleteFrontendParams) SetContext

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

SetContext adds the context to the delete frontend params

func (*DeleteFrontendParams) SetForceReload

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

SetForceReload adds the forceReload to the delete frontend params

func (*DeleteFrontendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete frontend params

func (*DeleteFrontendParams) SetName

func (o *DeleteFrontendParams) SetName(name string)

SetName adds the name to the delete frontend params

func (*DeleteFrontendParams) SetTimeout

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

SetTimeout adds the timeout to the delete frontend params

func (*DeleteFrontendParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete frontend params

func (*DeleteFrontendParams) SetVersion

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

SetVersion adds the version to the delete frontend params

func (*DeleteFrontendParams) WithContext

WithContext adds the context to the delete frontend params

func (*DeleteFrontendParams) WithForceReload

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

WithForceReload adds the forceReload to the delete frontend params

func (*DeleteFrontendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete frontend params

func (*DeleteFrontendParams) WithName

WithName adds the name to the delete frontend params

func (*DeleteFrontendParams) WithTimeout

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

WithTimeout adds the timeout to the delete frontend params

func (*DeleteFrontendParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete frontend params

func (*DeleteFrontendParams) WithVersion

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

WithVersion adds the version to the delete frontend params

func (*DeleteFrontendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteFrontendReader

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

DeleteFrontendReader is a Reader for the DeleteFrontend structure.

func (*DeleteFrontendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFrontendDefault

type GetFrontendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetFrontendDefault handles this case with default header values.

General Error

func NewGetFrontendDefault

func NewGetFrontendDefault(code int) *GetFrontendDefault

NewGetFrontendDefault creates a GetFrontendDefault with default headers values

func (*GetFrontendDefault) Code

func (o *GetFrontendDefault) Code() int

Code gets the status code for the get frontend default response

func (*GetFrontendDefault) Error

func (o *GetFrontendDefault) Error() string

func (*GetFrontendDefault) GetPayload added in v0.2.0

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

type GetFrontendNotFound

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

	Payload *models.Error
}

GetFrontendNotFound handles this case with default header values.

The specified resource was not found

func NewGetFrontendNotFound

func NewGetFrontendNotFound() *GetFrontendNotFound

NewGetFrontendNotFound creates a GetFrontendNotFound with default headers values

func (*GetFrontendNotFound) Error

func (o *GetFrontendNotFound) Error() string

func (*GetFrontendNotFound) GetPayload added in v0.2.0

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

type GetFrontendOK

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

	Payload *GetFrontendOKBody
}

GetFrontendOK handles this case with default header values.

Successful operation

func NewGetFrontendOK

func NewGetFrontendOK() *GetFrontendOK

NewGetFrontendOK creates a GetFrontendOK with default headers values

func (*GetFrontendOK) Error

func (o *GetFrontendOK) Error() string

func (*GetFrontendOK) GetPayload added in v0.2.0

func (o *GetFrontendOK) GetPayload() *GetFrontendOKBody

type GetFrontendOKBody

type GetFrontendOKBody struct {

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

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

GetFrontendOKBody get frontend o k body swagger:model GetFrontendOKBody

func (*GetFrontendOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetFrontendOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetFrontendOKBody) Validate

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

Validate validates this get frontend o k body

type GetFrontendParams

type GetFrontendParams struct {

	/*Name
	  Frontend name

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

	*/
	TransactionID *string

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

GetFrontendParams contains all the parameters to send to the API endpoint for the get frontend operation typically these are written to a http.Request

func NewGetFrontendParams

func NewGetFrontendParams() *GetFrontendParams

NewGetFrontendParams creates a new GetFrontendParams object with the default values initialized.

func NewGetFrontendParamsWithContext

func NewGetFrontendParamsWithContext(ctx context.Context) *GetFrontendParams

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

func NewGetFrontendParamsWithHTTPClient

func NewGetFrontendParamsWithHTTPClient(client *http.Client) *GetFrontendParams

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

func NewGetFrontendParamsWithTimeout

func NewGetFrontendParamsWithTimeout(timeout time.Duration) *GetFrontendParams

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

func (*GetFrontendParams) SetContext

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

SetContext adds the context to the get frontend params

func (*GetFrontendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get frontend params

func (*GetFrontendParams) SetName

func (o *GetFrontendParams) SetName(name string)

SetName adds the name to the get frontend params

func (*GetFrontendParams) SetTimeout

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

SetTimeout adds the timeout to the get frontend params

func (*GetFrontendParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get frontend params

func (*GetFrontendParams) WithContext

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

WithContext adds the context to the get frontend params

func (*GetFrontendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get frontend params

func (*GetFrontendParams) WithName

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

WithName adds the name to the get frontend params

func (*GetFrontendParams) WithTimeout

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

WithTimeout adds the timeout to the get frontend params

func (*GetFrontendParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get frontend params

func (*GetFrontendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFrontendReader

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

GetFrontendReader is a Reader for the GetFrontend structure.

func (*GetFrontendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFrontendsDefault

type GetFrontendsDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetFrontendsDefault handles this case with default header values.

General Error

func NewGetFrontendsDefault

func NewGetFrontendsDefault(code int) *GetFrontendsDefault

NewGetFrontendsDefault creates a GetFrontendsDefault with default headers values

func (*GetFrontendsDefault) Code

func (o *GetFrontendsDefault) Code() int

Code gets the status code for the get frontends default response

func (*GetFrontendsDefault) Error

func (o *GetFrontendsDefault) Error() string

func (*GetFrontendsDefault) GetPayload added in v0.2.0

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

type GetFrontendsOK

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

	Payload *GetFrontendsOKBody
}

GetFrontendsOK handles this case with default header values.

Successful operation

func NewGetFrontendsOK

func NewGetFrontendsOK() *GetFrontendsOK

NewGetFrontendsOK creates a GetFrontendsOK with default headers values

func (*GetFrontendsOK) Error

func (o *GetFrontendsOK) Error() string

func (*GetFrontendsOK) GetPayload added in v0.2.0

func (o *GetFrontendsOK) GetPayload() *GetFrontendsOKBody

type GetFrontendsOKBody

type GetFrontendsOKBody struct {

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

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

GetFrontendsOKBody get frontends o k body swagger:model GetFrontendsOKBody

func (*GetFrontendsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetFrontendsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetFrontendsOKBody) Validate

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

Validate validates this get frontends o k body

type GetFrontendsParams

type GetFrontendsParams struct {

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

	*/
	TransactionID *string

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

GetFrontendsParams contains all the parameters to send to the API endpoint for the get frontends operation typically these are written to a http.Request

func NewGetFrontendsParams

func NewGetFrontendsParams() *GetFrontendsParams

NewGetFrontendsParams creates a new GetFrontendsParams object with the default values initialized.

func NewGetFrontendsParamsWithContext

func NewGetFrontendsParamsWithContext(ctx context.Context) *GetFrontendsParams

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

func NewGetFrontendsParamsWithHTTPClient

func NewGetFrontendsParamsWithHTTPClient(client *http.Client) *GetFrontendsParams

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

func NewGetFrontendsParamsWithTimeout

func NewGetFrontendsParamsWithTimeout(timeout time.Duration) *GetFrontendsParams

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

func (*GetFrontendsParams) SetContext

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

SetContext adds the context to the get frontends params

func (*GetFrontendsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get frontends params

func (*GetFrontendsParams) SetTimeout

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

SetTimeout adds the timeout to the get frontends params

func (*GetFrontendsParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get frontends params

func (*GetFrontendsParams) WithContext

WithContext adds the context to the get frontends params

func (*GetFrontendsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get frontends params

func (*GetFrontendsParams) WithTimeout

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

WithTimeout adds the timeout to the get frontends params

func (*GetFrontendsParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get frontends params

func (*GetFrontendsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFrontendsReader

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

GetFrontendsReader is a Reader for the GetFrontends structure.

func (*GetFrontendsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceFrontendAccepted

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

	Payload *models.Frontend
}

ReplaceFrontendAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceFrontendAccepted

func NewReplaceFrontendAccepted() *ReplaceFrontendAccepted

NewReplaceFrontendAccepted creates a ReplaceFrontendAccepted with default headers values

func (*ReplaceFrontendAccepted) Error

func (o *ReplaceFrontendAccepted) Error() string

func (*ReplaceFrontendAccepted) GetPayload added in v0.2.0

func (o *ReplaceFrontendAccepted) GetPayload() *models.Frontend

type ReplaceFrontendBadRequest

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

	Payload *models.Error
}

ReplaceFrontendBadRequest handles this case with default header values.

Bad request

func NewReplaceFrontendBadRequest

func NewReplaceFrontendBadRequest() *ReplaceFrontendBadRequest

NewReplaceFrontendBadRequest creates a ReplaceFrontendBadRequest with default headers values

func (*ReplaceFrontendBadRequest) Error

func (o *ReplaceFrontendBadRequest) Error() string

func (*ReplaceFrontendBadRequest) GetPayload added in v0.2.0

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

type ReplaceFrontendDefault

type ReplaceFrontendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

ReplaceFrontendDefault handles this case with default header values.

General Error

func NewReplaceFrontendDefault

func NewReplaceFrontendDefault(code int) *ReplaceFrontendDefault

NewReplaceFrontendDefault creates a ReplaceFrontendDefault with default headers values

func (*ReplaceFrontendDefault) Code

func (o *ReplaceFrontendDefault) Code() int

Code gets the status code for the replace frontend default response

func (*ReplaceFrontendDefault) Error

func (o *ReplaceFrontendDefault) Error() string

func (*ReplaceFrontendDefault) GetPayload added in v0.2.0

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

type ReplaceFrontendNotFound

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

	Payload *models.Error
}

ReplaceFrontendNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceFrontendNotFound

func NewReplaceFrontendNotFound() *ReplaceFrontendNotFound

NewReplaceFrontendNotFound creates a ReplaceFrontendNotFound with default headers values

func (*ReplaceFrontendNotFound) Error

func (o *ReplaceFrontendNotFound) Error() string

func (*ReplaceFrontendNotFound) GetPayload added in v0.2.0

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

type ReplaceFrontendOK

type ReplaceFrontendOK struct {
	Payload *models.Frontend
}

ReplaceFrontendOK handles this case with default header values.

Frontend replaced

func NewReplaceFrontendOK

func NewReplaceFrontendOK() *ReplaceFrontendOK

NewReplaceFrontendOK creates a ReplaceFrontendOK with default headers values

func (*ReplaceFrontendOK) Error

func (o *ReplaceFrontendOK) Error() string

func (*ReplaceFrontendOK) GetPayload added in v0.2.0

func (o *ReplaceFrontendOK) GetPayload() *models.Frontend

type ReplaceFrontendParams

type ReplaceFrontendParams struct {

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

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

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

	*/
	Version *int64

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

ReplaceFrontendParams contains all the parameters to send to the API endpoint for the replace frontend operation typically these are written to a http.Request

func NewReplaceFrontendParams

func NewReplaceFrontendParams() *ReplaceFrontendParams

NewReplaceFrontendParams creates a new ReplaceFrontendParams object with the default values initialized.

func NewReplaceFrontendParamsWithContext

func NewReplaceFrontendParamsWithContext(ctx context.Context) *ReplaceFrontendParams

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

func NewReplaceFrontendParamsWithHTTPClient

func NewReplaceFrontendParamsWithHTTPClient(client *http.Client) *ReplaceFrontendParams

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

func NewReplaceFrontendParamsWithTimeout

func NewReplaceFrontendParamsWithTimeout(timeout time.Duration) *ReplaceFrontendParams

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

func (*ReplaceFrontendParams) SetContext

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

SetContext adds the context to the replace frontend params

func (*ReplaceFrontendParams) SetData

func (o *ReplaceFrontendParams) SetData(data *models.Frontend)

SetData adds the data to the replace frontend params

func (*ReplaceFrontendParams) SetForceReload

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

SetForceReload adds the forceReload to the replace frontend params

func (*ReplaceFrontendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace frontend params

func (*ReplaceFrontendParams) SetName

func (o *ReplaceFrontendParams) SetName(name string)

SetName adds the name to the replace frontend params

func (*ReplaceFrontendParams) SetTimeout

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

SetTimeout adds the timeout to the replace frontend params

func (*ReplaceFrontendParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace frontend params

func (*ReplaceFrontendParams) SetVersion

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

SetVersion adds the version to the replace frontend params

func (*ReplaceFrontendParams) WithContext

WithContext adds the context to the replace frontend params

func (*ReplaceFrontendParams) WithData

WithData adds the data to the replace frontend params

func (*ReplaceFrontendParams) WithForceReload

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

WithForceReload adds the forceReload to the replace frontend params

func (*ReplaceFrontendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace frontend params

func (*ReplaceFrontendParams) WithName

WithName adds the name to the replace frontend params

func (*ReplaceFrontendParams) WithTimeout

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

WithTimeout adds the timeout to the replace frontend params

func (*ReplaceFrontendParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace frontend params

func (*ReplaceFrontendParams) WithVersion

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

WithVersion adds the version to the replace frontend params

func (*ReplaceFrontendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceFrontendReader

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

ReplaceFrontendReader is a Reader for the ReplaceFrontend structure.

func (*ReplaceFrontendReader) ReadResponse

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