Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateWorker(params *CreateWorkerParams) (*CreateWorkerCreated, error)
- func (a *Client) DeleteWorker(params *DeleteWorkerParams) (*DeleteWorkerOK, error)
- func (a *Client) GetWorker(params *GetWorkerParams) (*GetWorkerOK, error)
- func (a *Client) ListMachineTypes(params *ListMachineTypesParams) (*ListMachineTypesOK, error)
- func (a *Client) ListWorkers(params *ListWorkersParams) (*ListWorkersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateWorker(params *UpdateWorkerParams) (*UpdateWorkerOK, error)
- type CreateWorkerCreated
- type CreateWorkerParams
- func (o *CreateWorkerParams) SetContext(ctx context.Context)
- func (o *CreateWorkerParams) SetHTTPClient(client *http.Client)
- func (o *CreateWorkerParams) SetTimeout(timeout time.Duration)
- func (o *CreateWorkerParams) WithContext(ctx context.Context) *CreateWorkerParams
- func (o *CreateWorkerParams) WithHTTPClient(client *http.Client) *CreateWorkerParams
- func (o *CreateWorkerParams) WithTimeout(timeout time.Duration) *CreateWorkerParams
- func (o *CreateWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateWorkerReader
- type DeleteWorkerOK
- type DeleteWorkerParams
- func (o *DeleteWorkerParams) SetContext(ctx context.Context)
- func (o *DeleteWorkerParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWorkerParams) SetMachineID(machineID string)
- func (o *DeleteWorkerParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWorkerParams) WithContext(ctx context.Context) *DeleteWorkerParams
- func (o *DeleteWorkerParams) WithHTTPClient(client *http.Client) *DeleteWorkerParams
- func (o *DeleteWorkerParams) WithMachineID(machineID string) *DeleteWorkerParams
- func (o *DeleteWorkerParams) WithTimeout(timeout time.Duration) *DeleteWorkerParams
- func (o *DeleteWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWorkerReader
- type GetWorkerOK
- type GetWorkerParams
- func (o *GetWorkerParams) SetContext(ctx context.Context)
- func (o *GetWorkerParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkerParams) SetMachineID(machineID string)
- func (o *GetWorkerParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkerParams) WithContext(ctx context.Context) *GetWorkerParams
- func (o *GetWorkerParams) WithHTTPClient(client *http.Client) *GetWorkerParams
- func (o *GetWorkerParams) WithMachineID(machineID string) *GetWorkerParams
- func (o *GetWorkerParams) WithTimeout(timeout time.Duration) *GetWorkerParams
- func (o *GetWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkerReader
- type ListMachineTypesOK
- type ListMachineTypesParams
- func NewListMachineTypesParams() *ListMachineTypesParams
- func NewListMachineTypesParamsWithContext(ctx context.Context) *ListMachineTypesParams
- func NewListMachineTypesParamsWithHTTPClient(client *http.Client) *ListMachineTypesParams
- func NewListMachineTypesParamsWithTimeout(timeout time.Duration) *ListMachineTypesParams
- func (o *ListMachineTypesParams) SetContext(ctx context.Context)
- func (o *ListMachineTypesParams) SetHTTPClient(client *http.Client)
- func (o *ListMachineTypesParams) SetTimeout(timeout time.Duration)
- func (o *ListMachineTypesParams) WithContext(ctx context.Context) *ListMachineTypesParams
- func (o *ListMachineTypesParams) WithHTTPClient(client *http.Client) *ListMachineTypesParams
- func (o *ListMachineTypesParams) WithTimeout(timeout time.Duration) *ListMachineTypesParams
- func (o *ListMachineTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMachineTypesReader
- type ListWorkersOK
- type ListWorkersParams
- func (o *ListWorkersParams) SetContext(ctx context.Context)
- func (o *ListWorkersParams) SetHTTPClient(client *http.Client)
- func (o *ListWorkersParams) SetTimeout(timeout time.Duration)
- func (o *ListWorkersParams) WithContext(ctx context.Context) *ListWorkersParams
- func (o *ListWorkersParams) WithHTTPClient(client *http.Client) *ListWorkersParams
- func (o *ListWorkersParams) WithTimeout(timeout time.Duration) *ListWorkersParams
- func (o *ListWorkersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListWorkersReader
- type UpdateWorkerOK
- type UpdateWorkerParams
- func (o *UpdateWorkerParams) SetContext(ctx context.Context)
- func (o *UpdateWorkerParams) SetHTTPClient(client *http.Client)
- func (o *UpdateWorkerParams) SetMachineID(machineID string)
- func (o *UpdateWorkerParams) SetTimeout(timeout time.Duration)
- func (o *UpdateWorkerParams) WithContext(ctx context.Context) *UpdateWorkerParams
- func (o *UpdateWorkerParams) WithHTTPClient(client *http.Client) *UpdateWorkerParams
- func (o *UpdateWorkerParams) WithMachineID(machineID string) *UpdateWorkerParams
- func (o *UpdateWorkerParams) WithTimeout(timeout time.Duration) *UpdateWorkerParams
- func (o *UpdateWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateWorkerReader
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 workers API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new workers API client.
func (*Client) CreateWorker ¶
func (a *Client) CreateWorker(params *CreateWorkerParams) (*CreateWorkerCreated, error)
CreateWorker creates a new worker with the specified machine type
This will create a new worker.
func (*Client) DeleteWorker ¶
func (a *Client) DeleteWorker(params *DeleteWorkerParams) (*DeleteWorkerOK, error)
DeleteWorker deletes a worker with the specified machine ID
This will delete a worker.
func (*Client) GetWorker ¶
func (a *Client) GetWorker(params *GetWorkerParams) (*GetWorkerOK, error)
GetWorker gets a worker with the specified machine ID
This will get a worker.
func (*Client) ListMachineTypes ¶
func (a *Client) ListMachineTypes(params *ListMachineTypesParams) (*ListMachineTypesOK, error)
ListMachineTypes lists all provider s machine types
This will show all provider's machine types.
func (*Client) ListWorkers ¶
func (a *Client) ListWorkers(params *ListWorkersParams) (*ListWorkersOK, error)
ListWorkers lists all workers
This will show all workers.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateWorker ¶
func (a *Client) UpdateWorker(params *UpdateWorkerParams) (*UpdateWorkerOK, error)
UpdateWorker updates a worker
This will update a worker.
type CreateWorkerCreated ¶
CreateWorkerCreated handles this case with default header values.
workerResponse contains a worker representation.
func NewCreateWorkerCreated ¶
func NewCreateWorkerCreated() *CreateWorkerCreated
NewCreateWorkerCreated creates a CreateWorkerCreated with default headers values
func (*CreateWorkerCreated) Error ¶
func (o *CreateWorkerCreated) Error() string
type CreateWorkerParams ¶
type CreateWorkerParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateWorkerParams contains all the parameters to send to the API endpoint for the create worker operation typically these are written to a http.Request
func NewCreateWorkerParams ¶
func NewCreateWorkerParams() *CreateWorkerParams
NewCreateWorkerParams creates a new CreateWorkerParams object with the default values initialized.
func NewCreateWorkerParamsWithContext ¶
func NewCreateWorkerParamsWithContext(ctx context.Context) *CreateWorkerParams
NewCreateWorkerParamsWithContext creates a new CreateWorkerParams object with the default values initialized, and the ability to set a context for a request
func NewCreateWorkerParamsWithHTTPClient ¶
func NewCreateWorkerParamsWithHTTPClient(client *http.Client) *CreateWorkerParams
NewCreateWorkerParamsWithHTTPClient creates a new CreateWorkerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateWorkerParamsWithTimeout ¶
func NewCreateWorkerParamsWithTimeout(timeout time.Duration) *CreateWorkerParams
NewCreateWorkerParamsWithTimeout creates a new CreateWorkerParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateWorkerParams) SetContext ¶
func (o *CreateWorkerParams) SetContext(ctx context.Context)
SetContext adds the context to the create worker params
func (*CreateWorkerParams) SetHTTPClient ¶
func (o *CreateWorkerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create worker params
func (*CreateWorkerParams) SetTimeout ¶
func (o *CreateWorkerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create worker params
func (*CreateWorkerParams) WithContext ¶
func (o *CreateWorkerParams) WithContext(ctx context.Context) *CreateWorkerParams
WithContext adds the context to the create worker params
func (*CreateWorkerParams) WithHTTPClient ¶
func (o *CreateWorkerParams) WithHTTPClient(client *http.Client) *CreateWorkerParams
WithHTTPClient adds the HTTPClient to the create worker params
func (*CreateWorkerParams) WithTimeout ¶
func (o *CreateWorkerParams) WithTimeout(timeout time.Duration) *CreateWorkerParams
WithTimeout adds the timeout to the create worker params
func (*CreateWorkerParams) WriteToRequest ¶
func (o *CreateWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateWorkerReader ¶
type CreateWorkerReader struct {
// contains filtered or unexported fields
}
CreateWorkerReader is a Reader for the CreateWorker structure.
func (*CreateWorkerReader) ReadResponse ¶
func (o *CreateWorkerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteWorkerOK ¶
DeleteWorkerOK handles this case with default header values.
workerResponse contains a worker representation.
func NewDeleteWorkerOK ¶
func NewDeleteWorkerOK() *DeleteWorkerOK
NewDeleteWorkerOK creates a DeleteWorkerOK with default headers values
func (*DeleteWorkerOK) Error ¶
func (o *DeleteWorkerOK) Error() string
type DeleteWorkerParams ¶
type DeleteWorkerParams struct { /*MachineID*/ MachineID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteWorkerParams contains all the parameters to send to the API endpoint for the delete worker operation typically these are written to a http.Request
func NewDeleteWorkerParams ¶
func NewDeleteWorkerParams() *DeleteWorkerParams
NewDeleteWorkerParams creates a new DeleteWorkerParams object with the default values initialized.
func NewDeleteWorkerParamsWithContext ¶
func NewDeleteWorkerParamsWithContext(ctx context.Context) *DeleteWorkerParams
NewDeleteWorkerParamsWithContext creates a new DeleteWorkerParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteWorkerParamsWithHTTPClient ¶
func NewDeleteWorkerParamsWithHTTPClient(client *http.Client) *DeleteWorkerParams
NewDeleteWorkerParamsWithHTTPClient creates a new DeleteWorkerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteWorkerParamsWithTimeout ¶
func NewDeleteWorkerParamsWithTimeout(timeout time.Duration) *DeleteWorkerParams
NewDeleteWorkerParamsWithTimeout creates a new DeleteWorkerParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteWorkerParams) SetContext ¶
func (o *DeleteWorkerParams) SetContext(ctx context.Context)
SetContext adds the context to the delete worker params
func (*DeleteWorkerParams) SetHTTPClient ¶
func (o *DeleteWorkerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete worker params
func (*DeleteWorkerParams) SetMachineID ¶
func (o *DeleteWorkerParams) SetMachineID(machineID string)
SetMachineID adds the machineId to the delete worker params
func (*DeleteWorkerParams) SetTimeout ¶
func (o *DeleteWorkerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete worker params
func (*DeleteWorkerParams) WithContext ¶
func (o *DeleteWorkerParams) WithContext(ctx context.Context) *DeleteWorkerParams
WithContext adds the context to the delete worker params
func (*DeleteWorkerParams) WithHTTPClient ¶
func (o *DeleteWorkerParams) WithHTTPClient(client *http.Client) *DeleteWorkerParams
WithHTTPClient adds the HTTPClient to the delete worker params
func (*DeleteWorkerParams) WithMachineID ¶
func (o *DeleteWorkerParams) WithMachineID(machineID string) *DeleteWorkerParams
WithMachineID adds the machineID to the delete worker params
func (*DeleteWorkerParams) WithTimeout ¶
func (o *DeleteWorkerParams) WithTimeout(timeout time.Duration) *DeleteWorkerParams
WithTimeout adds the timeout to the delete worker params
func (*DeleteWorkerParams) WriteToRequest ¶
func (o *DeleteWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteWorkerReader ¶
type DeleteWorkerReader struct {
// contains filtered or unexported fields
}
DeleteWorkerReader is a Reader for the DeleteWorker structure.
func (*DeleteWorkerReader) ReadResponse ¶
func (o *DeleteWorkerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkerOK ¶
GetWorkerOK handles this case with default header values.
workerResponse contains a worker representation.
func NewGetWorkerOK ¶
func NewGetWorkerOK() *GetWorkerOK
NewGetWorkerOK creates a GetWorkerOK with default headers values
func (*GetWorkerOK) Error ¶
func (o *GetWorkerOK) Error() string
type GetWorkerParams ¶
type GetWorkerParams struct { /*MachineID*/ MachineID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkerParams contains all the parameters to send to the API endpoint for the get worker operation typically these are written to a http.Request
func NewGetWorkerParams ¶
func NewGetWorkerParams() *GetWorkerParams
NewGetWorkerParams creates a new GetWorkerParams object with the default values initialized.
func NewGetWorkerParamsWithContext ¶
func NewGetWorkerParamsWithContext(ctx context.Context) *GetWorkerParams
NewGetWorkerParamsWithContext creates a new GetWorkerParams object with the default values initialized, and the ability to set a context for a request
func NewGetWorkerParamsWithHTTPClient ¶
func NewGetWorkerParamsWithHTTPClient(client *http.Client) *GetWorkerParams
NewGetWorkerParamsWithHTTPClient creates a new GetWorkerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetWorkerParamsWithTimeout ¶
func NewGetWorkerParamsWithTimeout(timeout time.Duration) *GetWorkerParams
NewGetWorkerParamsWithTimeout creates a new GetWorkerParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetWorkerParams) SetContext ¶
func (o *GetWorkerParams) SetContext(ctx context.Context)
SetContext adds the context to the get worker params
func (*GetWorkerParams) SetHTTPClient ¶
func (o *GetWorkerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get worker params
func (*GetWorkerParams) SetMachineID ¶
func (o *GetWorkerParams) SetMachineID(machineID string)
SetMachineID adds the machineId to the get worker params
func (*GetWorkerParams) SetTimeout ¶
func (o *GetWorkerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get worker params
func (*GetWorkerParams) WithContext ¶
func (o *GetWorkerParams) WithContext(ctx context.Context) *GetWorkerParams
WithContext adds the context to the get worker params
func (*GetWorkerParams) WithHTTPClient ¶
func (o *GetWorkerParams) WithHTTPClient(client *http.Client) *GetWorkerParams
WithHTTPClient adds the HTTPClient to the get worker params
func (*GetWorkerParams) WithMachineID ¶
func (o *GetWorkerParams) WithMachineID(machineID string) *GetWorkerParams
WithMachineID adds the machineID to the get worker params
func (*GetWorkerParams) WithTimeout ¶
func (o *GetWorkerParams) WithTimeout(timeout time.Duration) *GetWorkerParams
WithTimeout adds the timeout to the get worker params
func (*GetWorkerParams) WriteToRequest ¶
func (o *GetWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkerReader ¶
type GetWorkerReader struct {
// contains filtered or unexported fields
}
GetWorkerReader is a Reader for the GetWorker structure.
func (*GetWorkerReader) ReadResponse ¶
func (o *GetWorkerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListMachineTypesOK ¶
type ListMachineTypesOK struct {
Payload []*models.MachineType
}
ListMachineTypesOK handles this case with default header values.
machineTypesListResponse contains a list of workers.
func NewListMachineTypesOK ¶
func NewListMachineTypesOK() *ListMachineTypesOK
NewListMachineTypesOK creates a ListMachineTypesOK with default headers values
func (*ListMachineTypesOK) Error ¶
func (o *ListMachineTypesOK) Error() string
type ListMachineTypesParams ¶
type ListMachineTypesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListMachineTypesParams contains all the parameters to send to the API endpoint for the list machine types operation typically these are written to a http.Request
func NewListMachineTypesParams ¶
func NewListMachineTypesParams() *ListMachineTypesParams
NewListMachineTypesParams creates a new ListMachineTypesParams object with the default values initialized.
func NewListMachineTypesParamsWithContext ¶
func NewListMachineTypesParamsWithContext(ctx context.Context) *ListMachineTypesParams
NewListMachineTypesParamsWithContext creates a new ListMachineTypesParams object with the default values initialized, and the ability to set a context for a request
func NewListMachineTypesParamsWithHTTPClient ¶
func NewListMachineTypesParamsWithHTTPClient(client *http.Client) *ListMachineTypesParams
NewListMachineTypesParamsWithHTTPClient creates a new ListMachineTypesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListMachineTypesParamsWithTimeout ¶
func NewListMachineTypesParamsWithTimeout(timeout time.Duration) *ListMachineTypesParams
NewListMachineTypesParamsWithTimeout creates a new ListMachineTypesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListMachineTypesParams) SetContext ¶
func (o *ListMachineTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the list machine types params
func (*ListMachineTypesParams) SetHTTPClient ¶
func (o *ListMachineTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list machine types params
func (*ListMachineTypesParams) SetTimeout ¶
func (o *ListMachineTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list machine types params
func (*ListMachineTypesParams) WithContext ¶
func (o *ListMachineTypesParams) WithContext(ctx context.Context) *ListMachineTypesParams
WithContext adds the context to the list machine types params
func (*ListMachineTypesParams) WithHTTPClient ¶
func (o *ListMachineTypesParams) WithHTTPClient(client *http.Client) *ListMachineTypesParams
WithHTTPClient adds the HTTPClient to the list machine types params
func (*ListMachineTypesParams) WithTimeout ¶
func (o *ListMachineTypesParams) WithTimeout(timeout time.Duration) *ListMachineTypesParams
WithTimeout adds the timeout to the list machine types params
func (*ListMachineTypesParams) WriteToRequest ¶
func (o *ListMachineTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListMachineTypesReader ¶
type ListMachineTypesReader struct {
// contains filtered or unexported fields
}
ListMachineTypesReader is a Reader for the ListMachineTypes structure.
func (*ListMachineTypesReader) ReadResponse ¶
func (o *ListMachineTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListWorkersOK ¶
type ListWorkersOK struct {
Payload *models.WorkerList
}
ListWorkersOK handles this case with default header values.
workerListResponse contains a list of workers.
func NewListWorkersOK ¶
func NewListWorkersOK() *ListWorkersOK
NewListWorkersOK creates a ListWorkersOK with default headers values
func (*ListWorkersOK) Error ¶
func (o *ListWorkersOK) Error() string
type ListWorkersParams ¶
type ListWorkersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListWorkersParams contains all the parameters to send to the API endpoint for the list workers operation typically these are written to a http.Request
func NewListWorkersParams ¶
func NewListWorkersParams() *ListWorkersParams
NewListWorkersParams creates a new ListWorkersParams object with the default values initialized.
func NewListWorkersParamsWithContext ¶
func NewListWorkersParamsWithContext(ctx context.Context) *ListWorkersParams
NewListWorkersParamsWithContext creates a new ListWorkersParams object with the default values initialized, and the ability to set a context for a request
func NewListWorkersParamsWithHTTPClient ¶
func NewListWorkersParamsWithHTTPClient(client *http.Client) *ListWorkersParams
NewListWorkersParamsWithHTTPClient creates a new ListWorkersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListWorkersParamsWithTimeout ¶
func NewListWorkersParamsWithTimeout(timeout time.Duration) *ListWorkersParams
NewListWorkersParamsWithTimeout creates a new ListWorkersParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListWorkersParams) SetContext ¶
func (o *ListWorkersParams) SetContext(ctx context.Context)
SetContext adds the context to the list workers params
func (*ListWorkersParams) SetHTTPClient ¶
func (o *ListWorkersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list workers params
func (*ListWorkersParams) SetTimeout ¶
func (o *ListWorkersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list workers params
func (*ListWorkersParams) WithContext ¶
func (o *ListWorkersParams) WithContext(ctx context.Context) *ListWorkersParams
WithContext adds the context to the list workers params
func (*ListWorkersParams) WithHTTPClient ¶
func (o *ListWorkersParams) WithHTTPClient(client *http.Client) *ListWorkersParams
WithHTTPClient adds the HTTPClient to the list workers params
func (*ListWorkersParams) WithTimeout ¶
func (o *ListWorkersParams) WithTimeout(timeout time.Duration) *ListWorkersParams
WithTimeout adds the timeout to the list workers params
func (*ListWorkersParams) WriteToRequest ¶
func (o *ListWorkersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListWorkersReader ¶
type ListWorkersReader struct {
// contains filtered or unexported fields
}
ListWorkersReader is a Reader for the ListWorkers structure.
func (*ListWorkersReader) ReadResponse ¶
func (o *ListWorkersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateWorkerOK ¶
UpdateWorkerOK handles this case with default header values.
workerResponse contains a worker representation.
func NewUpdateWorkerOK ¶
func NewUpdateWorkerOK() *UpdateWorkerOK
NewUpdateWorkerOK creates a UpdateWorkerOK with default headers values
func (*UpdateWorkerOK) Error ¶
func (o *UpdateWorkerOK) Error() string
type UpdateWorkerParams ¶
type UpdateWorkerParams struct { /*MachineID*/ MachineID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateWorkerParams contains all the parameters to send to the API endpoint for the update worker operation typically these are written to a http.Request
func NewUpdateWorkerParams ¶
func NewUpdateWorkerParams() *UpdateWorkerParams
NewUpdateWorkerParams creates a new UpdateWorkerParams object with the default values initialized.
func NewUpdateWorkerParamsWithContext ¶
func NewUpdateWorkerParamsWithContext(ctx context.Context) *UpdateWorkerParams
NewUpdateWorkerParamsWithContext creates a new UpdateWorkerParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateWorkerParamsWithHTTPClient ¶
func NewUpdateWorkerParamsWithHTTPClient(client *http.Client) *UpdateWorkerParams
NewUpdateWorkerParamsWithHTTPClient creates a new UpdateWorkerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateWorkerParamsWithTimeout ¶
func NewUpdateWorkerParamsWithTimeout(timeout time.Duration) *UpdateWorkerParams
NewUpdateWorkerParamsWithTimeout creates a new UpdateWorkerParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateWorkerParams) SetContext ¶
func (o *UpdateWorkerParams) SetContext(ctx context.Context)
SetContext adds the context to the update worker params
func (*UpdateWorkerParams) SetHTTPClient ¶
func (o *UpdateWorkerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update worker params
func (*UpdateWorkerParams) SetMachineID ¶
func (o *UpdateWorkerParams) SetMachineID(machineID string)
SetMachineID adds the machineId to the update worker params
func (*UpdateWorkerParams) SetTimeout ¶
func (o *UpdateWorkerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update worker params
func (*UpdateWorkerParams) WithContext ¶
func (o *UpdateWorkerParams) WithContext(ctx context.Context) *UpdateWorkerParams
WithContext adds the context to the update worker params
func (*UpdateWorkerParams) WithHTTPClient ¶
func (o *UpdateWorkerParams) WithHTTPClient(client *http.Client) *UpdateWorkerParams
WithHTTPClient adds the HTTPClient to the update worker params
func (*UpdateWorkerParams) WithMachineID ¶
func (o *UpdateWorkerParams) WithMachineID(machineID string) *UpdateWorkerParams
WithMachineID adds the machineID to the update worker params
func (*UpdateWorkerParams) WithTimeout ¶
func (o *UpdateWorkerParams) WithTimeout(timeout time.Duration) *UpdateWorkerParams
WithTimeout adds the timeout to the update worker params
func (*UpdateWorkerParams) WriteToRequest ¶
func (o *UpdateWorkerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateWorkerReader ¶
type UpdateWorkerReader struct {
// contains filtered or unexported fields
}
UpdateWorkerReader is a Reader for the UpdateWorker structure.
func (*UpdateWorkerReader) ReadResponse ¶
func (o *UpdateWorkerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_worker_parameters.go
- create_worker_responses.go
- delete_worker_parameters.go
- delete_worker_responses.go
- get_worker_parameters.go
- get_worker_responses.go
- list_machine_types_parameters.go
- list_machine_types_responses.go
- list_workers_parameters.go
- list_workers_responses.go
- update_worker_parameters.go
- update_worker_responses.go
- workers_client.go