drivers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 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 AddDriverBadRequest

type AddDriverBadRequest struct {
	Payload *models.Error
}

AddDriverBadRequest handles this case with default header values.

Invalid input

func NewAddDriverBadRequest

func NewAddDriverBadRequest() *AddDriverBadRequest

NewAddDriverBadRequest creates a AddDriverBadRequest with default headers values

func (*AddDriverBadRequest) Error

func (o *AddDriverBadRequest) Error() string

type AddDriverCreated

type AddDriverCreated struct {
	Payload *models.Driver
}

AddDriverCreated handles this case with default header values.

Driver created

func NewAddDriverCreated

func NewAddDriverCreated() *AddDriverCreated

NewAddDriverCreated creates a AddDriverCreated with default headers values

func (*AddDriverCreated) Error

func (o *AddDriverCreated) Error() string

type AddDriverDefault

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

AddDriverDefault handles this case with default header values.

Unknown error

func NewAddDriverDefault

func NewAddDriverDefault(code int) *AddDriverDefault

NewAddDriverDefault creates a AddDriverDefault with default headers values

func (*AddDriverDefault) Code

func (o *AddDriverDefault) Code() int

Code gets the status code for the add driver default response

func (*AddDriverDefault) Error

func (o *AddDriverDefault) Error() string

type AddDriverInternalServerError

type AddDriverInternalServerError struct {
	Payload *models.Error
}

AddDriverInternalServerError handles this case with default header values.

Internal server error

func NewAddDriverInternalServerError

func NewAddDriverInternalServerError() *AddDriverInternalServerError

NewAddDriverInternalServerError creates a AddDriverInternalServerError with default headers values

func (*AddDriverInternalServerError) Error

type AddDriverParams

