swarm

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: 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 swarm API

func New

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

New creates a new swarm API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SwarmInit

func (a *Client) SwarmInit(params *SwarmInitParams) (*SwarmInitOK, error)

SwarmInit initializes a new swarm

func (*Client) SwarmInspect

func (a *Client) SwarmInspect(params *SwarmInspectParams) (*SwarmInspectOK, error)

SwarmInspect inspects swarm

func (*Client) SwarmJoin

func (a *Client) SwarmJoin(params *SwarmJoinParams) (*SwarmJoinOK, error)

SwarmJoin joins an existing swarm

func (*Client) SwarmLeave

func (a *Client) SwarmLeave(params *SwarmLeaveParams) (*SwarmLeaveOK, error)

SwarmLeave leaves a swarm

func (*Client) SwarmUnlock

func (a *Client) SwarmUnlock(params *SwarmUnlockParams) (*SwarmUnlockOK, error)

SwarmUnlock unlocks a locked manager

func (*Client) SwarmUnlockkey

func (a *Client) SwarmUnlockkey(params *SwarmUnlockkeyParams) (*SwarmUnlockkeyOK, error)

SwarmUnlockkey gets the unlock key

func (*Client) SwarmUpdate

func (a *Client) SwarmUpdate(params *SwarmUpdateParams) (*SwarmUpdateOK, error)

SwarmUpdate updates a swarm

type SwarmInitBadRequest

type SwarmInitBadRequest struct {
	Payload *models.ErrorResponse
}

SwarmInitBadRequest handles this case with default header values.

bad parameter

func NewSwarmInitBadRequest

func NewSwarmInitBadRequest() *SwarmInitBadRequest

NewSwarmInitBadRequest creates a SwarmInitBadRequest with default headers values

func (*SwarmInitBadRequest) Error

func (o *SwarmInitBadRequest) Error() string

type SwarmInitInternalServerError

type SwarmInitInternalServerError struct {
	Payload *models.ErrorResponse
}

SwarmInitInternalServerError handles this case with default header values.

server error

func NewSwarmInitInternalServerError

func NewSwarmInitInternalServerError() *SwarmInitInternalServerError

NewSwarmInitInternalServerError creates a SwarmInitInternalServerError with default headers values

func (*SwarmInitInternalServerError) Error

type SwarmInitOK

type SwarmInitOK struct {
	Payload string
}

SwarmInitOK handles this case with default header values.

no error

func NewSwarmInitOK

func NewSwarmInitOK() *SwarmInitOK

NewSwarmInitOK creates a SwarmInitOK with default headers values

func (*SwarmInitOK) Error

func (o *SwarmInitOK) Error() string

type SwarmInitParams

type SwarmInitParams struct {

	/*Body*/
	Body *models.SwarmInitParamsBody

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

SwarmInitParams contains all the parameters to send to the API endpoint for the swarm init operation typically these are written to a http.Request

func NewSwarmInitParams

func NewSwarmInitParams() *SwarmInitParams

NewSwarmInitParams creates a new SwarmInitParams object with the default values initialized.

func NewSwarmInitParamsWithContext

func NewSwarmInitParamsWithContext(ctx context.Context) *SwarmInitParams

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

func NewSwarmInitParamsWithHTTPClient

func NewSwarmInitParamsWithHTTPClient(client *http.Client) *SwarmInitParams

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

func NewSwarmInitParamsWithTimeout

func NewSwarmInitParamsWithTimeout(timeout time.Duration) *SwarmInitParams

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

func (*SwarmInitParams) SetBody

func (o *SwarmInitParams) SetBody(body *models.SwarmInitParamsBody)

SetBody adds the body to the swarm init params

func (*SwarmInitParams) SetContext

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

SetContext adds the context to the swarm init params

func (*SwarmInitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the swarm init params

func (*SwarmInitParams) SetTimeout

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

SetTimeout adds the timeout to the swarm init params

func (*SwarmInitParams) WithBody

WithBody adds the body to the swarm init params

func (*SwarmInitParams) WithContext

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

WithContext adds the context to the swarm init params

func (*SwarmInitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the swarm init params

func (*SwarmInitParams) WithTimeout

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

WithTimeout adds the timeout to the swarm init params

func (*SwarmInitParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SwarmInitReader

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

SwarmInitReader is a Reader for the SwarmInit structure.

func (*SwarmInitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwarmInitServiceUnavailable

type SwarmInitServiceUnavailable struct {
	Payload *models.ErrorResponse
}

SwarmInitServiceUnavailable handles this case with default header values.

node is already part of a swarm

func NewSwarmInitServiceUnavailable

func NewSwarmInitServiceUnavailable() *SwarmInitServiceUnavailable

NewSwarmInitServiceUnavailable creates a SwarmInitServiceUnavailable with default headers values

func (*SwarmInitServiceUnavailable) Error

type SwarmInspectInternalServerError

type SwarmInspectInternalServerError struct {
	Payload *models.ErrorResponse
}

SwarmInspectInternalServerError handles this case with default header values.

server error

func NewSwarmInspectInternalServerError

func NewSwarmInspectInternalServerError() *SwarmInspectInternalServerError

NewSwarmInspectInternalServerError creates a SwarmInspectInternalServerError with default headers values

func (*SwarmInspectInternalServerError) Error

type SwarmInspectNotFound

type SwarmInspectNotFound struct {
	Payload *models.ErrorResponse
}

SwarmInspectNotFound handles this case with default header values.

no such swarm

func NewSwarmInspectNotFound

func NewSwarmInspectNotFound() *SwarmInspectNotFound

NewSwarmInspectNotFound creates a SwarmInspectNotFound with default headers values

func (*SwarmInspectNotFound) Error

func (o *SwarmInspectNotFound) Error() string

type SwarmInspectOK

type SwarmInspectOK struct {
	Payload *models.Swarm
}

SwarmInspectOK handles this case with default header values.

no error

func NewSwarmInspectOK

func NewSwarmInspectOK() *SwarmInspectOK

NewSwarmInspectOK creates a SwarmInspectOK with default headers values

func (*SwarmInspectOK) Error

func (o *SwarmInspectOK) Error() string

type SwarmInspectParams

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

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

func NewSwarmInspectParams

func NewSwarmInspectParams() *SwarmInspectParams

NewSwarmInspectParams creates a new SwarmInspectParams object with the default values initialized.

func NewSwarmInspectParamsWithContext

func NewSwarmInspectParamsWithContext(ctx context.Context) *SwarmInspectParams

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

func NewSwarmInspectParamsWithHTTPClient

func NewSwarmInspectParamsWithHTTPClient(client *http.Client) *SwarmInspectParams

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

func NewSwarmInspectParamsWithTimeout

func NewSwarmInspectParamsWithTimeout(timeout time.Duration) *SwarmInspectParams

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

func (*SwarmInspectParams) SetContext

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

SetContext adds the context to the swarm inspect params

func (*SwarmInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the swarm inspect params

func (*SwarmInspectParams) SetTimeout

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

SetTimeout adds the timeout to the swarm inspect params

func (*SwarmInspectParams) WithContext

WithContext adds the context to the swarm inspect params

func (*SwarmInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the swarm inspect params

func (*SwarmInspectParams) WithTimeout

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

WithTimeout adds the timeout to the swarm inspect params

func (*SwarmInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SwarmInspectReader

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

SwarmInspectReader is a Reader for the SwarmInspect structure.

func (*SwarmInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwarmInspectServiceUnavailable

type SwarmInspectServiceUnavailable struct {
	Payload *models.ErrorResponse
}

SwarmInspectServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewSwarmInspectServiceUnavailable

func NewSwarmInspectServiceUnavailable() *SwarmInspectServiceUnavailable

NewSwarmInspectServiceUnavailable creates a SwarmInspectServiceUnavailable with default headers values

func (*SwarmInspectServiceUnavailable) Error

type SwarmJoinBadRequest

type SwarmJoinBadRequest struct {
	Payload *models.ErrorResponse
}

SwarmJoinBadRequest handles this case with default header values.

bad parameter

func NewSwarmJoinBadRequest

func NewSwarmJoinBadRequest() *SwarmJoinBadRequest

NewSwarmJoinBadRequest creates a SwarmJoinBadRequest with default headers values

func (*SwarmJoinBadRequest) Error

func (o *SwarmJoinBadRequest) Error() string

type SwarmJoinInternalServerError

type SwarmJoinInternalServerError struct {
	Payload *models.ErrorResponse
}

SwarmJoinInternalServerError handles this case with default header values.

server error

func NewSwarmJoinInternalServerError

func NewSwarmJoinInternalServerError() *SwarmJoinInternalServerError

NewSwarmJoinInternalServerError creates a SwarmJoinInternalServerError with default headers values

func (*SwarmJoinInternalServerError) Error

type SwarmJoinOK

type SwarmJoinOK struct {
}

SwarmJoinOK handles this case with default header values.

no error

func NewSwarmJoinOK

func NewSwarmJoinOK() *SwarmJoinOK

NewSwarmJoinOK creates a SwarmJoinOK with default headers values

func (*SwarmJoinOK) Error

func (o *SwarmJoinOK) Error() string

type SwarmJoinParams

type SwarmJoinParams struct {

	/*Body*/
	Body *models.SwarmJoinParamsBody

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

SwarmJoinParams contains all the parameters to send to the API endpoint for the swarm join operation typically these are written to a http.Request

func NewSwarmJoinParams

func NewSwarmJoinParams() *SwarmJoinParams

NewSwarmJoinParams creates a new SwarmJoinParams object with the default values initialized.

func NewSwarmJoinParamsWithContext

func NewSwarmJoinParamsWithContext(ctx context.Context) *SwarmJoinParams

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

func NewSwarmJoinParamsWithHTTPClient

func NewSwarmJoinParamsWithHTTPClient(client *http.Client) *SwarmJoinParams

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

func NewSwarmJoinParamsWithTimeout

func NewSwarmJoinParamsWithTimeout(timeout time.Duration) *SwarmJoinParams

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

func (*SwarmJoinParams) SetBody

func (o *SwarmJoinParams) SetBody(body *models.SwarmJoinParamsBody)

SetBody adds the body to the swarm join params

func (*SwarmJoinParams) SetContext

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

SetContext adds the context to the swarm join params

func (*SwarmJoinParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the swarm join params

func (*SwarmJoinParams) SetTimeout

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

SetTimeout adds the timeout to the swarm join params

func (*SwarmJoinParams) WithBody

WithBody adds the body to the swarm join params

func (*SwarmJoinParams) WithContext

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

WithContext adds the context to the swarm join params

func (*SwarmJoinParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the swarm join params

func (*SwarmJoinParams) WithTimeout

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

WithTimeout adds the timeout to the swarm join params

func (*SwarmJoinParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SwarmJoinReader

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

SwarmJoinReader is a Reader for the SwarmJoin structure.

func (*SwarmJoinReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwarmJoinServiceUnavailable

type SwarmJoinServiceUnavailable struct {
	Payload *models.ErrorResponse
}

SwarmJoinServiceUnavailable handles this case with default header values.

node is already part of a swarm

func NewSwarmJoinServiceUnavailable

func NewSwarmJoinServiceUnavailable() *SwarmJoinServiceUnavailable

NewSwarmJoinServiceUnavailable creates a SwarmJoinServiceUnavailable with default headers values

func (*SwarmJoinServiceUnavailable) Error

type SwarmLeaveInternalServerError

type SwarmLeaveInternalServerError struct {
	Payload *models.ErrorResponse
}

SwarmLeaveInternalServerError handles this case with default header values.

server error

func NewSwarmLeaveInternalServerError

func NewSwarmLeaveInternalServerError() *SwarmLeaveInternalServerError

NewSwarmLeaveInternalServerError creates a SwarmLeaveInternalServerError with default headers values

func (*SwarmLeaveInternalServerError) Error

type SwarmLeaveOK

type SwarmLeaveOK struct {
}

SwarmLeaveOK handles this case with default header values.

no error

func NewSwarmLeaveOK

func NewSwarmLeaveOK() *SwarmLeaveOK

NewSwarmLeaveOK creates a SwarmLeaveOK with default headers values

func (*SwarmLeaveOK) Error

func (o *SwarmLeaveOK) Error() string

type SwarmLeaveParams

type SwarmLeaveParams struct {

	/*Force
	  Force leave swarm, even if this is the last manager or that it will break the cluster.

	*/
	Force *bool

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

SwarmLeaveParams contains all the parameters to send to the API endpoint for the swarm leave operation typically these are written to a http.Request

func NewSwarmLeaveParams

func NewSwarmLeaveParams() *SwarmLeaveParams

NewSwarmLeaveParams creates a new SwarmLeaveParams object with the default values initialized.

func NewSwarmLeaveParamsWithContext

func NewSwarmLeaveParamsWithContext(ctx context.Context) *SwarmLeaveParams

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

func NewSwarmLeaveParamsWithHTTPClient

func NewSwarmLeaveParamsWithHTTPClient(client *http.Client) *SwarmLeaveParams

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

func NewSwarmLeaveParamsWithTimeout

func NewSwarmLeaveParamsWithTimeout(timeout time.Duration) *SwarmLeaveParams

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

func (*SwarmLeaveParams) SetContext

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

SetContext adds the context to the swarm leave params

func (*SwarmLeaveParams) SetForce

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

SetForce adds the force to the swarm leave params

func (*SwarmLeaveParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the swarm leave params

func (*SwarmLeaveParams) SetTimeout

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

SetTimeout adds the timeout to the swarm leave params

func (*SwarmLeaveParams) WithContext

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

WithContext adds the context to the swarm leave params

func (*SwarmLeaveParams) WithForce

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

WithForce adds the force to the swarm leave params

func (*SwarmLeaveParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the swarm leave params

func (*SwarmLeaveParams) WithTimeout

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

WithTimeout adds the timeout to the swarm leave params

func (*SwarmLeaveParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SwarmLeaveReader

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

SwarmLeaveReader is a Reader for the SwarmLeave structure.

func (*SwarmLeaveReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwarmLeaveServiceUnavailable

type SwarmLeaveServiceUnavailable struct {
	Payload *models.ErrorResponse
}

SwarmLeaveServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewSwarmLeaveServiceUnavailable

func NewSwarmLeaveServiceUnavailable() *SwarmLeaveServiceUnavailable

NewSwarmLeaveServiceUnavailable creates a SwarmLeaveServiceUnavailable with default headers values

func (*SwarmLeaveServiceUnavailable) Error

type SwarmUnlockInternalServerError

type SwarmUnlockInternalServerError struct {
	Payload *models.ErrorResponse
}

SwarmUnlockInternalServerError handles this case with default header values.

server error

func NewSwarmUnlockInternalServerError

func NewSwarmUnlockInternalServerError() *SwarmUnlockInternalServerError

NewSwarmUnlockInternalServerError creates a SwarmUnlockInternalServerError with default headers values

func (*SwarmUnlockInternalServerError) Error

type SwarmUnlockOK

type SwarmUnlockOK struct {
}

SwarmUnlockOK handles this case with default header values.

no error

func NewSwarmUnlockOK

func NewSwarmUnlockOK() *SwarmUnlockOK

NewSwarmUnlockOK creates a SwarmUnlockOK with default headers values

func (*SwarmUnlockOK) Error

func (o *SwarmUnlockOK) Error() string

type SwarmUnlockParams

type SwarmUnlockParams struct {

	/*Body*/
	Body *models.SwarmUnlockParamsBody

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

SwarmUnlockParams contains all the parameters to send to the API endpoint for the swarm unlock operation typically these are written to a http.Request

func NewSwarmUnlockParams

func NewSwarmUnlockParams() *SwarmUnlockParams

NewSwarmUnlockParams creates a new SwarmUnlockParams object with the default values initialized.

func NewSwarmUnlockParamsWithContext

func NewSwarmUnlockParamsWithContext(ctx context.Context) *SwarmUnlockParams

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

func NewSwarmUnlockParamsWithHTTPClient

func NewSwarmUnlockParamsWithHTTPClient(client *http.Client) *SwarmUnlockParams

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

func NewSwarmUnlockParamsWithTimeout

func NewSwarmUnlockParamsWithTimeout(timeout time.Duration) *SwarmUnlockParams

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

func (*SwarmUnlockParams) SetBody

SetBody adds the body to the swarm unlock params

func (*SwarmUnlockParams) SetContext

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

SetContext adds the context to the swarm unlock params

func (*SwarmUnlockParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the swarm unlock params

func (*SwarmUnlockParams) SetTimeout

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

SetTimeout adds the timeout to the swarm unlock params

func (*SwarmUnlockParams) WithBody

WithBody adds the body to the swarm unlock params

func (*SwarmUnlockParams) WithContext

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

WithContext adds the context to the swarm unlock params

func (*SwarmUnlockParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the swarm unlock params

func (*SwarmUnlockParams) WithTimeout

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

WithTimeout adds the timeout to the swarm unlock params

func (*SwarmUnlockParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SwarmUnlockReader

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

SwarmUnlockReader is a Reader for the SwarmUnlock structure.

func (*SwarmUnlockReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwarmUnlockServiceUnavailable

type SwarmUnlockServiceUnavailable struct {
	Payload *models.ErrorResponse
}

SwarmUnlockServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewSwarmUnlockServiceUnavailable

func NewSwarmUnlockServiceUnavailable() *SwarmUnlockServiceUnavailable

NewSwarmUnlockServiceUnavailable creates a SwarmUnlockServiceUnavailable with default headers values

func (*SwarmUnlockServiceUnavailable) Error

type SwarmUnlockkeyInternalServerError

type SwarmUnlockkeyInternalServerError struct {
	Payload *models.ErrorResponse
}

SwarmUnlockkeyInternalServerError handles this case with default header values.

server error

func NewSwarmUnlockkeyInternalServerError

func NewSwarmUnlockkeyInternalServerError() *SwarmUnlockkeyInternalServerError

NewSwarmUnlockkeyInternalServerError creates a SwarmUnlockkeyInternalServerError with default headers values

func (*SwarmUnlockkeyInternalServerError) Error

type SwarmUnlockkeyOK

type SwarmUnlockkeyOK struct {
	Payload *models.SwarmUnlockkeyOKBody
}

SwarmUnlockkeyOK handles this case with default header values.

no error

func NewSwarmUnlockkeyOK

func NewSwarmUnlockkeyOK() *SwarmUnlockkeyOK

NewSwarmUnlockkeyOK creates a SwarmUnlockkeyOK with default headers values

func (*SwarmUnlockkeyOK) Error

func (o *SwarmUnlockkeyOK) Error() string

type SwarmUnlockkeyParams

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

SwarmUnlockkeyParams contains all the parameters to send to the API endpoint for the swarm unlockkey operation typically these are written to a http.Request

func NewSwarmUnlockkeyParams

func NewSwarmUnlockkeyParams() *SwarmUnlockkeyParams

NewSwarmUnlockkeyParams creates a new SwarmUnlockkeyParams object with the default values initialized.

func NewSwarmUnlockkeyParamsWithContext

func NewSwarmUnlockkeyParamsWithContext(ctx context.Context) *SwarmUnlockkeyParams

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

func NewSwarmUnlockkeyParamsWithHTTPClient

func NewSwarmUnlockkeyParamsWithHTTPClient(client *http.Client) *SwarmUnlockkeyParams

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

func NewSwarmUnlockkeyParamsWithTimeout

func NewSwarmUnlockkeyParamsWithTimeout(timeout time.Duration) *SwarmUnlockkeyParams

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

func (*SwarmUnlockkeyParams) SetContext

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

SetContext adds the context to the swarm unlockkey params

func (*SwarmUnlockkeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the swarm unlockkey params

func (*SwarmUnlockkeyParams) SetTimeout

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

SetTimeout adds the timeout to the swarm unlockkey params

func (*SwarmUnlockkeyParams) WithContext

WithContext adds the context to the swarm unlockkey params

func (*SwarmUnlockkeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the swarm unlockkey params

func (*SwarmUnlockkeyParams) WithTimeout

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

WithTimeout adds the timeout to the swarm unlockkey params

func (*SwarmUnlockkeyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SwarmUnlockkeyReader

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

SwarmUnlockkeyReader is a Reader for the SwarmUnlockkey structure.

func (*SwarmUnlockkeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwarmUnlockkeyServiceUnavailable

type SwarmUnlockkeyServiceUnavailable struct {
	Payload *models.ErrorResponse
}

SwarmUnlockkeyServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewSwarmUnlockkeyServiceUnavailable

func NewSwarmUnlockkeyServiceUnavailable() *SwarmUnlockkeyServiceUnavailable

NewSwarmUnlockkeyServiceUnavailable creates a SwarmUnlockkeyServiceUnavailable with default headers values

func (*SwarmUnlockkeyServiceUnavailable) Error

type SwarmUpdateBadRequest

type SwarmUpdateBadRequest struct {
	Payload *models.ErrorResponse
}

SwarmUpdateBadRequest handles this case with default header values.

bad parameter

func NewSwarmUpdateBadRequest

func NewSwarmUpdateBadRequest() *SwarmUpdateBadRequest

NewSwarmUpdateBadRequest creates a SwarmUpdateBadRequest with default headers values

func (*SwarmUpdateBadRequest) Error

func (o *SwarmUpdateBadRequest) Error() string

type SwarmUpdateInternalServerError

type SwarmUpdateInternalServerError struct {
	Payload *models.ErrorResponse
}

SwarmUpdateInternalServerError handles this case with default header values.

server error

func NewSwarmUpdateInternalServerError

func NewSwarmUpdateInternalServerError() *SwarmUpdateInternalServerError

NewSwarmUpdateInternalServerError creates a SwarmUpdateInternalServerError with default headers values

func (*SwarmUpdateInternalServerError) Error

type SwarmUpdateOK

type SwarmUpdateOK struct {
}

SwarmUpdateOK handles this case with default header values.

no error

func NewSwarmUpdateOK

func NewSwarmUpdateOK() *SwarmUpdateOK

NewSwarmUpdateOK creates a SwarmUpdateOK with default headers values

func (*SwarmUpdateOK) Error

func (o *SwarmUpdateOK) Error() string

type SwarmUpdateParams

type SwarmUpdateParams struct {

	/*Body*/
	Body *models.SwarmSpec
	/*RotateManagerToken
	  Rotate the manager join token.

	*/
	RotateManagerToken *bool
	/*RotateManagerUnlockKey
	  Rotate the manager unlock key.

	*/
	RotateManagerUnlockKey *bool
	/*RotateWorkerToken
	  Rotate the worker join token.

	*/
	RotateWorkerToken *bool
	/*Version
	  The version number of the swarm object being updated. This is required to avoid conflicting writes.

	*/
	Version int64

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

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

func NewSwarmUpdateParams

func NewSwarmUpdateParams() *SwarmUpdateParams

NewSwarmUpdateParams creates a new SwarmUpdateParams object with the default values initialized.

func NewSwarmUpdateParamsWithContext

func NewSwarmUpdateParamsWithContext(ctx context.Context) *SwarmUpdateParams

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

func NewSwarmUpdateParamsWithHTTPClient

func NewSwarmUpdateParamsWithHTTPClient(client *http.Client) *SwarmUpdateParams

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

func NewSwarmUpdateParamsWithTimeout

func NewSwarmUpdateParamsWithTimeout(timeout time.Duration) *SwarmUpdateParams

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

func (*SwarmUpdateParams) SetBody

func (o *SwarmUpdateParams) SetBody(body *models.SwarmSpec)

SetBody adds the body to the swarm update params

func (*SwarmUpdateParams) SetContext

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

SetContext adds the context to the swarm update params

func (*SwarmUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the swarm update params

func (*SwarmUpdateParams) SetRotateManagerToken

func (o *SwarmUpdateParams) SetRotateManagerToken(rotateManagerToken *bool)

SetRotateManagerToken adds the rotateManagerToken to the swarm update params

func (*SwarmUpdateParams) SetRotateManagerUnlockKey

func (o *SwarmUpdateParams) SetRotateManagerUnlockKey(rotateManagerUnlockKey *bool)

SetRotateManagerUnlockKey adds the rotateManagerUnlockKey to the swarm update params

func (*SwarmUpdateParams) SetRotateWorkerToken

func (o *SwarmUpdateParams) SetRotateWorkerToken(rotateWorkerToken *bool)

SetRotateWorkerToken adds the rotateWorkerToken to the swarm update params

func (*SwarmUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the swarm update params

func (*SwarmUpdateParams) SetVersion

func (o *SwarmUpdateParams) SetVersion(version int64)

SetVersion adds the version to the swarm update params

func (*SwarmUpdateParams) WithBody

WithBody adds the body to the swarm update params

func (*SwarmUpdateParams) WithContext

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

WithContext adds the context to the swarm update params

func (*SwarmUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the swarm update params

func (*SwarmUpdateParams) WithRotateManagerToken

func (o *SwarmUpdateParams) WithRotateManagerToken(rotateManagerToken *bool) *SwarmUpdateParams

WithRotateManagerToken adds the rotateManagerToken to the swarm update params

func (*SwarmUpdateParams) WithRotateManagerUnlockKey

func (o *SwarmUpdateParams) WithRotateManagerUnlockKey(rotateManagerUnlockKey *bool) *SwarmUpdateParams

WithRotateManagerUnlockKey adds the rotateManagerUnlockKey to the swarm update params

func (*SwarmUpdateParams) WithRotateWorkerToken

func (o *SwarmUpdateParams) WithRotateWorkerToken(rotateWorkerToken *bool) *SwarmUpdateParams

WithRotateWorkerToken adds the rotateWorkerToken to the swarm update params

func (*SwarmUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the swarm update params

func (*SwarmUpdateParams) WithVersion

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

WithVersion adds the version to the swarm update params

func (*SwarmUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SwarmUpdateReader

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

SwarmUpdateReader is a Reader for the SwarmUpdate structure.

func (*SwarmUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SwarmUpdateServiceUnavailable

type SwarmUpdateServiceUnavailable struct {
	Payload *models.ErrorResponse
}

SwarmUpdateServiceUnavailable handles this case with default header values.

node is not part of a swarm

func NewSwarmUpdateServiceUnavailable

func NewSwarmUpdateServiceUnavailable() *SwarmUpdateServiceUnavailable

NewSwarmUpdateServiceUnavailable creates a SwarmUpdateServiceUnavailable with default headers values

func (*SwarmUpdateServiceUnavailable) Error

Jump to

Keyboard shortcuts

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