node

package
v0.0.0-...-193a162 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2018 License: MIT Imports: 11 Imported by: 1

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 node API

func New

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

New creates a new node API client.

func (*Client) NodeDelete

func (a *Client) NodeDelete(params *NodeDeleteParams) (*NodeDeleteOK, error)

NodeDelete deletes a node

func (*Client) NodeInspect

func (a *Client) NodeInspect(params *NodeInspectParams) (*NodeInspectOK, error)

NodeInspect inspects a node

func (*Client) NodeList

func (a *Client) NodeList(params *NodeListParams) (*NodeListOK, error)

NodeList lists nodes

func (*Client) NodeUpdate

func (a *Client) NodeUpdate(params *NodeUpdateParams) (*NodeUpdateOK, error)

NodeUpdate updates a node

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type NodeDeleteInternalServerError

type NodeDeleteInternalServerError struct {
	Payload *models.ErrorResponse
}

NodeDeleteInternalServerError handles this case with default header values.

server error

func NewNodeDeleteInternalServerError

func NewNodeDeleteInternalServerError() *NodeDeleteInternalServerError

NewNodeDeleteInternalServerError creates a NodeDeleteInternalServerError with default headers values

func (*NodeDeleteInternalServerError) Error

type NodeDeleteNotFound

type NodeDeleteNotFound struct {
	Payload *models.ErrorResponse
}

NodeDeleteNotFound handles this case with default header values.

no such node

func NewNodeDeleteNotFound

func NewNodeDeleteNotFound() *NodeDeleteNotFound

NewNodeDeleteNotFound creates a NodeDeleteNotFound with default headers values

func (*NodeDeleteNotFound) Error

func (o *NodeDeleteNotFound) Error() string

type NodeDeleteOK

type NodeDeleteOK struct {
}

NodeDeleteOK handles this case with default header values.

no error

func NewNodeDeleteOK

func NewNodeDeleteOK() *NodeDeleteOK

NewNodeDeleteOK creates a NodeDeleteOK with default headers values

func (*NodeDeleteOK) Error

func (o *NodeDeleteOK) Error() string

type NodeDeleteParams

