service

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 36

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 API

func (*Client) DeleteServiceID

func (a *Client) DeleteServiceID(params *DeleteServiceIDParams, opts ...ClientOption) (*DeleteServiceIDOK, error)

DeleteServiceID deletes a service

func (*Client) GetLrp added in v0.15.7

func (a *Client) GetLrp(params *GetLrpParams, opts ...ClientOption) (*GetLrpOK, error)

GetLrp retrieves list of all local redirect policies

func (*Client) GetService

func (a *Client) GetService(params *GetServiceParams, opts ...ClientOption) (*GetServiceOK, error)

GetService retrieves list of all services

func (*Client) GetServiceID

func (a *Client) GetServiceID(params *GetServiceIDParams, opts ...ClientOption) (*GetServiceIDOK, error)

GetServiceID retrieves configuration of a service

func (*Client) PutServiceID

func (a *Client) PutServiceID(params *PutServiceIDParams, opts ...ClientOption) (*PutServiceIDOK, *PutServiceIDCreated, error)

PutServiceID creates or update service

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.15.7

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.15.7

type ClientService interface {
	DeleteServiceID(params *DeleteServiceIDParams, opts ...ClientOption) (*DeleteServiceIDOK, error)

	GetLrp(params *GetLrpParams, opts ...ClientOption) (*GetLrpOK, error)

	GetService(params *GetServiceParams, opts ...ClientOption) (*GetServiceOK, error)

	GetServiceID(params *GetServiceIDParams, opts ...ClientOption) (*GetServiceIDOK, error)

	PutServiceID(params *PutServiceIDParams, opts ...ClientOption) (*PutServiceIDOK, *PutServiceIDCreated, 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 API client.

type DeleteServiceIDFailure

type DeleteServiceIDFailure struct {
	Payload models.Error
}

DeleteServiceIDFailure describes a response with status code 500, with default header values.

Service deletion failed

func NewDeleteServiceIDFailure

func NewDeleteServiceIDFailure() *DeleteServiceIDFailure

NewDeleteServiceIDFailure creates a DeleteServiceIDFailure with default headers values

func (*DeleteServiceIDFailure) Error

func (o *DeleteServiceIDFailure) Error() string

func (*DeleteServiceIDFailure) GetPayload added in v0.15.7

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

func (*DeleteServiceIDFailure) IsClientError added in v0.15.7

func (o *DeleteServiceIDFailure) IsClientError() bool

IsClientError returns true when this delete service Id failure response has a 4xx status code

func (*DeleteServiceIDFailure) IsCode added in v0.15.7

func (o *DeleteServiceIDFailure) IsCode(code int) bool

IsCode returns true when this delete service Id failure response a status code equal to that given

func (*DeleteServiceIDFailure) IsRedirect added in v0.15.7

func (o *DeleteServiceIDFailure) IsRedirect() bool

IsRedirect returns true when this delete service Id failure response has a 3xx status code

func (*DeleteServiceIDFailure) IsServerError added in v0.15.7

func (o *DeleteServiceIDFailure) IsServerError() bool

IsServerError returns true when this delete service Id failure response has a 5xx status code

func (*DeleteServiceIDFailure) IsSuccess added in v0.15.7

func (o *DeleteServiceIDFailure) IsSuccess() bool

IsSuccess returns true when this delete service Id failure response has a 2xx status code

func (*DeleteServiceIDFailure) String added in v0.15.7

func (o *DeleteServiceIDFailure) String() string

type DeleteServiceIDForbidden added in v0.15.7

type DeleteServiceIDForbidden struct {
}

DeleteServiceIDForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteServiceIDForbidden added in v0.15.7

func NewDeleteServiceIDForbidden() *DeleteServiceIDForbidden

NewDeleteServiceIDForbidden creates a DeleteServiceIDForbidden with default headers values

func (*DeleteServiceIDForbidden) Error added in v0.15.7

func (o *DeleteServiceIDForbidden) Error() string

func (*DeleteServiceIDForbidden) IsClientError added in v0.15.7

func (o *DeleteServiceIDForbidden) IsClientError() bool

IsClientError returns true when this delete service Id forbidden response has a 4xx status code

func (*DeleteServiceIDForbidden) IsCode added in v0.15.7

func (o *DeleteServiceIDForbidden) IsCode(code int) bool

IsCode returns true when this delete service Id forbidden response a status code equal to that given

func (*DeleteServiceIDForbidden) IsRedirect added in v0.15.7

func (o *DeleteServiceIDForbidden) IsRedirect() bool

IsRedirect returns true when this delete service Id forbidden response has a 3xx status code

func (*DeleteServiceIDForbidden) IsServerError added in v0.15.7

func (o *DeleteServiceIDForbidden) IsServerError() bool

IsServerError returns true when this delete service Id forbidden response has a 5xx status code

func (*DeleteServiceIDForbidden) IsSuccess added in v0.15.7

func (o *DeleteServiceIDForbidden) IsSuccess() bool

IsSuccess returns true when this delete service Id forbidden response has a 2xx status code

func (*DeleteServiceIDForbidden) String added in v0.15.7

func (o *DeleteServiceIDForbidden) String() string

type DeleteServiceIDNotFound

type DeleteServiceIDNotFound struct {
}

DeleteServiceIDNotFound describes a response with status code 404, with default header values.

Service not found

func NewDeleteServiceIDNotFound

func NewDeleteServiceIDNotFound() *DeleteServiceIDNotFound

NewDeleteServiceIDNotFound creates a DeleteServiceIDNotFound with default headers values

func (*DeleteServiceIDNotFound) Error

func (o *DeleteServiceIDNotFound) Error() string

func (*DeleteServiceIDNotFound) IsClientError added in v0.15.7

func (o *DeleteServiceIDNotFound) IsClientError() bool

IsClientError returns true when this delete service Id not found response has a 4xx status code

func (*DeleteServiceIDNotFound) IsCode added in v0.15.7

func (o *DeleteServiceIDNotFound) IsCode(code int) bool

IsCode returns true when this delete service Id not found response a status code equal to that given

func (*DeleteServiceIDNotFound) IsRedirect added in v0.15.7

func (o *DeleteServiceIDNotFound) IsRedirect() bool

IsRedirect returns true when this delete service Id not found response has a 3xx status code

func (*DeleteServiceIDNotFound) IsServerError added in v0.15.7

func (o *DeleteServiceIDNotFound) IsServerError() bool

IsServerError returns true when this delete service Id not found response has a 5xx status code

func (*DeleteServiceIDNotFound) IsSuccess added in v0.15.7

func (o *DeleteServiceIDNotFound) IsSuccess() bool

IsSuccess returns true when this delete service Id not found response has a 2xx status code

func (*DeleteServiceIDNotFound) String added in v0.15.7

func (o *DeleteServiceIDNotFound) String() string

type DeleteServiceIDOK

type DeleteServiceIDOK struct {
}

DeleteServiceIDOK describes a response with status code 200, with default header values.

Success

func NewDeleteServiceIDOK

func NewDeleteServiceIDOK() *DeleteServiceIDOK

NewDeleteServiceIDOK creates a DeleteServiceIDOK with default headers values

func (*DeleteServiceIDOK) Error

func (o *DeleteServiceIDOK) Error() string

func (*DeleteServiceIDOK) IsClientError added in v0.15.7

func (o *DeleteServiceIDOK) IsClientError() bool

IsClientError returns true when this delete service Id o k response has a 4xx status code

func (*DeleteServiceIDOK) IsCode added in v0.15.7

func (o *DeleteServiceIDOK) IsCode(code int) bool

IsCode returns true when this delete service Id o k response a status code equal to that given

func (*DeleteServiceIDOK) IsRedirect added in v0.15.7

func (o *DeleteServiceIDOK) IsRedirect() bool

IsRedirect returns true when this delete service Id o k response has a 3xx status code

func (*DeleteServiceIDOK) IsServerError added in v0.15.7

func (o *DeleteServiceIDOK) IsServerError() bool

IsServerError returns true when this delete service Id o k response has a 5xx status code

func (*DeleteServiceIDOK) IsSuccess added in v0.15.7

func (o *DeleteServiceIDOK) IsSuccess() bool

IsSuccess returns true when this delete service Id o k response has a 2xx status code

func (*DeleteServiceIDOK) String added in v0.15.7

func (o *DeleteServiceIDOK) String() string

type DeleteServiceIDParams

type DeleteServiceIDParams struct {

	/* ID.

	   ID of service
	*/
	ID int64

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

DeleteServiceIDParams contains all the parameters to send to the API endpoint

for the delete service ID operation.

Typically these are written to a http.Request.

func NewDeleteServiceIDParams

func NewDeleteServiceIDParams() *DeleteServiceIDParams

NewDeleteServiceIDParams creates a new DeleteServiceIDParams 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 NewDeleteServiceIDParamsWithContext

func NewDeleteServiceIDParamsWithContext(ctx context.Context) *DeleteServiceIDParams

NewDeleteServiceIDParamsWithContext creates a new DeleteServiceIDParams object with the ability to set a context for a request.

func NewDeleteServiceIDParamsWithHTTPClient

func NewDeleteServiceIDParamsWithHTTPClient(client *http.Client) *DeleteServiceIDParams

NewDeleteServiceIDParamsWithHTTPClient creates a new DeleteServiceIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteServiceIDParamsWithTimeout

func NewDeleteServiceIDParamsWithTimeout(timeout time.Duration) *DeleteServiceIDParams

NewDeleteServiceIDParamsWithTimeout creates a new DeleteServiceIDParams object with the ability to set a timeout on a request.

func (*DeleteServiceIDParams) SetContext

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

SetContext adds the context to the delete service ID params

func (*DeleteServiceIDParams) SetDefaults added in v0.15.7

func (o *DeleteServiceIDParams) SetDefaults()

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

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

func (*DeleteServiceIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete service ID params

func (*DeleteServiceIDParams) SetID

func (o *DeleteServiceIDParams) SetID(id int64)

SetID adds the id to the delete service ID params

func (*DeleteServiceIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete service ID params

func (*DeleteServiceIDParams) WithContext

WithContext adds the context to the delete service ID params

func (*DeleteServiceIDParams) WithDefaults added in v0.15.7

func (o *DeleteServiceIDParams) WithDefaults() *DeleteServiceIDParams

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

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

func (*DeleteServiceIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete service ID params

func (*DeleteServiceIDParams) WithID

WithID adds the id to the delete service ID params

func (*DeleteServiceIDParams) WithTimeout

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

WithTimeout adds the timeout to the delete service ID params

func (*DeleteServiceIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteServiceIDReader

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

DeleteServiceIDReader is a Reader for the DeleteServiceID structure.

func (*DeleteServiceIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLrpOK added in v0.15.7

type GetLrpOK struct {
	Payload []*models.LRPSpec
}

GetLrpOK describes a response with status code 200, with default header values.

Success

func NewGetLrpOK added in v0.15.7

func NewGetLrpOK() *GetLrpOK

NewGetLrpOK creates a GetLrpOK with default headers values

func (*GetLrpOK) Error added in v0.15.7

func (o *GetLrpOK) Error() string

func (*GetLrpOK) GetPayload added in v0.15.7

func (o *GetLrpOK) GetPayload() []*models.LRPSpec

func (*GetLrpOK) IsClientError added in v0.15.7

func (o *GetLrpOK) IsClientError() bool

IsClientError returns true when this get lrp o k response has a 4xx status code

func (*GetLrpOK) IsCode added in v0.15.7

func (o *GetLrpOK) IsCode(code int) bool

IsCode returns true when this get lrp o k response a status code equal to that given

func (*GetLrpOK) IsRedirect added in v0.15.7

func (o *GetLrpOK) IsRedirect() bool

IsRedirect returns true when this get lrp o k response has a 3xx status code

func (*GetLrpOK) IsServerError added in v0.15.7

func (o *GetLrpOK) IsServerError() bool

IsServerError returns true when this get lrp o k response has a 5xx status code

func (*GetLrpOK) IsSuccess added in v0.15.7

func (o *GetLrpOK) IsSuccess() bool

IsSuccess returns true when this get lrp o k response has a 2xx status code

func (*GetLrpOK) String added in v0.15.7

func (o *GetLrpOK) String() string

type GetLrpParams added in v0.15.7

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

GetLrpParams contains all the parameters to send to the API endpoint

for the get lrp operation.

Typically these are written to a http.Request.

func NewGetLrpParams added in v0.15.7

func NewGetLrpParams() *GetLrpParams

NewGetLrpParams creates a new GetLrpParams 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 NewGetLrpParamsWithContext added in v0.15.7

func NewGetLrpParamsWithContext(ctx context.Context) *GetLrpParams

NewGetLrpParamsWithContext creates a new GetLrpParams object with the ability to set a context for a request.

func NewGetLrpParamsWithHTTPClient added in v0.15.7

func NewGetLrpParamsWithHTTPClient(client *http.Client) *GetLrpParams

NewGetLrpParamsWithHTTPClient creates a new GetLrpParams object with the ability to set a custom HTTPClient for a request.

func NewGetLrpParamsWithTimeout added in v0.15.7

func NewGetLrpParamsWithTimeout(timeout time.Duration) *GetLrpParams

NewGetLrpParamsWithTimeout creates a new GetLrpParams object with the ability to set a timeout on a request.

func (*GetLrpParams) SetContext added in v0.15.7

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

SetContext adds the context to the get lrp params

func (*GetLrpParams) SetDefaults added in v0.15.7

func (o *GetLrpParams) SetDefaults()

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

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

func (*GetLrpParams) SetHTTPClient added in v0.15.7

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

SetHTTPClient adds the HTTPClient to the get lrp params

func (*GetLrpParams) SetTimeout added in v0.15.7

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

SetTimeout adds the timeout to the get lrp params

func (*GetLrpParams) WithContext added in v0.15.7

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

WithContext adds the context to the get lrp params

func (*GetLrpParams) WithDefaults added in v0.15.7

func (o *GetLrpParams) WithDefaults() *GetLrpParams

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

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

func (*GetLrpParams) WithHTTPClient added in v0.15.7

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

WithHTTPClient adds the HTTPClient to the get lrp params

func (*GetLrpParams) WithTimeout added in v0.15.7

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

WithTimeout adds the timeout to the get lrp params

func (*GetLrpParams) WriteToRequest added in v0.15.7

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

WriteToRequest writes these params to a swagger request

type GetLrpReader added in v0.15.7

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

GetLrpReader is a Reader for the GetLrp structure.

func (*GetLrpReader) ReadResponse added in v0.15.7

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

ReadResponse reads a server response into the received o.

type GetServiceIDNotFound

type GetServiceIDNotFound struct {
}

GetServiceIDNotFound describes a response with status code 404, with default header values.

Service not found

func NewGetServiceIDNotFound

func NewGetServiceIDNotFound() *GetServiceIDNotFound

NewGetServiceIDNotFound creates a GetServiceIDNotFound with default headers values

func (*GetServiceIDNotFound) Error

func (o *GetServiceIDNotFound) Error() string

func (*GetServiceIDNotFound) IsClientError added in v0.15.7

func (o *GetServiceIDNotFound) IsClientError() bool

IsClientError returns true when this get service Id not found response has a 4xx status code

func (*GetServiceIDNotFound) IsCode added in v0.15.7

func (o *GetServiceIDNotFound) IsCode(code int) bool

IsCode returns true when this get service Id not found response a status code equal to that given

func (*GetServiceIDNotFound) IsRedirect added in v0.15.7

func (o *GetServiceIDNotFound) IsRedirect() bool

IsRedirect returns true when this get service Id not found response has a 3xx status code

func (*GetServiceIDNotFound) IsServerError added in v0.15.7

func (o *GetServiceIDNotFound) IsServerError() bool

IsServerError returns true when this get service Id not found response has a 5xx status code

func (*GetServiceIDNotFound) IsSuccess added in v0.15.7

func (o *GetServiceIDNotFound) IsSuccess() bool

IsSuccess returns true when this get service Id not found response has a 2xx status code

func (*GetServiceIDNotFound) String added in v0.15.7

func (o *GetServiceIDNotFound) String() string

type GetServiceIDOK

type GetServiceIDOK struct {
	Payload *models.Service
}

GetServiceIDOK describes a response with status code 200, with default header values.

Success

func NewGetServiceIDOK

func NewGetServiceIDOK() *GetServiceIDOK

NewGetServiceIDOK creates a GetServiceIDOK with default headers values

func (*GetServiceIDOK) Error

func (o *GetServiceIDOK) Error() string

func (*GetServiceIDOK) GetPayload added in v0.15.7

func (o *GetServiceIDOK) GetPayload() *models.Service

func (*GetServiceIDOK) IsClientError added in v0.15.7

func (o *GetServiceIDOK) IsClientError() bool

IsClientError returns true when this get service Id o k response has a 4xx status code

func (*GetServiceIDOK) IsCode added in v0.15.7

func (o *GetServiceIDOK) IsCode(code int) bool

IsCode returns true when this get service Id o k response a status code equal to that given

func (*GetServiceIDOK) IsRedirect added in v0.15.7

func (o *GetServiceIDOK) IsRedirect() bool

IsRedirect returns true when this get service Id o k response has a 3xx status code

func (*GetServiceIDOK) IsServerError added in v0.15.7

func (o *GetServiceIDOK) IsServerError() bool

IsServerError returns true when this get service Id o k response has a 5xx status code

func (*GetServiceIDOK) IsSuccess added in v0.15.7

func (o *GetServiceIDOK) IsSuccess() bool

IsSuccess returns true when this get service Id o k response has a 2xx status code

func (*GetServiceIDOK) String added in v0.15.7

func (o *GetServiceIDOK) String() string

type GetServiceIDParams

type GetServiceIDParams struct {

	/* ID.

	   ID of service
	*/
	ID int64

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

GetServiceIDParams contains all the parameters to send to the API endpoint

for the get service ID operation.

Typically these are written to a http.Request.

func NewGetServiceIDParams

func NewGetServiceIDParams() *GetServiceIDParams

NewGetServiceIDParams creates a new GetServiceIDParams 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 NewGetServiceIDParamsWithContext

func NewGetServiceIDParamsWithContext(ctx context.Context) *GetServiceIDParams

NewGetServiceIDParamsWithContext creates a new GetServiceIDParams object with the ability to set a context for a request.

func NewGetServiceIDParamsWithHTTPClient

func NewGetServiceIDParamsWithHTTPClient(client *http.Client) *GetServiceIDParams

NewGetServiceIDParamsWithHTTPClient creates a new GetServiceIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetServiceIDParamsWithTimeout

func NewGetServiceIDParamsWithTimeout(timeout time.Duration) *GetServiceIDParams

NewGetServiceIDParamsWithTimeout creates a new GetServiceIDParams object with the ability to set a timeout on a request.

func (*GetServiceIDParams) SetContext

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

SetContext adds the context to the get service ID params

func (*GetServiceIDParams) SetDefaults added in v0.15.7

func (o *GetServiceIDParams) SetDefaults()

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

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

func (*GetServiceIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service ID params

func (*GetServiceIDParams) SetID

func (o *GetServiceIDParams) SetID(id int64)

SetID adds the id to the get service ID params

func (*GetServiceIDParams) SetTimeout

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

SetTimeout adds the timeout to the get service ID params

func (*GetServiceIDParams) WithContext

WithContext adds the context to the get service ID params

func (*GetServiceIDParams) WithDefaults added in v0.15.7

func (o *GetServiceIDParams) WithDefaults() *GetServiceIDParams

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

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

func (*GetServiceIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service ID params

func (*GetServiceIDParams) WithID

WithID adds the id to the get service ID params

func (*GetServiceIDParams) WithTimeout

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

WithTimeout adds the timeout to the get service ID params

func (*GetServiceIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServiceIDReader

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

GetServiceIDReader is a Reader for the GetServiceID structure.

func (*GetServiceIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceOK

type GetServiceOK struct {
	Payload []*models.Service
}

GetServiceOK describes a response with status code 200, with default header values.

Success

func NewGetServiceOK

func NewGetServiceOK() *GetServiceOK

NewGetServiceOK creates a GetServiceOK with default headers values

func (*GetServiceOK) Error

func (o *GetServiceOK) Error() string

func (*GetServiceOK) GetPayload added in v0.15.7

func (o *GetServiceOK) GetPayload() []*models.Service

func (*GetServiceOK) IsClientError added in v0.15.7

func (o *GetServiceOK) IsClientError() bool

IsClientError returns true when this get service o k response has a 4xx status code

func (*GetServiceOK) IsCode added in v0.15.7

func (o *GetServiceOK) IsCode(code int) bool

IsCode returns true when this get service o k response a status code equal to that given

func (*GetServiceOK) IsRedirect added in v0.15.7

func (o *GetServiceOK) IsRedirect() bool

IsRedirect returns true when this get service o k response has a 3xx status code

func (*GetServiceOK) IsServerError added in v0.15.7

func (o *GetServiceOK) IsServerError() bool

IsServerError returns true when this get service o k response has a 5xx status code

func (*GetServiceOK) IsSuccess added in v0.15.7

func (o *GetServiceOK) IsSuccess() bool

IsSuccess returns true when this get service o k response has a 2xx status code

func (*GetServiceOK) String added in v0.15.7

func (o *GetServiceOK) String() string

type GetServiceParams

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

GetServiceParams contains all the parameters to send to the API endpoint

for the get service operation.

Typically these are written to a http.Request.

func NewGetServiceParams

func NewGetServiceParams() *GetServiceParams

NewGetServiceParams creates a new GetServiceParams 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 NewGetServiceParamsWithContext

func NewGetServiceParamsWithContext(ctx context.Context) *GetServiceParams

NewGetServiceParamsWithContext creates a new GetServiceParams object with the ability to set a context for a request.

func NewGetServiceParamsWithHTTPClient

func NewGetServiceParamsWithHTTPClient(client *http.Client) *GetServiceParams

NewGetServiceParamsWithHTTPClient creates a new GetServiceParams object with the ability to set a custom HTTPClient for a request.

func NewGetServiceParamsWithTimeout

func NewGetServiceParamsWithTimeout(timeout time.Duration) *GetServiceParams

NewGetServiceParamsWithTimeout creates a new GetServiceParams object with the ability to set a timeout on a request.

func (*GetServiceParams) SetContext

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

SetContext adds the context to the get service params

func (*GetServiceParams) SetDefaults added in v0.15.7

func (o *GetServiceParams) SetDefaults()

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

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

func (*GetServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) SetTimeout

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

SetTimeout adds the timeout to the get service params

func (*GetServiceParams) WithContext

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

WithContext adds the context to the get service params

func (*GetServiceParams) WithDefaults added in v0.15.7

func (o *GetServiceParams) WithDefaults() *GetServiceParams

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

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

func (*GetServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) WithTimeout

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

WithTimeout adds the timeout to the get service params

func (*GetServiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServiceReader

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

GetServiceReader is a Reader for the GetService structure.

func (*GetServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutServiceIDCreated

type PutServiceIDCreated struct {
}

PutServiceIDCreated describes a response with status code 201, with default header values.

Created

func NewPutServiceIDCreated

func NewPutServiceIDCreated() *PutServiceIDCreated

NewPutServiceIDCreated creates a PutServiceIDCreated with default headers values

func (*PutServiceIDCreated) Error

func (o *PutServiceIDCreated) Error() string

func (*PutServiceIDCreated) IsClientError added in v0.15.7

func (o *PutServiceIDCreated) IsClientError() bool

IsClientError returns true when this put service Id created response has a 4xx status code

func (*PutServiceIDCreated) IsCode added in v0.15.7

func (o *PutServiceIDCreated) IsCode(code int) bool

IsCode returns true when this put service Id created response a status code equal to that given

func (*PutServiceIDCreated) IsRedirect added in v0.15.7

func (o *PutServiceIDCreated) IsRedirect() bool

IsRedirect returns true when this put service Id created response has a 3xx status code

func (*PutServiceIDCreated) IsServerError added in v0.15.7

func (o *PutServiceIDCreated) IsServerError() bool

IsServerError returns true when this put service Id created response has a 5xx status code

func (*PutServiceIDCreated) IsSuccess added in v0.15.7

func (o *PutServiceIDCreated) IsSuccess() bool

IsSuccess returns true when this put service Id created response has a 2xx status code

func (*PutServiceIDCreated) String added in v0.15.7

func (o *PutServiceIDCreated) String() string

type PutServiceIDFailure

type PutServiceIDFailure struct {
	Payload models.Error
}

PutServiceIDFailure describes a response with status code 500, with default header values.

Error while creating service

func NewPutServiceIDFailure

func NewPutServiceIDFailure() *PutServiceIDFailure

NewPutServiceIDFailure creates a PutServiceIDFailure with default headers values

func (*PutServiceIDFailure) Error

func (o *PutServiceIDFailure) Error() string

func (*PutServiceIDFailure) GetPayload added in v0.15.7

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

func (*PutServiceIDFailure) IsClientError added in v0.15.7

func (o *PutServiceIDFailure) IsClientError() bool

IsClientError returns true when this put service Id failure response has a 4xx status code

func (*PutServiceIDFailure) IsCode added in v0.15.7

func (o *PutServiceIDFailure) IsCode(code int) bool

IsCode returns true when this put service Id failure response a status code equal to that given

func (*PutServiceIDFailure) IsRedirect added in v0.15.7

func (o *PutServiceIDFailure) IsRedirect() bool

IsRedirect returns true when this put service Id failure response has a 3xx status code

func (*PutServiceIDFailure) IsServerError added in v0.15.7

func (o *PutServiceIDFailure) IsServerError() bool

IsServerError returns true when this put service Id failure response has a 5xx status code

func (*PutServiceIDFailure) IsSuccess added in v0.15.7

func (o *PutServiceIDFailure) IsSuccess() bool

IsSuccess returns true when this put service Id failure response has a 2xx status code

func (*PutServiceIDFailure) String added in v0.15.7

func (o *PutServiceIDFailure) String() string

type PutServiceIDForbidden added in v0.15.7

type PutServiceIDForbidden struct {
}

PutServiceIDForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPutServiceIDForbidden added in v0.15.7

func NewPutServiceIDForbidden() *PutServiceIDForbidden

NewPutServiceIDForbidden creates a PutServiceIDForbidden with default headers values

func (*PutServiceIDForbidden) Error added in v0.15.7

func (o *PutServiceIDForbidden) Error() string

func (*PutServiceIDForbidden) IsClientError added in v0.15.7

func (o *PutServiceIDForbidden) IsClientError() bool

IsClientError returns true when this put service Id forbidden response has a 4xx status code

func (*PutServiceIDForbidden) IsCode added in v0.15.7

func (o *PutServiceIDForbidden) IsCode(code int) bool

IsCode returns true when this put service Id forbidden response a status code equal to that given

func (*PutServiceIDForbidden) IsRedirect added in v0.15.7

func (o *PutServiceIDForbidden) IsRedirect() bool

IsRedirect returns true when this put service Id forbidden response has a 3xx status code

func (*PutServiceIDForbidden) IsServerError added in v0.15.7

func (o *PutServiceIDForbidden) IsServerError() bool

IsServerError returns true when this put service Id forbidden response has a 5xx status code

func (*PutServiceIDForbidden) IsSuccess added in v0.15.7

func (o *PutServiceIDForbidden) IsSuccess() bool

IsSuccess returns true when this put service Id forbidden response has a 2xx status code

func (*PutServiceIDForbidden) String added in v0.15.7

func (o *PutServiceIDForbidden) String() string

type PutServiceIDInvalidBackend

type PutServiceIDInvalidBackend struct {
	Payload models.Error
}

PutServiceIDInvalidBackend describes a response with status code 461, with default header values.

Invalid backend in service configuration

func NewPutServiceIDInvalidBackend

func NewPutServiceIDInvalidBackend() *PutServiceIDInvalidBackend

NewPutServiceIDInvalidBackend creates a PutServiceIDInvalidBackend with default headers values

func (*PutServiceIDInvalidBackend) Error

func (*PutServiceIDInvalidBackend) GetPayload added in v0.15.7

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

func (*PutServiceIDInvalidBackend) IsClientError added in v0.15.7

func (o *PutServiceIDInvalidBackend) IsClientError() bool

IsClientError returns true when this put service Id invalid backend response has a 4xx status code

func (*PutServiceIDInvalidBackend) IsCode added in v0.15.7

func (o *PutServiceIDInvalidBackend) IsCode(code int) bool

IsCode returns true when this put service Id invalid backend response a status code equal to that given

func (*PutServiceIDInvalidBackend) IsRedirect added in v0.15.7

func (o *PutServiceIDInvalidBackend) IsRedirect() bool

IsRedirect returns true when this put service Id invalid backend response has a 3xx status code

func (*PutServiceIDInvalidBackend) IsServerError added in v0.15.7

func (o *PutServiceIDInvalidBackend) IsServerError() bool

IsServerError returns true when this put service Id invalid backend response has a 5xx status code

func (*PutServiceIDInvalidBackend) IsSuccess added in v0.15.7

func (o *PutServiceIDInvalidBackend) IsSuccess() bool

IsSuccess returns true when this put service Id invalid backend response has a 2xx status code

func (*PutServiceIDInvalidBackend) String added in v0.15.7

func (o *PutServiceIDInvalidBackend) String() string

type PutServiceIDInvalidFrontend

type PutServiceIDInvalidFrontend struct {
	Payload models.Error
}

PutServiceIDInvalidFrontend describes a response with status code 460, with default header values.

Invalid frontend in service configuration

func NewPutServiceIDInvalidFrontend

func NewPutServiceIDInvalidFrontend() *PutServiceIDInvalidFrontend

NewPutServiceIDInvalidFrontend creates a PutServiceIDInvalidFrontend with default headers values

func (*PutServiceIDInvalidFrontend) Error

func (*PutServiceIDInvalidFrontend) GetPayload added in v0.15.7

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

func (*PutServiceIDInvalidFrontend) IsClientError added in v0.15.7

func (o *PutServiceIDInvalidFrontend) IsClientError() bool

IsClientError returns true when this put service Id invalid frontend response has a 4xx status code

func (*PutServiceIDInvalidFrontend) IsCode added in v0.15.7

func (o *PutServiceIDInvalidFrontend) IsCode(code int) bool

IsCode returns true when this put service Id invalid frontend response a status code equal to that given

func (*PutServiceIDInvalidFrontend) IsRedirect added in v0.15.7

func (o *PutServiceIDInvalidFrontend) IsRedirect() bool

IsRedirect returns true when this put service Id invalid frontend response has a 3xx status code

func (*PutServiceIDInvalidFrontend) IsServerError added in v0.15.7

func (o *PutServiceIDInvalidFrontend) IsServerError() bool

IsServerError returns true when this put service Id invalid frontend response has a 5xx status code

func (*PutServiceIDInvalidFrontend) IsSuccess added in v0.15.7

func (o *PutServiceIDInvalidFrontend) IsSuccess() bool

IsSuccess returns true when this put service Id invalid frontend response has a 2xx status code

func (*PutServiceIDInvalidFrontend) String added in v0.15.7

func (o *PutServiceIDInvalidFrontend) String() string

type PutServiceIDOK

type PutServiceIDOK struct {
}

PutServiceIDOK describes a response with status code 200, with default header values.

Updated

func NewPutServiceIDOK

func NewPutServiceIDOK() *PutServiceIDOK

NewPutServiceIDOK creates a PutServiceIDOK with default headers values

func (*PutServiceIDOK) Error

func (o *PutServiceIDOK) Error() string

func (*PutServiceIDOK) IsClientError added in v0.15.7

func (o *PutServiceIDOK) IsClientError() bool

IsClientError returns true when this put service Id o k response has a 4xx status code

func (*PutServiceIDOK) IsCode added in v0.15.7

func (o *PutServiceIDOK) IsCode(code int) bool

IsCode returns true when this put service Id o k response a status code equal to that given

func (*PutServiceIDOK) IsRedirect added in v0.15.7

func (o *PutServiceIDOK) IsRedirect() bool

IsRedirect returns true when this put service Id o k response has a 3xx status code

func (*PutServiceIDOK) IsServerError added in v0.15.7

func (o *PutServiceIDOK) IsServerError() bool

IsServerError returns true when this put service Id o k response has a 5xx status code

func (*PutServiceIDOK) IsSuccess added in v0.15.7

func (o *PutServiceIDOK) IsSuccess() bool

IsSuccess returns true when this put service Id o k response has a 2xx status code

func (*PutServiceIDOK) String added in v0.15.7

func (o *PutServiceIDOK) String() string

type PutServiceIDParams

type PutServiceIDParams struct {

	/* Config.

	   Service configuration
	*/
	Config *models.ServiceSpec

	/* ID.

	   ID of service
	*/
	ID int64

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

PutServiceIDParams contains all the parameters to send to the API endpoint

for the put service ID operation.

Typically these are written to a http.Request.

func NewPutServiceIDParams

func NewPutServiceIDParams() *PutServiceIDParams

NewPutServiceIDParams creates a new PutServiceIDParams 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 NewPutServiceIDParamsWithContext

func NewPutServiceIDParamsWithContext(ctx context.Context) *PutServiceIDParams

NewPutServiceIDParamsWithContext creates a new PutServiceIDParams object with the ability to set a context for a request.

func NewPutServiceIDParamsWithHTTPClient

func NewPutServiceIDParamsWithHTTPClient(client *http.Client) *PutServiceIDParams

NewPutServiceIDParamsWithHTTPClient creates a new PutServiceIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutServiceIDParamsWithTimeout

func NewPutServiceIDParamsWithTimeout(timeout time.Duration) *PutServiceIDParams

NewPutServiceIDParamsWithTimeout creates a new PutServiceIDParams object with the ability to set a timeout on a request.

func (*PutServiceIDParams) SetConfig

func (o *PutServiceIDParams) SetConfig(config *models.ServiceSpec)

SetConfig adds the config to the put service ID params

func (*PutServiceIDParams) SetContext

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

SetContext adds the context to the put service ID params

func (*PutServiceIDParams) SetDefaults added in v0.15.7

func (o *PutServiceIDParams) SetDefaults()

SetDefaults hydrates default values in the put service ID params (not the query body).

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

func (*PutServiceIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put service ID params

func (*PutServiceIDParams) SetID

func (o *PutServiceIDParams) SetID(id int64)

SetID adds the id to the put service ID params

func (*PutServiceIDParams) SetTimeout

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

SetTimeout adds the timeout to the put service ID params

func (*PutServiceIDParams) WithConfig

func (o *PutServiceIDParams) WithConfig(config *models.ServiceSpec) *PutServiceIDParams

WithConfig adds the config to the put service ID params

func (*PutServiceIDParams) WithContext

WithContext adds the context to the put service ID params

func (*PutServiceIDParams) WithDefaults added in v0.15.7

func (o *PutServiceIDParams) WithDefaults() *PutServiceIDParams

WithDefaults hydrates default values in the put service ID params (not the query body).

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

func (*PutServiceIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put service ID params

func (*PutServiceIDParams) WithID

WithID adds the id to the put service ID params

func (*PutServiceIDParams) WithTimeout

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

WithTimeout adds the timeout to the put service ID params

func (*PutServiceIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutServiceIDReader

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

PutServiceIDReader is a Reader for the PutServiceID structure.

func (*PutServiceIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutServiceIDUpdateBackendFailure added in v0.15.7

type PutServiceIDUpdateBackendFailure struct {
	Payload models.Error
}

PutServiceIDUpdateBackendFailure describes a response with status code 501, with default header values.

Error while updating backend states

func NewPutServiceIDUpdateBackendFailure added in v0.15.7

func NewPutServiceIDUpdateBackendFailure() *PutServiceIDUpdateBackendFailure

NewPutServiceIDUpdateBackendFailure creates a PutServiceIDUpdateBackendFailure with default headers values

func (*PutServiceIDUpdateBackendFailure) Error added in v0.15.7

func (*PutServiceIDUpdateBackendFailure) GetPayload added in v0.15.7

func (*PutServiceIDUpdateBackendFailure) IsClientError added in v0.15.7

func (o *PutServiceIDUpdateBackendFailure) IsClientError() bool

IsClientError returns true when this put service Id update backend failure response has a 4xx status code

func (*PutServiceIDUpdateBackendFailure) IsCode added in v0.15.7

func (o *PutServiceIDUpdateBackendFailure) IsCode(code int) bool

IsCode returns true when this put service Id update backend failure response a status code equal to that given

func (*PutServiceIDUpdateBackendFailure) IsRedirect added in v0.15.7

func (o *PutServiceIDUpdateBackendFailure) IsRedirect() bool

IsRedirect returns true when this put service Id update backend failure response has a 3xx status code

func (*PutServiceIDUpdateBackendFailure) IsServerError added in v0.15.7

func (o *PutServiceIDUpdateBackendFailure) IsServerError() bool

IsServerError returns true when this put service Id update backend failure response has a 5xx status code

func (*PutServiceIDUpdateBackendFailure) IsSuccess added in v0.15.7

func (o *PutServiceIDUpdateBackendFailure) IsSuccess() bool

IsSuccess returns true when this put service Id update backend failure response has a 2xx status code

func (*PutServiceIDUpdateBackendFailure) String added in v0.15.7

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL