services

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 10 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 services API

func New

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

New creates a new services API client.

func (*Client) CreateOrUpdateService

func (a *Client) CreateOrUpdateService(params *CreateOrUpdateServiceParams) (*CreateOrUpdateServiceOK, error)

CreateOrUpdateService create or update service API

func (*Client) DeleteService

func (a *Client) DeleteService(params *DeleteServiceParams) (*DeleteServiceNoContent, error)

DeleteService delete service API

func (*Client) GetService

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

GetService get service API

func (*Client) ListServices

func (a *Client) ListServices(params *ListServicesParams) (*ListServicesOK, error)

ListServices list services API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateOrUpdateServiceDefault

type CreateOrUpdateServiceDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

CreateOrUpdateServiceDefault handles this case with default header values.

error

func NewCreateOrUpdateServiceDefault

func NewCreateOrUpdateServiceDefault(code int) *CreateOrUpdateServiceDefault

NewCreateOrUpdateServiceDefault creates a CreateOrUpdateServiceDefault with default headers values

func (*CreateOrUpdateServiceDefault) Code

Code gets the status code for the create or update service default response

func (*CreateOrUpdateServiceDefault) Error

type CreateOrUpdateServiceOK

type CreateOrUpdateServiceOK struct {
	Payload *models.Service
}

CreateOrUpdateServiceOK handles this case with default header values.

OK

func NewCreateOrUpdateServiceOK

func NewCreateOrUpdateServiceOK() *CreateOrUpdateServiceOK

NewCreateOrUpdateServiceOK creates a CreateOrUpdateServiceOK with default headers values

func (*CreateOrUpdateServiceOK) Error

func (o *CreateOrUpdateServiceOK) Error() string

type CreateOrUpdateServiceParams

type CreateOrUpdateServiceParams struct {

	/*Body*/
	Body *models.Service
	/*Name*/
	Name string

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

CreateOrUpdateServiceParams contains all the parameters to send to the API endpoint for the create or update service operation typically these are written to a http.Request

func NewCreateOrUpdateServiceParams

func NewCreateOrUpdateServiceParams() *CreateOrUpdateServiceParams

NewCreateOrUpdateServiceParams creates a new CreateOrUpdateServiceParams object with the default values initialized.

func NewCreateOrUpdateServiceParamsWithContext

func NewCreateOrUpdateServiceParamsWithContext(ctx context.Context) *CreateOrUpdateServiceParams

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

func NewCreateOrUpdateServiceParamsWithHTTPClient

func NewCreateOrUpdateServiceParamsWithHTTPClient(client *http.Client) *CreateOrUpdateServiceParams

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

func NewCreateOrUpdateServiceParamsWithTimeout

func NewCreateOrUpdateServiceParamsWithTimeout(timeout time.Duration) *CreateOrUpdateServiceParams

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

func (*CreateOrUpdateServiceParams) SetBody

func (o *CreateOrUpdateServiceParams) SetBody(body *models.Service)

SetBody adds the body to the create or update service params

func (*CreateOrUpdateServiceParams) SetContext

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

SetContext adds the context to the create or update service params

func (*CreateOrUpdateServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create or update service params

func (*CreateOrUpdateServiceParams) SetName

func (o *CreateOrUpdateServiceParams) SetName(name string)

SetName adds the name to the create or update service params

func (*CreateOrUpdateServiceParams) SetTimeout

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

SetTimeout adds the timeout to the create or update service params

func (*CreateOrUpdateServiceParams) WithBody

WithBody adds the body to the create or update service params

func (*CreateOrUpdateServiceParams) WithContext

WithContext adds the context to the create or update service params

func (*CreateOrUpdateServiceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create or update service params

func (*CreateOrUpdateServiceParams) WithName

WithName adds the name to the create or update service params

func (*CreateOrUpdateServiceParams) WithTimeout

WithTimeout adds the timeout to the create or update service params

func (*CreateOrUpdateServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateOrUpdateServiceReader

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

CreateOrUpdateServiceReader is a Reader for the CreateOrUpdateService structure.

func (*CreateOrUpdateServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteServiceDefault

type DeleteServiceDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteServiceDefault handles this case with default header values.

error

func NewDeleteServiceDefault

func NewDeleteServiceDefault(code int) *DeleteServiceDefault

NewDeleteServiceDefault creates a DeleteServiceDefault with default headers values

func (*DeleteServiceDefault) Code

func (o *DeleteServiceDefault) Code() int

Code gets the status code for the delete service default response

func (*DeleteServiceDefault) Error

func (o *DeleteServiceDefault) Error() string

type DeleteServiceNoContent

type DeleteServiceNoContent struct {
}

DeleteServiceNoContent handles this case with default header values.

Deleted

func NewDeleteServiceNoContent

func NewDeleteServiceNoContent() *DeleteServiceNoContent

NewDeleteServiceNoContent creates a DeleteServiceNoContent with default headers values

func (*DeleteServiceNoContent) Error

func (o *DeleteServiceNoContent) Error() string

type DeleteServiceParams

type DeleteServiceParams struct {

	/*Name*/
	Name string

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

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

func NewDeleteServiceParams

func NewDeleteServiceParams() *DeleteServiceParams

NewDeleteServiceParams creates a new DeleteServiceParams object with the default values initialized.

func NewDeleteServiceParamsWithContext

func NewDeleteServiceParamsWithContext(ctx context.Context) *DeleteServiceParams

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

func NewDeleteServiceParamsWithHTTPClient

func NewDeleteServiceParamsWithHTTPClient(client *http.Client) *DeleteServiceParams

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

func NewDeleteServiceParamsWithTimeout

func NewDeleteServiceParamsWithTimeout(timeout time.Duration) *DeleteServiceParams

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

func (*DeleteServiceParams) SetContext

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

SetContext adds the context to the delete service params

func (*DeleteServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete service params

func (*DeleteServiceParams) SetName

func (o *DeleteServiceParams) SetName(name string)

SetName adds the name to the delete service params

func (*DeleteServiceParams) SetTimeout

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

SetTimeout adds the timeout to the delete service params

func (*DeleteServiceParams) WithContext

WithContext adds the context to the delete service params

func (*DeleteServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete service params

func (*DeleteServiceParams) WithName

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

WithName adds the name to the delete service params

func (*DeleteServiceParams) WithTimeout

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

WithTimeout adds the timeout to the delete service params

func (*DeleteServiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteServiceReader

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

DeleteServiceReader is a Reader for the DeleteService structure.

func (*DeleteServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceDefault

type GetServiceDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetServiceDefault handles this case with default header values.

error

func NewGetServiceDefault

func NewGetServiceDefault(code int) *GetServiceDefault

NewGetServiceDefault creates a GetServiceDefault with default headers values

func (*GetServiceDefault) Code

func (o *GetServiceDefault) Code() int

Code gets the status code for the get service default response

func (*GetServiceDefault) Error

func (o *GetServiceDefault) Error() string

type GetServiceOK

type GetServiceOK struct {
	Payload *models.Service
}

GetServiceOK handles this case with default header values.

OK

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 {

	/*Name*/
	Name string

	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) SetName

func (o *GetServiceParams) SetName(name string)

SetName adds the name 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) WithName

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

WithName adds the name 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 ListServicesOK

type ListServicesOK struct {
	Payload models.ListServicesOKBody
}

ListServicesOK handles this case with default header values.

list the services

func NewListServicesOK

func NewListServicesOK() *ListServicesOK

NewListServicesOK creates a ListServicesOK with default headers values

func (*ListServicesOK) Error

func (o *ListServicesOK) Error() string

type ListServicesParams

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

ListServicesParams contains all the parameters to send to the API endpoint for the list services operation typically these are written to a http.Request

func NewListServicesParams

func NewListServicesParams() *ListServicesParams

NewListServicesParams creates a new ListServicesParams object with the default values initialized.

func NewListServicesParamsWithContext

func NewListServicesParamsWithContext(ctx context.Context) *ListServicesParams

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

func NewListServicesParamsWithHTTPClient

func NewListServicesParamsWithHTTPClient(client *http.Client) *ListServicesParams

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

func NewListServicesParamsWithTimeout

func NewListServicesParamsWithTimeout(timeout time.Duration) *ListServicesParams

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

func (*ListServicesParams) SetContext

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

SetContext adds the context to the list services params

func (*ListServicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list services params

func (*ListServicesParams) SetTimeout

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

SetTimeout adds the timeout to the list services params

func (*ListServicesParams) WithContext

WithContext adds the context to the list services params

func (*ListServicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list services params

func (*ListServicesParams) WithTimeout

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

WithTimeout adds the timeout to the list services params

func (*ListServicesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListServicesReader

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

ListServicesReader is a Reader for the ListServices structure.

func (*ListServicesReader) ReadResponse

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