service

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for service API

func New

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

New creates a new service API client.

func (*Client) DeleteServiceID

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

DeleteServiceID deletes a service

func (*Client) GetService

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

GetService retrieves list of all services

func (*Client) GetServiceID

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

GetServiceID retrieves configuration of a service

func (*Client) PutServiceID

func (a *Client) PutServiceID(params *PutServiceIDParams) (*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 DeleteServiceIDFailure

type DeleteServiceIDFailure struct {
	Payload models.Error
}

DeleteServiceIDFailure handles this case 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

type DeleteServiceIDNotFound

type DeleteServiceIDNotFound struct {
}

DeleteServiceIDNotFound handles this case 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

type DeleteServiceIDOK

type DeleteServiceIDOK struct {
}

DeleteServiceIDOK handles this case 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

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 values initialized.

func NewDeleteServiceIDParamsWithContext

func NewDeleteServiceIDParamsWithContext(ctx context.Context) *DeleteServiceIDParams

NewDeleteServiceIDParamsWithContext creates a new DeleteServiceIDParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 GetServiceIDNotFound

type GetServiceIDNotFound struct {
}

GetServiceIDNotFound handles this case 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

type GetServiceIDOK

type GetServiceIDOK struct {
	Payload *models.Service
}

GetServiceIDOK handles this case 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

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 values initialized.

func NewGetServiceIDParamsWithContext

func NewGetServiceIDParamsWithContext(ctx context.Context) *GetServiceIDParams

NewGetServiceIDParamsWithContext creates a new GetServiceIDParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

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 values initialized.

func NewGetServiceParamsWithContext

func NewGetServiceParamsWithContext(ctx context.Context) *GetServiceParams

NewGetServiceParamsWithContext creates a new GetServiceParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type PutServiceIDFailure

type PutServiceIDFailure struct {
	Payload models.Error
}

PutServiceIDFailure handles this case 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

type PutServiceIDInvalidBackend

type PutServiceIDInvalidBackend struct {
	Payload models.Error
}

PutServiceIDInvalidBackend handles this case 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

type PutServiceIDInvalidFrontend

type PutServiceIDInvalidFrontend struct {
	Payload models.Error
}

PutServiceIDInvalidFrontend handles this case 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

type PutServiceIDOK

type PutServiceIDOK struct {
}

PutServiceIDOK handles this case 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

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 values initialized.

func NewPutServiceIDParamsWithContext

func NewPutServiceIDParamsWithContext(ctx context.Context) *PutServiceIDParams

NewPutServiceIDParamsWithContext creates a new PutServiceIDParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.

Jump to

Keyboard shortcuts

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