type NodeDeleteParams struct {

	/*Force
	  Force remove a node from the swarm

	*/
	Force *bool
	/*ID
	  The ID or name of the node

	*/
	ID string

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

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

func NewNodeDeleteParams

func NewNodeDeleteParams() *NodeDeleteParams

NewNodeDeleteParams creates a new NodeDeleteParams object with the default values initialized.

func NewNodeDeleteParamsWithContext

func NewNodeDeleteParamsWithContext(ctx context.Context) *NodeDeleteParams

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

func NewNodeDeleteParamsWithHTTPClient

func NewNodeDeleteParamsWithHTTPClient(client *http.Client) *NodeDeleteParams

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

func NewNodeDeleteParamsWithTimeout

func NewNodeDeleteParamsWithTimeout(timeout time.Duration) *NodeDeleteParams

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

func (*NodeDeleteParams) SetContext

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

SetContext adds the context to the node delete params

func (*NodeDeleteParams) SetForce

func (o *NodeDeleteParams) SetForce(force *bool)

SetForce adds the force to the node delete params

func (*NodeDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the node delete params

func (*NodeDeleteParams) SetID

func (o *NodeDeleteParams) SetID(id string)

SetID adds the id to the node delete params

func (*NodeDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the node delete params

func (*NodeDeleteParams) WithContext

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

WithContext adds the context to the node delete params

func (*NodeDeleteParams) WithForce

func (o *NodeDeleteParams) WithForce(force *bool) *NodeDeleteParams

WithForce adds the force to the node delete params

func (*NodeDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the node delete params

func (*NodeDeleteParams) WithID

func (o *NodeDeleteParams) WithID(id string) *NodeDeleteParams

WithID adds the id to the node delete params

func (*NodeDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the node delete params

func (*NodeDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NodeDeleteReader

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

NodeDeleteReader is a Reader for the NodeDelete structure.

func (*NodeDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NodeDeleteServiceUnavailable

type NodeDeleteServiceUnavailable struct {
	Payload *models.ErrorResponse
}

NodeDeleteServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewNodeDeleteServiceUnavailable

func NewNodeDeleteServiceUnavailable() *NodeDeleteServiceUnavailable

NewNodeDeleteServiceUnavailable creates a NodeDeleteServiceUnavailable with default headers values

func (*NodeDeleteServiceUnavailable) Error

type NodeInspectInternalServerError

type NodeInspectInternalServerError struct {
	Payload *models.ErrorResponse
}

NodeInspectInternalServerError handles this case with default header values.

server error

func NewNodeInspectInternalServerError

func NewNodeInspectInternalServerError() *NodeInspectInternalServerError

NewNodeInspectInternalServerError creates a NodeInspectInternalServerError with default headers values

func (*NodeInspectInternalServerError) Error

type NodeInspectNotFound

type NodeInspectNotFound struct {
	Payload *models.ErrorResponse
}

NodeInspectNotFound handles this case with default header values.

no such node

func NewNodeInspectNotFound

func NewNodeInspectNotFound() *NodeInspectNotFound

NewNodeInspectNotFound creates a NodeInspectNotFound with default headers values

func (*NodeInspectNotFound) Error

func (o *NodeInspectNotFound) Error() string

type NodeInspectOK

type NodeInspectOK struct {
	Payload *models.Node
}

NodeInspectOK handles this case with default header values.

no error

func NewNodeInspectOK

func NewNodeInspectOK() *NodeInspectOK

NewNodeInspectOK creates a NodeInspectOK with default headers values

func (*NodeInspectOK) Error

func (o *NodeInspectOK) Error() string

type NodeInspectParams

type NodeInspectParams struct {

	/*ID
	  The ID or name of the node

	*/
	ID string

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

NodeInspectParams contains all the parameters to send to the API endpoint for the node inspect operation typically these are written to a http.Request

func NewNodeInspectParams

func NewNodeInspectParams() *NodeInspectParams

NewNodeInspectParams creates a new NodeInspectParams object with the default values initialized.

func NewNodeInspectParamsWithContext

func NewNodeInspectParamsWithContext(ctx context.Context) *NodeInspectParams

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

func NewNodeInspectParamsWithHTTPClient

func NewNodeInspectParamsWithHTTPClient(client *http.Client) *NodeInspectParams

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

func NewNodeInspectParamsWithTimeout

func NewNodeInspectParamsWithTimeout(timeout time.Duration) *NodeInspectParams

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

func (*NodeInspectParams) SetContext

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

SetContext adds the context to the node inspect params

func (*NodeInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the node inspect params

func (*NodeInspectParams) SetID

func (o *NodeInspectParams) SetID(id string)

SetID adds the id to the node inspect params

func (*NodeInspectParams) SetTimeout

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

SetTimeout adds the timeout to the node inspect params

func (*NodeInspectParams) WithContext

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

WithContext adds the context to the node inspect params

func (*NodeInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the node inspect params

func (*NodeInspectParams) WithID

WithID adds the id to the node inspect params

func (*NodeInspectParams) WithTimeout

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

WithTimeout adds the timeout to the node inspect params

func (*NodeInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NodeInspectReader

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

NodeInspectReader is a Reader for the NodeInspect structure.

func (*NodeInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NodeInspectServiceUnavailable

type NodeInspectServiceUnavailable struct {
	Payload *models.ErrorResponse
}

NodeInspectServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewNodeInspectServiceUnavailable

func NewNodeInspectServiceUnavailable() *NodeInspectServiceUnavailable

NewNodeInspectServiceUnavailable creates a NodeInspectServiceUnavailable with default headers values

func (*NodeInspectServiceUnavailable) Error

type NodeListInternalServerError

type NodeListInternalServerError struct {
	Payload *models.ErrorResponse
}

NodeListInternalServerError handles this case with default header values.

server error

func NewNodeListInternalServerError

func NewNodeListInternalServerError() *NodeListInternalServerError

NewNodeListInternalServerError creates a NodeListInternalServerError with default headers values

func (*NodeListInternalServerError) Error

type NodeListOK

type NodeListOK struct {
	Payload models.NodeListOKBody
}

NodeListOK handles this case with default header values.

no error

func NewNodeListOK

func NewNodeListOK() *NodeListOK

NewNodeListOK creates a NodeListOK with default headers values

func (*NodeListOK) Error

func (o *NodeListOK) Error() string

type NodeListParams

type NodeListParams struct {

	/*Filters
	  Filters to process on the nodes list, encoded as JSON (a `map[string][]string`).

	Available filters:
	- `id=<node id>`
	- `label=<engine label>`
	- `membership=`(`accepted`|`pending`)`
	- `name=<node name>`
	- `role=`(`manager`|`worker`)`


	*/
	Filters *string

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

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

func NewNodeListParams

func NewNodeListParams() *NodeListParams

NewNodeListParams creates a new NodeListParams object with the default values initialized.

func NewNodeListParamsWithContext

func NewNodeListParamsWithContext(ctx context.Context) *NodeListParams

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

func NewNodeListParamsWithHTTPClient

func NewNodeListParamsWithHTTPClient(client *http.Client) *NodeListParams

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

func NewNodeListParamsWithTimeout

func NewNodeListParamsWithTimeout(timeout time.Duration) *NodeListParams

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

func (*NodeListParams) SetContext

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

SetContext adds the context to the node list params

func (*NodeListParams) SetFilters

func (o *NodeListParams) SetFilters(filters *string)

SetFilters adds the filters to the node list params

func (*NodeListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the node list params

func (*NodeListParams) SetTimeout

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

SetTimeout adds the timeout to the node list params

func (*NodeListParams) WithContext

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

WithContext adds the context to the node list params

func (*NodeListParams) WithFilters

func (o *NodeListParams) WithFilters(filters *string) *NodeListParams

WithFilters adds the filters to the node list params

func (*NodeListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the node list params

func (*NodeListParams) WithTimeout

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

WithTimeout adds the timeout to the node list params

func (*NodeListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NodeListReader

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

NodeListReader is a Reader for the NodeList structure.

func (*NodeListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NodeListServiceUnavailable

type NodeListServiceUnavailable struct {
	Payload *models.ErrorResponse
}

NodeListServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewNodeListServiceUnavailable

func NewNodeListServiceUnavailable() *NodeListServiceUnavailable

NewNodeListServiceUnavailable creates a NodeListServiceUnavailable with default headers values

func (*NodeListServiceUnavailable) Error

type NodeUpdateBadRequest

type NodeUpdateBadRequest struct {
	Payload *models.ErrorResponse
}

NodeUpdateBadRequest handles this case with default header values.

bad parameter

func NewNodeUpdateBadRequest

func NewNodeUpdateBadRequest() *NodeUpdateBadRequest

NewNodeUpdateBadRequest creates a NodeUpdateBadRequest with default headers values

func (*NodeUpdateBadRequest) Error

func (o *NodeUpdateBadRequest) Error() string

type NodeUpdateInternalServerError

type NodeUpdateInternalServerError struct {
	Payload *models.ErrorResponse
}

NodeUpdateInternalServerError handles this case with default header values.

server error

func NewNodeUpdateInternalServerError

func NewNodeUpdateInternalServerError() *NodeUpdateInternalServerError

NewNodeUpdateInternalServerError creates a NodeUpdateInternalServerError with default headers values

func (*NodeUpdateInternalServerError) Error

type NodeUpdateNotFound

type NodeUpdateNotFound struct {
	Payload *models.ErrorResponse
}

NodeUpdateNotFound handles this case with default header values.

no such node

func NewNodeUpdateNotFound

func NewNodeUpdateNotFound() *NodeUpdateNotFound

NewNodeUpdateNotFound creates a NodeUpdateNotFound with default headers values

func (*NodeUpdateNotFound) Error

func (o *NodeUpdateNotFound) Error() string

type NodeUpdateOK

type NodeUpdateOK struct {
}

NodeUpdateOK handles this case with default header values.

no error

func NewNodeUpdateOK

func NewNodeUpdateOK() *NodeUpdateOK

NewNodeUpdateOK creates a NodeUpdateOK with default headers values

func (*NodeUpdateOK) Error

func (o *NodeUpdateOK) Error() string

type NodeUpdateParams

type NodeUpdateParams struct {

	/*Body*/
	Body *models.NodeSpec
	/*ID
	  The ID of the node

	*/
	ID string
	/*Version
	  The version number of the node object being updated. This is required to avoid conflicting writes.

	*/
	Version int64

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

NodeUpdateParams contains all the parameters to send to the API endpoint for the node update operation typically these are written to a http.Request

func NewNodeUpdateParams

func NewNodeUpdateParams() *NodeUpdateParams

NewNodeUpdateParams creates a new NodeUpdateParams object with the default values initialized.

func NewNodeUpdateParamsWithContext

func NewNodeUpdateParamsWithContext(ctx context.Context) *NodeUpdateParams

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

func NewNodeUpdateParamsWithHTTPClient

func NewNodeUpdateParamsWithHTTPClient(client *http.Client) *NodeUpdateParams

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

func NewNodeUpdateParamsWithTimeout

func NewNodeUpdateParamsWithTimeout(timeout time.Duration) *NodeUpdateParams

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

func (*NodeUpdateParams) SetBody

func (o *NodeUpdateParams) SetBody(body *models.NodeSpec)

SetBody adds the body to the node update params

func (*NodeUpdateParams) SetContext

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

SetContext adds the context to the node update params

func (*NodeUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the node update params

func (*NodeUpdateParams) SetID

func (o *NodeUpdateParams) SetID(id string)

SetID adds the id to the node update params

func (*NodeUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the node update params

func (*NodeUpdateParams) SetVersion

func (o *NodeUpdateParams) SetVersion(version int64)

SetVersion adds the version to the node update params

func (*NodeUpdateParams) WithBody

func (o *NodeUpdateParams) WithBody(body *models.NodeSpec) *NodeUpdateParams

WithBody adds the body to the node update params

func (*NodeUpdateParams) WithContext

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

WithContext adds the context to the node update params

func (*NodeUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the node update params

func (*NodeUpdateParams) WithID

func (o *NodeUpdateParams) WithID(id string) *NodeUpdateParams

WithID adds the id to the node update params

func (*NodeUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the node update params

func (*NodeUpdateParams) WithVersion

func (o *NodeUpdateParams) WithVersion(version int64) *NodeUpdateParams

WithVersion adds the version to the node update params

func (*NodeUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NodeUpdateReader

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

NodeUpdateReader is a Reader for the NodeUpdate structure.

func (*NodeUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NodeUpdateServiceUnavailable

type NodeUpdateServiceUnavailable struct {
	Payload *models.ErrorResponse
}

NodeUpdateServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewNodeUpdateServiceUnavailable

func NewNodeUpdateServiceUnavailable() *NodeUpdateServiceUnavailable

NewNodeUpdateServiceUnavailable creates a NodeUpdateServiceUnavailable with default headers values

func (*NodeUpdateServiceUnavailable) Error

Jump to

Keyboard shortcuts

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