type AddDriverParams struct {

	/*Body
	  driver object

	*/
	Body *models.Driver

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

AddDriverParams contains all the parameters to send to the API endpoint for the add driver operation typically these are written to a http.Request

func NewAddDriverParams

func NewAddDriverParams() *AddDriverParams

NewAddDriverParams creates a new AddDriverParams object with the default values initialized.

func NewAddDriverParamsWithContext

func NewAddDriverParamsWithContext(ctx context.Context) *AddDriverParams

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

func NewAddDriverParamsWithHTTPClient

func NewAddDriverParamsWithHTTPClient(client *http.Client) *AddDriverParams

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

func NewAddDriverParamsWithTimeout

func NewAddDriverParamsWithTimeout(timeout time.Duration) *AddDriverParams

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

func (*AddDriverParams) SetBody

func (o *AddDriverParams) SetBody(body *models.Driver)

SetBody adds the body to the add driver params

func (*AddDriverParams) SetContext

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

SetContext adds the context to the add driver params

func (*AddDriverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add driver params

func (*AddDriverParams) SetTimeout

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

SetTimeout adds the timeout to the add driver params

func (*AddDriverParams) WithBody

func (o *AddDriverParams) WithBody(body *models.Driver) *AddDriverParams

WithBody adds the body to the add driver params

func (*AddDriverParams) WithContext

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

WithContext adds the context to the add driver params

func (*AddDriverParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add driver params

func (*AddDriverParams) WithTimeout

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

WithTimeout adds the timeout to the add driver params

func (*AddDriverParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddDriverReader

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

AddDriverReader is a Reader for the AddDriver structure.

func (*AddDriverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddDriverUnauthorized

type AddDriverUnauthorized struct {
	Payload *models.Error
}

AddDriverUnauthorized handles this case with default header values.

Unauthorized Request

func NewAddDriverUnauthorized

func NewAddDriverUnauthorized() *AddDriverUnauthorized

NewAddDriverUnauthorized creates a AddDriverUnauthorized with default headers values

func (*AddDriverUnauthorized) Error

func (o *AddDriverUnauthorized) Error() string

type Client

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

Client for drivers API

func New

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

New creates a new drivers API client.

func (*Client) AddDriver

func (a *Client) AddDriver(params *AddDriverParams, authInfo runtime.ClientAuthInfoWriter) (*AddDriverCreated, error)

AddDriver creates a new driver

func (*Client) DeleteDriver

func (a *Client) DeleteDriver(params *DeleteDriverParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDriverOK, error)

DeleteDriver deletes a driver

func (*Client) GetDriver

func (a *Client) GetDriver(params *GetDriverParams, authInfo runtime.ClientAuthInfoWriter) (*GetDriverOK, error)

GetDriver finds driver by name

Returns a single driver

func (*Client) GetDrivers

func (a *Client) GetDrivers(params *GetDriversParams, authInfo runtime.ClientAuthInfoWriter) (*GetDriversOK, error)

GetDrivers lists all existing drivers

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteDriverBadRequest

type DeleteDriverBadRequest struct {
	Payload *models.Error
}

DeleteDriverBadRequest handles this case with default header values.

Invalid ID supplied

func NewDeleteDriverBadRequest

func NewDeleteDriverBadRequest() *DeleteDriverBadRequest

NewDeleteDriverBadRequest creates a DeleteDriverBadRequest with default headers values

func (*DeleteDriverBadRequest) Error

func (o *DeleteDriverBadRequest) Error() string

type DeleteDriverDefault

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

DeleteDriverDefault handles this case with default header values.

Generic error response

func NewDeleteDriverDefault

func NewDeleteDriverDefault(code int) *DeleteDriverDefault

NewDeleteDriverDefault creates a DeleteDriverDefault with default headers values

func (*DeleteDriverDefault) Code

func (o *DeleteDriverDefault) Code() int

Code gets the status code for the delete driver default response

func (*DeleteDriverDefault) Error

func (o *DeleteDriverDefault) Error() string

type DeleteDriverInternalServerError

type DeleteDriverInternalServerError struct {
	Payload *models.Error
}

DeleteDriverInternalServerError handles this case with default header values.

Internal server error

func NewDeleteDriverInternalServerError

func NewDeleteDriverInternalServerError() *DeleteDriverInternalServerError

NewDeleteDriverInternalServerError creates a DeleteDriverInternalServerError with default headers values

func (*DeleteDriverInternalServerError) Error

type DeleteDriverNotFound

type DeleteDriverNotFound struct {
	Payload *models.Error
}

DeleteDriverNotFound handles this case with default header values.

Driver not found

func NewDeleteDriverNotFound

func NewDeleteDriverNotFound() *DeleteDriverNotFound

NewDeleteDriverNotFound creates a DeleteDriverNotFound with default headers values

func (*DeleteDriverNotFound) Error

func (o *DeleteDriverNotFound) Error() string

type DeleteDriverOK

type DeleteDriverOK struct {
	Payload *models.Driver
}

DeleteDriverOK handles this case with default header values.

successful operation

func NewDeleteDriverOK

func NewDeleteDriverOK() *DeleteDriverOK

NewDeleteDriverOK creates a DeleteDriverOK with default headers values

func (*DeleteDriverOK) Error

func (o *DeleteDriverOK) Error() string

type DeleteDriverParams

type DeleteDriverParams struct {

	/*DriverName
	  Name of the subscription to work on

	*/
	DriverName string

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

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

func NewDeleteDriverParams

func NewDeleteDriverParams() *DeleteDriverParams

NewDeleteDriverParams creates a new DeleteDriverParams object with the default values initialized.

func NewDeleteDriverParamsWithContext

func NewDeleteDriverParamsWithContext(ctx context.Context) *DeleteDriverParams

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

func NewDeleteDriverParamsWithHTTPClient

func NewDeleteDriverParamsWithHTTPClient(client *http.Client) *DeleteDriverParams

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

func NewDeleteDriverParamsWithTimeout

func NewDeleteDriverParamsWithTimeout(timeout time.Duration) *DeleteDriverParams

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

func (*DeleteDriverParams) SetContext

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

SetContext adds the context to the delete driver params

func (*DeleteDriverParams) SetDriverName

func (o *DeleteDriverParams) SetDriverName(driverName string)

SetDriverName adds the driverName to the delete driver params

func (*DeleteDriverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete driver params

func (*DeleteDriverParams) SetTimeout

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

SetTimeout adds the timeout to the delete driver params

func (*DeleteDriverParams) WithContext

WithContext adds the context to the delete driver params

func (*DeleteDriverParams) WithDriverName

func (o *DeleteDriverParams) WithDriverName(driverName string) *DeleteDriverParams

WithDriverName adds the driverName to the delete driver params

func (*DeleteDriverParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete driver params

func (*DeleteDriverParams) WithTimeout

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

WithTimeout adds the timeout to the delete driver params

func (*DeleteDriverParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteDriverReader

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

DeleteDriverReader is a Reader for the DeleteDriver structure.

func (*DeleteDriverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDriverBadRequest

type GetDriverBadRequest struct {
	Payload *models.Error
}

GetDriverBadRequest handles this case with default header values.

Invalid Name supplied

func NewGetDriverBadRequest

func NewGetDriverBadRequest() *GetDriverBadRequest

NewGetDriverBadRequest creates a GetDriverBadRequest with default headers values

func (*GetDriverBadRequest) Error

func (o *GetDriverBadRequest) Error() string

type GetDriverDefault

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

GetDriverDefault handles this case with default header values.

Unknown error

func NewGetDriverDefault

func NewGetDriverDefault(code int) *GetDriverDefault

NewGetDriverDefault creates a GetDriverDefault with default headers values

func (*GetDriverDefault) Code

func (o *GetDriverDefault) Code() int

Code gets the status code for the get driver default response

func (*GetDriverDefault) Error

func (o *GetDriverDefault) Error() string

type GetDriverInternalServerError

type GetDriverInternalServerError struct {
	Payload *models.Error
}

GetDriverInternalServerError handles this case with default header values.

Internal server error

func NewGetDriverInternalServerError

func NewGetDriverInternalServerError() *GetDriverInternalServerError

NewGetDriverInternalServerError creates a GetDriverInternalServerError with default headers values

func (*GetDriverInternalServerError) Error

type GetDriverNotFound

type GetDriverNotFound struct {
	Payload *models.Error
}

GetDriverNotFound handles this case with default header values.

Driver not found

func NewGetDriverNotFound

func NewGetDriverNotFound() *GetDriverNotFound

NewGetDriverNotFound creates a GetDriverNotFound with default headers values

func (*GetDriverNotFound) Error

func (o *GetDriverNotFound) Error() string

type GetDriverOK

type GetDriverOK struct {
	Payload *models.Driver
}

GetDriverOK handles this case with default header values.

Successful operation

func NewGetDriverOK

func NewGetDriverOK() *GetDriverOK

NewGetDriverOK creates a GetDriverOK with default headers values

func (*GetDriverOK) Error

func (o *GetDriverOK) Error() string

type GetDriverParams

type GetDriverParams struct {

	/*DriverName
	  Name of the subscription to work on

	*/
	DriverName string

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

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

func NewGetDriverParams

func NewGetDriverParams() *GetDriverParams

NewGetDriverParams creates a new GetDriverParams object with the default values initialized.

func NewGetDriverParamsWithContext

func NewGetDriverParamsWithContext(ctx context.Context) *GetDriverParams

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

func NewGetDriverParamsWithHTTPClient

func NewGetDriverParamsWithHTTPClient(client *http.Client) *GetDriverParams

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

func NewGetDriverParamsWithTimeout

func NewGetDriverParamsWithTimeout(timeout time.Duration) *GetDriverParams

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

func (*GetDriverParams) SetContext

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

SetContext adds the context to the get driver params

func (*GetDriverParams) SetDriverName

func (o *GetDriverParams) SetDriverName(driverName string)

SetDriverName adds the driverName to the get driver params

func (*GetDriverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get driver params

func (*GetDriverParams) SetTimeout

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

SetTimeout adds the timeout to the get driver params

func (*GetDriverParams) WithContext

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

WithContext adds the context to the get driver params

func (*GetDriverParams) WithDriverName

func (o *GetDriverParams) WithDriverName(driverName string) *GetDriverParams

WithDriverName adds the driverName to the get driver params

func (*GetDriverParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get driver params

func (*GetDriverParams) WithTimeout

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

WithTimeout adds the timeout to the get driver params

func (*GetDriverParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDriverReader

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

GetDriverReader is a Reader for the GetDriver structure.

func (*GetDriverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDriversDefault

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

GetDriversDefault handles this case with default header values.

Unknown error

func NewGetDriversDefault

func NewGetDriversDefault(code int) *GetDriversDefault

NewGetDriversDefault creates a GetDriversDefault with default headers values

func (*GetDriversDefault) Code

func (o *GetDriversDefault) Code() int

Code gets the status code for the get drivers default response

func (*GetDriversDefault) Error

func (o *GetDriversDefault) Error() string

type GetDriversInternalServerError

type GetDriversInternalServerError struct {
	Payload *models.Error
}

GetDriversInternalServerError handles this case with default header values.

Internal server error

func NewGetDriversInternalServerError

func NewGetDriversInternalServerError() *GetDriversInternalServerError

NewGetDriversInternalServerError creates a GetDriversInternalServerError with default headers values

func (*GetDriversInternalServerError) Error

type GetDriversOK

type GetDriversOK struct {
	Payload models.GetDriversOKBody
}

GetDriversOK handles this case with default header values.

Successful operation

func NewGetDriversOK

func NewGetDriversOK() *GetDriversOK

NewGetDriversOK creates a GetDriversOK with default headers values

func (*GetDriversOK) Error

func (o *GetDriversOK) Error() string

type GetDriversParams

type GetDriversParams struct {

	/*Tags
	  Filter on driver tags

	*/
	Tags []string

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

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

func NewGetDriversParams

func NewGetDriversParams() *GetDriversParams

NewGetDriversParams creates a new GetDriversParams object with the default values initialized.

func NewGetDriversParamsWithContext

func NewGetDriversParamsWithContext(ctx context.Context) *GetDriversParams

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

func NewGetDriversParamsWithHTTPClient

func NewGetDriversParamsWithHTTPClient(client *http.Client) *GetDriversParams

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

func NewGetDriversParamsWithTimeout

func NewGetDriversParamsWithTimeout(timeout time.Duration) *GetDriversParams

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

func (*GetDriversParams) SetContext

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

SetContext adds the context to the get drivers params

func (*GetDriversParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get drivers params

func (*GetDriversParams) SetTags

func (o *GetDriversParams) SetTags(tags []string)

SetTags adds the tags to the get drivers params

func (*GetDriversParams) SetTimeout

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

SetTimeout adds the timeout to the get drivers params

func (*GetDriversParams) WithContext

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

WithContext adds the context to the get drivers params

func (*GetDriversParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get drivers params

func (*GetDriversParams) WithTags

func (o *GetDriversParams) WithTags(tags []string) *GetDriversParams

WithTags adds the tags to the get drivers params

func (*GetDriversParams) WithTimeout

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

WithTimeout adds the timeout to the get drivers params

func (*GetDriversParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDriversReader

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

GetDriversReader is a Reader for the GetDrivers structure.

func (*GetDriversReader) ReadResponse

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