config

package
v0.0.0-...-8251c7d Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 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 Client

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

Client for config API

func (*Client) ConfigCreate

func (a *Client) ConfigCreate(params *ConfigCreateParams, opts ...ClientOption) (*ConfigCreateCreated, error)

ConfigCreate creates a config

func (*Client) ConfigDelete

func (a *Client) ConfigDelete(params *ConfigDeleteParams, opts ...ClientOption) (*ConfigDeleteNoContent, error)

ConfigDelete deletes a config

func (*Client) ConfigInspect

func (a *Client) ConfigInspect(params *ConfigInspectParams, opts ...ClientOption) (*ConfigInspectOK, error)

ConfigInspect inspects a config

func (*Client) ConfigList

func (a *Client) ConfigList(params *ConfigListParams, opts ...ClientOption) (*ConfigListOK, error)

ConfigList lists configs

func (*Client) ConfigUpdate

func (a *Client) ConfigUpdate(params *ConfigUpdateParams, opts ...ClientOption) (*ConfigUpdateOK, error)

ConfigUpdate updates a config

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ConfigCreate(params *ConfigCreateParams, opts ...ClientOption) (*ConfigCreateCreated, error)

	ConfigDelete(params *ConfigDeleteParams, opts ...ClientOption) (*ConfigDeleteNoContent, error)

	ConfigInspect(params *ConfigInspectParams, opts ...ClientOption) (*ConfigInspectOK, error)

	ConfigList(params *ConfigListParams, opts ...ClientOption) (*ConfigListOK, error)

	ConfigUpdate(params *ConfigUpdateParams, opts ...ClientOption) (*ConfigUpdateOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new config API client.

type ConfigCreateBody

type ConfigCreateBody struct {
	models.ConfigSpec

	ConfigCreateParamsBodyAllOf1
}

ConfigCreateBody config create body swagger:model ConfigCreateBody

func (*ConfigCreateBody) ContextValidate

func (o *ConfigCreateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this config create body based on the context it is used

func (*ConfigCreateBody) MarshalBinary

func (o *ConfigCreateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ConfigCreateBody) MarshalJSON

func (o ConfigCreateBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ConfigCreateBody) UnmarshalBinary

func (o *ConfigCreateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigCreateBody) UnmarshalJSON

func (o *ConfigCreateBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ConfigCreateBody) Validate

func (o *ConfigCreateBody) Validate(formats strfmt.Registry) error

Validate validates this config create body

type ConfigCreateConflict

type ConfigCreateConflict struct {
	Payload *models.ErrorResponse
}
ConfigCreateConflict describes a response with status code 409, with default header values.

name conflicts with an existing object

func NewConfigCreateConflict

func NewConfigCreateConflict() *ConfigCreateConflict

NewConfigCreateConflict creates a ConfigCreateConflict with default headers values

func (*ConfigCreateConflict) Error

func (o *ConfigCreateConflict) Error() string

func (*ConfigCreateConflict) GetPayload

func (o *ConfigCreateConflict) GetPayload() *models.ErrorResponse

func (*ConfigCreateConflict) IsClientError

func (o *ConfigCreateConflict) IsClientError() bool

IsClientError returns true when this config create conflict response has a 4xx status code

func (*ConfigCreateConflict) IsCode

func (o *ConfigCreateConflict) IsCode(code int) bool

IsCode returns true when this config create conflict response a status code equal to that given

func (*ConfigCreateConflict) IsRedirect

func (o *ConfigCreateConflict) IsRedirect() bool

IsRedirect returns true when this config create conflict response has a 3xx status code

func (*ConfigCreateConflict) IsServerError

func (o *ConfigCreateConflict) IsServerError() bool

IsServerError returns true when this config create conflict response has a 5xx status code

func (*ConfigCreateConflict) IsSuccess

func (o *ConfigCreateConflict) IsSuccess() bool

IsSuccess returns true when this config create conflict response has a 2xx status code

func (*ConfigCreateConflict) String

func (o *ConfigCreateConflict) String() string

type ConfigCreateCreated

type ConfigCreateCreated struct {
	Payload *models.IDResponse
}
ConfigCreateCreated describes a response with status code 201, with default header values.

no error

func NewConfigCreateCreated

func NewConfigCreateCreated() *ConfigCreateCreated

NewConfigCreateCreated creates a ConfigCreateCreated with default headers values

func (*ConfigCreateCreated) Error

func (o *ConfigCreateCreated) Error() string

func (*ConfigCreateCreated) GetPayload

func (o *ConfigCreateCreated) GetPayload() *models.IDResponse

func (*ConfigCreateCreated) IsClientError

func (o *ConfigCreateCreated) IsClientError() bool

IsClientError returns true when this config create created response has a 4xx status code

func (*ConfigCreateCreated) IsCode

func (o *ConfigCreateCreated) IsCode(code int) bool

IsCode returns true when this config create created response a status code equal to that given

func (*ConfigCreateCreated) IsRedirect

func (o *ConfigCreateCreated) IsRedirect() bool

IsRedirect returns true when this config create created response has a 3xx status code

func (*ConfigCreateCreated) IsServerError

func (o *ConfigCreateCreated) IsServerError() bool

IsServerError returns true when this config create created response has a 5xx status code

func (*ConfigCreateCreated) IsSuccess

func (o *ConfigCreateCreated) IsSuccess() bool

IsSuccess returns true when this config create created response has a 2xx status code

func (*ConfigCreateCreated) String

func (o *ConfigCreateCreated) String() string

type ConfigCreateInternalServerError

type ConfigCreateInternalServerError struct {
	Payload *models.ErrorResponse
}
ConfigCreateInternalServerError describes a response with status code 500, with default header values.

server error

func NewConfigCreateInternalServerError

func NewConfigCreateInternalServerError() *ConfigCreateInternalServerError

NewConfigCreateInternalServerError creates a ConfigCreateInternalServerError with default headers values

func (*ConfigCreateInternalServerError) Error

func (*ConfigCreateInternalServerError) GetPayload

func (*ConfigCreateInternalServerError) IsClientError

func (o *ConfigCreateInternalServerError) IsClientError() bool

IsClientError returns true when this config create internal server error response has a 4xx status code

func (*ConfigCreateInternalServerError) IsCode

func (o *ConfigCreateInternalServerError) IsCode(code int) bool

IsCode returns true when this config create internal server error response a status code equal to that given

func (*ConfigCreateInternalServerError) IsRedirect

func (o *ConfigCreateInternalServerError) IsRedirect() bool

IsRedirect returns true when this config create internal server error response has a 3xx status code

func (*ConfigCreateInternalServerError) IsServerError

func (o *ConfigCreateInternalServerError) IsServerError() bool

IsServerError returns true when this config create internal server error response has a 5xx status code

func (*ConfigCreateInternalServerError) IsSuccess

func (o *ConfigCreateInternalServerError) IsSuccess() bool

IsSuccess returns true when this config create internal server error response has a 2xx status code

func (*ConfigCreateInternalServerError) String

type ConfigCreateParams

type ConfigCreateParams struct {

	// Body.
	Body ConfigCreateBody

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

ConfigCreateParams contains all the parameters to send to the API endpoint

for the config create operation.

Typically these are written to a http.Request.

func NewConfigCreateParams

func NewConfigCreateParams() *ConfigCreateParams

NewConfigCreateParams creates a new ConfigCreateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewConfigCreateParamsWithContext

func NewConfigCreateParamsWithContext(ctx context.Context) *ConfigCreateParams

NewConfigCreateParamsWithContext creates a new ConfigCreateParams object with the ability to set a context for a request.

func NewConfigCreateParamsWithHTTPClient

func NewConfigCreateParamsWithHTTPClient(client *http.Client) *ConfigCreateParams

NewConfigCreateParamsWithHTTPClient creates a new ConfigCreateParams object with the ability to set a custom HTTPClient for a request.

func NewConfigCreateParamsWithTimeout

func NewConfigCreateParamsWithTimeout(timeout time.Duration) *ConfigCreateParams

NewConfigCreateParamsWithTimeout creates a new ConfigCreateParams object with the ability to set a timeout on a request.

func (*ConfigCreateParams) SetBody

func (o *ConfigCreateParams) SetBody(body ConfigCreateBody)

SetBody adds the body to the config create params

func (*ConfigCreateParams) SetContext

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

SetContext adds the context to the config create params

func (*ConfigCreateParams) SetDefaults

func (o *ConfigCreateParams) SetDefaults()

SetDefaults hydrates default values in the config create params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the config create params

func (*ConfigCreateParams) SetTimeout

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

SetTimeout adds the timeout to the config create params

func (*ConfigCreateParams) WithBody

WithBody adds the body to the config create params

func (*ConfigCreateParams) WithContext

WithContext adds the context to the config create params

func (*ConfigCreateParams) WithDefaults

func (o *ConfigCreateParams) WithDefaults() *ConfigCreateParams

WithDefaults hydrates default values in the config create params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the config create params

func (*ConfigCreateParams) WithTimeout

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

WithTimeout adds the timeout to the config create params

func (*ConfigCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ConfigCreateParamsBodyAllOf1

type ConfigCreateParamsBodyAllOf1 interface{}

ConfigCreateParamsBodyAllOf1 config create params body all of1 // Example: {"Data":"VEhJUyBJUyBOT1QgQSBSRUFMIENFUlRJRklDQVRFCg==","Labels":{"foo":"bar"},"Name":"server.conf"} swagger:model ConfigCreateParamsBodyAllOf1

type ConfigCreateReader

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

ConfigCreateReader is a Reader for the ConfigCreate structure.

func (*ConfigCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConfigCreateServiceUnavailable

type ConfigCreateServiceUnavailable struct {
	Payload *models.ErrorResponse
}
ConfigCreateServiceUnavailable describes a response with status code 503, with default header values.

node is not part of a swarm

func NewConfigCreateServiceUnavailable

func NewConfigCreateServiceUnavailable() *ConfigCreateServiceUnavailable

NewConfigCreateServiceUnavailable creates a ConfigCreateServiceUnavailable with default headers values

func (*ConfigCreateServiceUnavailable) Error

func (*ConfigCreateServiceUnavailable) GetPayload

func (*ConfigCreateServiceUnavailable) IsClientError

func (o *ConfigCreateServiceUnavailable) IsClientError() bool

IsClientError returns true when this config create service unavailable response has a 4xx status code

func (*ConfigCreateServiceUnavailable) IsCode

func (o *ConfigCreateServiceUnavailable) IsCode(code int) bool

IsCode returns true when this config create service unavailable response a status code equal to that given

func (*ConfigCreateServiceUnavailable) IsRedirect

func (o *ConfigCreateServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this config create service unavailable response has a 3xx status code

func (*ConfigCreateServiceUnavailable) IsServerError

func (o *ConfigCreateServiceUnavailable) IsServerError() bool

IsServerError returns true when this config create service unavailable response has a 5xx status code

func (*ConfigCreateServiceUnavailable) IsSuccess

func (o *ConfigCreateServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this config create service unavailable response has a 2xx status code

func (*ConfigCreateServiceUnavailable) String

type ConfigDeleteInternalServerError

type ConfigDeleteInternalServerError struct {
	Payload *models.ErrorResponse
}
ConfigDeleteInternalServerError describes a response with status code 500, with default header values.

server error

func NewConfigDeleteInternalServerError

func NewConfigDeleteInternalServerError() *ConfigDeleteInternalServerError

NewConfigDeleteInternalServerError creates a ConfigDeleteInternalServerError with default headers values

func (*ConfigDeleteInternalServerError) Error

func (*ConfigDeleteInternalServerError) GetPayload

func (*ConfigDeleteInternalServerError) IsClientError

func (o *ConfigDeleteInternalServerError) IsClientError() bool

IsClientError returns true when this config delete internal server error response has a 4xx status code

func (*ConfigDeleteInternalServerError) IsCode

func (o *ConfigDeleteInternalServerError) IsCode(code int) bool

IsCode returns true when this config delete internal server error response a status code equal to that given

func (*ConfigDeleteInternalServerError) IsRedirect

func (o *ConfigDeleteInternalServerError) IsRedirect() bool

IsRedirect returns true when this config delete internal server error response has a 3xx status code

func (*ConfigDeleteInternalServerError) IsServerError

func (o *ConfigDeleteInternalServerError) IsServerError() bool

IsServerError returns true when this config delete internal server error response has a 5xx status code

func (*ConfigDeleteInternalServerError) IsSuccess

func (o *ConfigDeleteInternalServerError) IsSuccess() bool

IsSuccess returns true when this config delete internal server error response has a 2xx status code

func (*ConfigDeleteInternalServerError) String

type ConfigDeleteNoContent

type ConfigDeleteNoContent struct {
}
ConfigDeleteNoContent describes a response with status code 204, with default header values.

no error

func NewConfigDeleteNoContent

func NewConfigDeleteNoContent() *ConfigDeleteNoContent

NewConfigDeleteNoContent creates a ConfigDeleteNoContent with default headers values

func (*ConfigDeleteNoContent) Error

func (o *ConfigDeleteNoContent) Error() string

func (*ConfigDeleteNoContent) IsClientError

func (o *ConfigDeleteNoContent) IsClientError() bool

IsClientError returns true when this config delete no content response has a 4xx status code

func (*ConfigDeleteNoContent) IsCode

func (o *ConfigDeleteNoContent) IsCode(code int) bool

IsCode returns true when this config delete no content response a status code equal to that given

func (*ConfigDeleteNoContent) IsRedirect

func (o *ConfigDeleteNoContent) IsRedirect() bool

IsRedirect returns true when this config delete no content response has a 3xx status code

func (*ConfigDeleteNoContent) IsServerError

func (o *ConfigDeleteNoContent) IsServerError() bool

IsServerError returns true when this config delete no content response has a 5xx status code

func (*ConfigDeleteNoContent) IsSuccess

func (o *ConfigDeleteNoContent) IsSuccess() bool

IsSuccess returns true when this config delete no content response has a 2xx status code

func (*ConfigDeleteNoContent) String

func (o *ConfigDeleteNoContent) String() string

type ConfigDeleteNotFound

type ConfigDeleteNotFound struct {
	Payload *models.ErrorResponse
}
ConfigDeleteNotFound describes a response with status code 404, with default header values.

config not found

func NewConfigDeleteNotFound

func NewConfigDeleteNotFound() *ConfigDeleteNotFound

NewConfigDeleteNotFound creates a ConfigDeleteNotFound with default headers values

func (*ConfigDeleteNotFound) Error

func (o *ConfigDeleteNotFound) Error() string

func (*ConfigDeleteNotFound) GetPayload

func (o *ConfigDeleteNotFound) GetPayload() *models.ErrorResponse

func (*ConfigDeleteNotFound) IsClientError

func (o *ConfigDeleteNotFound) IsClientError() bool

IsClientError returns true when this config delete not found response has a 4xx status code

func (*ConfigDeleteNotFound) IsCode

func (o *ConfigDeleteNotFound) IsCode(code int) bool

IsCode returns true when this config delete not found response a status code equal to that given

func (*ConfigDeleteNotFound) IsRedirect

func (o *ConfigDeleteNotFound) IsRedirect() bool

IsRedirect returns true when this config delete not found response has a 3xx status code

func (*ConfigDeleteNotFound) IsServerError

func (o *ConfigDeleteNotFound) IsServerError() bool

IsServerError returns true when this config delete not found response has a 5xx status code

func (*ConfigDeleteNotFound) IsSuccess

func (o *ConfigDeleteNotFound) IsSuccess() bool

IsSuccess returns true when this config delete not found response has a 2xx status code

func (*ConfigDeleteNotFound) String

func (o *ConfigDeleteNotFound) String() string

type ConfigDeleteParams

type ConfigDeleteParams struct {

	/* ID.

	   ID of the config
	*/
	ID string

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

ConfigDeleteParams contains all the parameters to send to the API endpoint

for the config delete operation.

Typically these are written to a http.Request.

func NewConfigDeleteParams

func NewConfigDeleteParams() *ConfigDeleteParams

NewConfigDeleteParams creates a new ConfigDeleteParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewConfigDeleteParamsWithContext

func NewConfigDeleteParamsWithContext(ctx context.Context) *ConfigDeleteParams

NewConfigDeleteParamsWithContext creates a new ConfigDeleteParams object with the ability to set a context for a request.

func NewConfigDeleteParamsWithHTTPClient

func NewConfigDeleteParamsWithHTTPClient(client *http.Client) *ConfigDeleteParams

NewConfigDeleteParamsWithHTTPClient creates a new ConfigDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewConfigDeleteParamsWithTimeout

func NewConfigDeleteParamsWithTimeout(timeout time.Duration) *ConfigDeleteParams

NewConfigDeleteParamsWithTimeout creates a new ConfigDeleteParams object with the ability to set a timeout on a request.

func (*ConfigDeleteParams) SetContext

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

SetContext adds the context to the config delete params

func (*ConfigDeleteParams) SetDefaults

func (o *ConfigDeleteParams) SetDefaults()

SetDefaults hydrates default values in the config delete params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the config delete params

func (*ConfigDeleteParams) SetID

func (o *ConfigDeleteParams) SetID(id string)

SetID adds the id to the config delete params

func (*ConfigDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the config delete params

func (*ConfigDeleteParams) WithContext

WithContext adds the context to the config delete params

func (*ConfigDeleteParams) WithDefaults

func (o *ConfigDeleteParams) WithDefaults() *ConfigDeleteParams

WithDefaults hydrates default values in the config delete params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the config delete params

func (*ConfigDeleteParams) WithID

WithID adds the id to the config delete params

func (*ConfigDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the config delete params

func (*ConfigDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ConfigDeleteReader

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

ConfigDeleteReader is a Reader for the ConfigDelete structure.

func (*ConfigDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConfigDeleteServiceUnavailable

type ConfigDeleteServiceUnavailable struct {
	Payload *models.ErrorResponse
}
ConfigDeleteServiceUnavailable describes a response with status code 503, with default header values.

node is not part of a swarm

func NewConfigDeleteServiceUnavailable

func NewConfigDeleteServiceUnavailable() *ConfigDeleteServiceUnavailable

NewConfigDeleteServiceUnavailable creates a ConfigDeleteServiceUnavailable with default headers values

func (*ConfigDeleteServiceUnavailable) Error

func (*ConfigDeleteServiceUnavailable) GetPayload

func (*ConfigDeleteServiceUnavailable) IsClientError

func (o *ConfigDeleteServiceUnavailable) IsClientError() bool

IsClientError returns true when this config delete service unavailable response has a 4xx status code

func (*ConfigDeleteServiceUnavailable) IsCode

func (o *ConfigDeleteServiceUnavailable) IsCode(code int) bool

IsCode returns true when this config delete service unavailable response a status code equal to that given

func (*ConfigDeleteServiceUnavailable) IsRedirect

func (o *ConfigDeleteServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this config delete service unavailable response has a 3xx status code

func (*ConfigDeleteServiceUnavailable) IsServerError

func (o *ConfigDeleteServiceUnavailable) IsServerError() bool

IsServerError returns true when this config delete service unavailable response has a 5xx status code

func (*ConfigDeleteServiceUnavailable) IsSuccess

func (o *ConfigDeleteServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this config delete service unavailable response has a 2xx status code

func (*ConfigDeleteServiceUnavailable) String

type ConfigInspectInternalServerError

type ConfigInspectInternalServerError struct {
	Payload *models.ErrorResponse
}
ConfigInspectInternalServerError describes a response with status code 500, with default header values.

server error

func NewConfigInspectInternalServerError

func NewConfigInspectInternalServerError() *ConfigInspectInternalServerError

NewConfigInspectInternalServerError creates a ConfigInspectInternalServerError with default headers values

func (*ConfigInspectInternalServerError) Error

func (*ConfigInspectInternalServerError) GetPayload

func (*ConfigInspectInternalServerError) IsClientError

func (o *ConfigInspectInternalServerError) IsClientError() bool

IsClientError returns true when this config inspect internal server error response has a 4xx status code

func (*ConfigInspectInternalServerError) IsCode

func (o *ConfigInspectInternalServerError) IsCode(code int) bool

IsCode returns true when this config inspect internal server error response a status code equal to that given

func (*ConfigInspectInternalServerError) IsRedirect

func (o *ConfigInspectInternalServerError) IsRedirect() bool

IsRedirect returns true when this config inspect internal server error response has a 3xx status code

func (*ConfigInspectInternalServerError) IsServerError

func (o *ConfigInspectInternalServerError) IsServerError() bool

IsServerError returns true when this config inspect internal server error response has a 5xx status code

func (*ConfigInspectInternalServerError) IsSuccess

func (o *ConfigInspectInternalServerError) IsSuccess() bool

IsSuccess returns true when this config inspect internal server error response has a 2xx status code

func (*ConfigInspectInternalServerError) String

type ConfigInspectNotFound

type ConfigInspectNotFound struct {
	Payload *models.ErrorResponse
}
ConfigInspectNotFound describes a response with status code 404, with default header values.

config not found

func NewConfigInspectNotFound

func NewConfigInspectNotFound() *ConfigInspectNotFound

NewConfigInspectNotFound creates a ConfigInspectNotFound with default headers values

func (*ConfigInspectNotFound) Error

func (o *ConfigInspectNotFound) Error() string

func (*ConfigInspectNotFound) GetPayload

func (o *ConfigInspectNotFound) GetPayload() *models.ErrorResponse

func (*ConfigInspectNotFound) IsClientError

func (o *ConfigInspectNotFound) IsClientError() bool

IsClientError returns true when this config inspect not found response has a 4xx status code

func (*ConfigInspectNotFound) IsCode

func (o *ConfigInspectNotFound) IsCode(code int) bool

IsCode returns true when this config inspect not found response a status code equal to that given

func (*ConfigInspectNotFound) IsRedirect

func (o *ConfigInspectNotFound) IsRedirect() bool

IsRedirect returns true when this config inspect not found response has a 3xx status code

func (*ConfigInspectNotFound) IsServerError

func (o *ConfigInspectNotFound) IsServerError() bool

IsServerError returns true when this config inspect not found response has a 5xx status code

func (*ConfigInspectNotFound) IsSuccess

func (o *ConfigInspectNotFound) IsSuccess() bool

IsSuccess returns true when this config inspect not found response has a 2xx status code

func (*ConfigInspectNotFound) String

func (o *ConfigInspectNotFound) String() string

type ConfigInspectOK

type ConfigInspectOK struct {
	Payload *models.Config
}
ConfigInspectOK describes a response with status code 200, with default header values.

no error

func NewConfigInspectOK

func NewConfigInspectOK() *ConfigInspectOK

NewConfigInspectOK creates a ConfigInspectOK with default headers values

func (*ConfigInspectOK) Error

func (o *ConfigInspectOK) Error() string

func (*ConfigInspectOK) GetPayload

func (o *ConfigInspectOK) GetPayload() *models.Config

func (*ConfigInspectOK) IsClientError

func (o *ConfigInspectOK) IsClientError() bool

IsClientError returns true when this config inspect o k response has a 4xx status code

func (*ConfigInspectOK) IsCode

func (o *ConfigInspectOK) IsCode(code int) bool

IsCode returns true when this config inspect o k response a status code equal to that given

func (*ConfigInspectOK) IsRedirect

func (o *ConfigInspectOK) IsRedirect() bool

IsRedirect returns true when this config inspect o k response has a 3xx status code

func (*ConfigInspectOK) IsServerError

func (o *ConfigInspectOK) IsServerError() bool

IsServerError returns true when this config inspect o k response has a 5xx status code

func (*ConfigInspectOK) IsSuccess

func (o *ConfigInspectOK) IsSuccess() bool

IsSuccess returns true when this config inspect o k response has a 2xx status code

func (*ConfigInspectOK) String

func (o *ConfigInspectOK) String() string

type ConfigInspectParams

type ConfigInspectParams struct {

	/* ID.

	   ID of the config
	*/
	ID string

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

ConfigInspectParams contains all the parameters to send to the API endpoint

for the config inspect operation.

Typically these are written to a http.Request.

func NewConfigInspectParams

func NewConfigInspectParams() *ConfigInspectParams

NewConfigInspectParams creates a new ConfigInspectParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewConfigInspectParamsWithContext

func NewConfigInspectParamsWithContext(ctx context.Context) *ConfigInspectParams

NewConfigInspectParamsWithContext creates a new ConfigInspectParams object with the ability to set a context for a request.

func NewConfigInspectParamsWithHTTPClient

func NewConfigInspectParamsWithHTTPClient(client *http.Client) *ConfigInspectParams

NewConfigInspectParamsWithHTTPClient creates a new ConfigInspectParams object with the ability to set a custom HTTPClient for a request.

func NewConfigInspectParamsWithTimeout

func NewConfigInspectParamsWithTimeout(timeout time.Duration) *ConfigInspectParams

NewConfigInspectParamsWithTimeout creates a new ConfigInspectParams object with the ability to set a timeout on a request.

func (*ConfigInspectParams) SetContext

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

SetContext adds the context to the config inspect params

func (*ConfigInspectParams) SetDefaults

func (o *ConfigInspectParams) SetDefaults()

SetDefaults hydrates default values in the config inspect params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the config inspect params

func (*ConfigInspectParams) SetID

func (o *ConfigInspectParams) SetID(id string)

SetID adds the id to the config inspect params

func (*ConfigInspectParams) SetTimeout

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

SetTimeout adds the timeout to the config inspect params

func (*ConfigInspectParams) WithContext

WithContext adds the context to the config inspect params

func (*ConfigInspectParams) WithDefaults

func (o *ConfigInspectParams) WithDefaults() *ConfigInspectParams

WithDefaults hydrates default values in the config inspect params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the config inspect params

func (*ConfigInspectParams) WithID

WithID adds the id to the config inspect params

func (*ConfigInspectParams) WithTimeout

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

WithTimeout adds the timeout to the config inspect params

func (*ConfigInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ConfigInspectReader

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

ConfigInspectReader is a Reader for the ConfigInspect structure.

func (*ConfigInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConfigInspectServiceUnavailable

type ConfigInspectServiceUnavailable struct {
	Payload *models.ErrorResponse
}
ConfigInspectServiceUnavailable describes a response with status code 503, with default header values.

node is not part of a swarm

func NewConfigInspectServiceUnavailable

func NewConfigInspectServiceUnavailable() *ConfigInspectServiceUnavailable

NewConfigInspectServiceUnavailable creates a ConfigInspectServiceUnavailable with default headers values

func (*ConfigInspectServiceUnavailable) Error

func (*ConfigInspectServiceUnavailable) GetPayload

func (*ConfigInspectServiceUnavailable) IsClientError

func (o *ConfigInspectServiceUnavailable) IsClientError() bool

IsClientError returns true when this config inspect service unavailable response has a 4xx status code

func (*ConfigInspectServiceUnavailable) IsCode

func (o *ConfigInspectServiceUnavailable) IsCode(code int) bool

IsCode returns true when this config inspect service unavailable response a status code equal to that given

func (*ConfigInspectServiceUnavailable) IsRedirect

func (o *ConfigInspectServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this config inspect service unavailable response has a 3xx status code

func (*ConfigInspectServiceUnavailable) IsServerError

func (o *ConfigInspectServiceUnavailable) IsServerError() bool

IsServerError returns true when this config inspect service unavailable response has a 5xx status code

func (*ConfigInspectServiceUnavailable) IsSuccess

func (o *ConfigInspectServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this config inspect service unavailable response has a 2xx status code

func (*ConfigInspectServiceUnavailable) String

type ConfigListInternalServerError

type ConfigListInternalServerError struct {
	Payload *models.ErrorResponse
}
ConfigListInternalServerError describes a response with status code 500, with default header values.

server error

func NewConfigListInternalServerError

func NewConfigListInternalServerError() *ConfigListInternalServerError

NewConfigListInternalServerError creates a ConfigListInternalServerError with default headers values

func (*ConfigListInternalServerError) Error

func (*ConfigListInternalServerError) GetPayload

func (*ConfigListInternalServerError) IsClientError

func (o *ConfigListInternalServerError) IsClientError() bool

IsClientError returns true when this config list internal server error response has a 4xx status code

func (*ConfigListInternalServerError) IsCode

func (o *ConfigListInternalServerError) IsCode(code int) bool

IsCode returns true when this config list internal server error response a status code equal to that given

func (*ConfigListInternalServerError) IsRedirect

func (o *ConfigListInternalServerError) IsRedirect() bool

IsRedirect returns true when this config list internal server error response has a 3xx status code

func (*ConfigListInternalServerError) IsServerError

func (o *ConfigListInternalServerError) IsServerError() bool

IsServerError returns true when this config list internal server error response has a 5xx status code

func (*ConfigListInternalServerError) IsSuccess

func (o *ConfigListInternalServerError) IsSuccess() bool

IsSuccess returns true when this config list internal server error response has a 2xx status code

func (*ConfigListInternalServerError) String

type ConfigListOK

type ConfigListOK struct {
	Payload []*models.Config
}
ConfigListOK describes a response with status code 200, with default header values.

no error

func NewConfigListOK

func NewConfigListOK() *ConfigListOK

NewConfigListOK creates a ConfigListOK with default headers values

func (*ConfigListOK) Error

func (o *ConfigListOK) Error() string

func (*ConfigListOK) GetPayload

func (o *ConfigListOK) GetPayload() []*models.Config

func (*ConfigListOK) IsClientError

func (o *ConfigListOK) IsClientError() bool

IsClientError returns true when this config list o k response has a 4xx status code

func (*ConfigListOK) IsCode

func (o *ConfigListOK) IsCode(code int) bool

IsCode returns true when this config list o k response a status code equal to that given

func (*ConfigListOK) IsRedirect

func (o *ConfigListOK) IsRedirect() bool

IsRedirect returns true when this config list o k response has a 3xx status code

func (*ConfigListOK) IsServerError

func (o *ConfigListOK) IsServerError() bool

IsServerError returns true when this config list o k response has a 5xx status code

func (*ConfigListOK) IsSuccess

func (o *ConfigListOK) IsSuccess() bool

IsSuccess returns true when this config list o k response has a 2xx status code

func (*ConfigListOK) String

func (o *ConfigListOK) String() string

type ConfigListParams

type ConfigListParams struct {

	/* Filters.

	     A JSON encoded value of the filters (a `map[string][]string`) to process on the configs list. Available filters:

	- `id=<config id>`
	- `label=<key> or label=<key>=value`
	- `name=<config name>`
	- `names=<config name>`

	*/
	Filters *string

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

ConfigListParams contains all the parameters to send to the API endpoint

for the config list operation.

Typically these are written to a http.Request.

func NewConfigListParams

func NewConfigListParams() *ConfigListParams

NewConfigListParams creates a new ConfigListParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewConfigListParamsWithContext

func NewConfigListParamsWithContext(ctx context.Context) *ConfigListParams

NewConfigListParamsWithContext creates a new ConfigListParams object with the ability to set a context for a request.

func NewConfigListParamsWithHTTPClient

func NewConfigListParamsWithHTTPClient(client *http.Client) *ConfigListParams

NewConfigListParamsWithHTTPClient creates a new ConfigListParams object with the ability to set a custom HTTPClient for a request.

func NewConfigListParamsWithTimeout

func NewConfigListParamsWithTimeout(timeout time.Duration) *ConfigListParams

NewConfigListParamsWithTimeout creates a new ConfigListParams object with the ability to set a timeout on a request.

func (*ConfigListParams) SetContext

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

SetContext adds the context to the config list params

func (*ConfigListParams) SetDefaults

func (o *ConfigListParams) SetDefaults()

SetDefaults hydrates default values in the config list params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigListParams) SetFilters

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

SetFilters adds the filters to the config list params

func (*ConfigListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the config list params

func (*ConfigListParams) SetTimeout

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

SetTimeout adds the timeout to the config list params

func (*ConfigListParams) WithContext

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

WithContext adds the context to the config list params

func (*ConfigListParams) WithDefaults

func (o *ConfigListParams) WithDefaults() *ConfigListParams

WithDefaults hydrates default values in the config list params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigListParams) WithFilters

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

WithFilters adds the filters to the config list params

func (*ConfigListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the config list params

func (*ConfigListParams) WithTimeout

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

WithTimeout adds the timeout to the config list params

func (*ConfigListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ConfigListReader

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

ConfigListReader is a Reader for the ConfigList structure.

func (*ConfigListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConfigListServiceUnavailable

type ConfigListServiceUnavailable struct {
	Payload *models.ErrorResponse
}
ConfigListServiceUnavailable describes a response with status code 503, with default header values.

node is not part of a swarm

func NewConfigListServiceUnavailable

func NewConfigListServiceUnavailable() *ConfigListServiceUnavailable

NewConfigListServiceUnavailable creates a ConfigListServiceUnavailable with default headers values

func (*ConfigListServiceUnavailable) Error

func (*ConfigListServiceUnavailable) GetPayload

func (*ConfigListServiceUnavailable) IsClientError

func (o *ConfigListServiceUnavailable) IsClientError() bool

IsClientError returns true when this config list service unavailable response has a 4xx status code

func (*ConfigListServiceUnavailable) IsCode

func (o *ConfigListServiceUnavailable) IsCode(code int) bool

IsCode returns true when this config list service unavailable response a status code equal to that given

func (*ConfigListServiceUnavailable) IsRedirect

func (o *ConfigListServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this config list service unavailable response has a 3xx status code

func (*ConfigListServiceUnavailable) IsServerError

func (o *ConfigListServiceUnavailable) IsServerError() bool

IsServerError returns true when this config list service unavailable response has a 5xx status code

func (*ConfigListServiceUnavailable) IsSuccess

func (o *ConfigListServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this config list service unavailable response has a 2xx status code

func (*ConfigListServiceUnavailable) String

type ConfigUpdateBadRequest

type ConfigUpdateBadRequest struct {
	Payload *models.ErrorResponse
}
ConfigUpdateBadRequest describes a response with status code 400, with default header values.

bad parameter

func NewConfigUpdateBadRequest

func NewConfigUpdateBadRequest() *ConfigUpdateBadRequest

NewConfigUpdateBadRequest creates a ConfigUpdateBadRequest with default headers values

func (*ConfigUpdateBadRequest) Error

func (o *ConfigUpdateBadRequest) Error() string

func (*ConfigUpdateBadRequest) GetPayload

func (o *ConfigUpdateBadRequest) GetPayload() *models.ErrorResponse

func (*ConfigUpdateBadRequest) IsClientError

func (o *ConfigUpdateBadRequest) IsClientError() bool

IsClientError returns true when this config update bad request response has a 4xx status code

func (*ConfigUpdateBadRequest) IsCode

func (o *ConfigUpdateBadRequest) IsCode(code int) bool

IsCode returns true when this config update bad request response a status code equal to that given

func (*ConfigUpdateBadRequest) IsRedirect

func (o *ConfigUpdateBadRequest) IsRedirect() bool

IsRedirect returns true when this config update bad request response has a 3xx status code

func (*ConfigUpdateBadRequest) IsServerError

func (o *ConfigUpdateBadRequest) IsServerError() bool

IsServerError returns true when this config update bad request response has a 5xx status code

func (*ConfigUpdateBadRequest) IsSuccess

func (o *ConfigUpdateBadRequest) IsSuccess() bool

IsSuccess returns true when this config update bad request response has a 2xx status code

func (*ConfigUpdateBadRequest) String

func (o *ConfigUpdateBadRequest) String() string

type ConfigUpdateInternalServerError

type ConfigUpdateInternalServerError struct {
	Payload *models.ErrorResponse
}
ConfigUpdateInternalServerError describes a response with status code 500, with default header values.

server error

func NewConfigUpdateInternalServerError

func NewConfigUpdateInternalServerError() *ConfigUpdateInternalServerError

NewConfigUpdateInternalServerError creates a ConfigUpdateInternalServerError with default headers values

func (*ConfigUpdateInternalServerError) Error

func (*ConfigUpdateInternalServerError) GetPayload

func (*ConfigUpdateInternalServerError) IsClientError

func (o *ConfigUpdateInternalServerError) IsClientError() bool

IsClientError returns true when this config update internal server error response has a 4xx status code

func (*ConfigUpdateInternalServerError) IsCode

func (o *ConfigUpdateInternalServerError) IsCode(code int) bool

IsCode returns true when this config update internal server error response a status code equal to that given

func (*ConfigUpdateInternalServerError) IsRedirect

func (o *ConfigUpdateInternalServerError) IsRedirect() bool

IsRedirect returns true when this config update internal server error response has a 3xx status code

func (*ConfigUpdateInternalServerError) IsServerError

func (o *ConfigUpdateInternalServerError) IsServerError() bool

IsServerError returns true when this config update internal server error response has a 5xx status code

func (*ConfigUpdateInternalServerError) IsSuccess

func (o *ConfigUpdateInternalServerError) IsSuccess() bool

IsSuccess returns true when this config update internal server error response has a 2xx status code

func (*ConfigUpdateInternalServerError) String

type ConfigUpdateNotFound

type ConfigUpdateNotFound struct {
	Payload *models.ErrorResponse
}
ConfigUpdateNotFound describes a response with status code 404, with default header values.

no such config

func NewConfigUpdateNotFound

func NewConfigUpdateNotFound() *ConfigUpdateNotFound

NewConfigUpdateNotFound creates a ConfigUpdateNotFound with default headers values

func (*ConfigUpdateNotFound) Error

func (o *ConfigUpdateNotFound) Error() string

func (*ConfigUpdateNotFound) GetPayload

func (o *ConfigUpdateNotFound) GetPayload() *models.ErrorResponse

func (*ConfigUpdateNotFound) IsClientError

func (o *ConfigUpdateNotFound) IsClientError() bool

IsClientError returns true when this config update not found response has a 4xx status code

func (*ConfigUpdateNotFound) IsCode

func (o *ConfigUpdateNotFound) IsCode(code int) bool

IsCode returns true when this config update not found response a status code equal to that given

func (*ConfigUpdateNotFound) IsRedirect

func (o *ConfigUpdateNotFound) IsRedirect() bool

IsRedirect returns true when this config update not found response has a 3xx status code

func (*ConfigUpdateNotFound) IsServerError

func (o *ConfigUpdateNotFound) IsServerError() bool

IsServerError returns true when this config update not found response has a 5xx status code

func (*ConfigUpdateNotFound) IsSuccess

func (o *ConfigUpdateNotFound) IsSuccess() bool

IsSuccess returns true when this config update not found response has a 2xx status code

func (*ConfigUpdateNotFound) String

func (o *ConfigUpdateNotFound) String() string

type ConfigUpdateOK

type ConfigUpdateOK struct {
}
ConfigUpdateOK describes a response with status code 200, with default header values.

no error

func NewConfigUpdateOK

func NewConfigUpdateOK() *ConfigUpdateOK

NewConfigUpdateOK creates a ConfigUpdateOK with default headers values

func (*ConfigUpdateOK) Error

func (o *ConfigUpdateOK) Error() string

func (*ConfigUpdateOK) IsClientError

func (o *ConfigUpdateOK) IsClientError() bool

IsClientError returns true when this config update o k response has a 4xx status code

func (*ConfigUpdateOK) IsCode

func (o *ConfigUpdateOK) IsCode(code int) bool

IsCode returns true when this config update o k response a status code equal to that given

func (*ConfigUpdateOK) IsRedirect

func (o *ConfigUpdateOK) IsRedirect() bool

IsRedirect returns true when this config update o k response has a 3xx status code

func (*ConfigUpdateOK) IsServerError

func (o *ConfigUpdateOK) IsServerError() bool

IsServerError returns true when this config update o k response has a 5xx status code

func (*ConfigUpdateOK) IsSuccess

func (o *ConfigUpdateOK) IsSuccess() bool

IsSuccess returns true when this config update o k response has a 2xx status code

func (*ConfigUpdateOK) String

func (o *ConfigUpdateOK) String() string

type ConfigUpdateParams

type ConfigUpdateParams struct {

	/* Body.

	   The spec of the config to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the [ConfigInspect endpoint](#operation/ConfigInspect) response values.
	*/
	Body *models.ConfigSpec

	/* ID.

	   The ID or name of the config
	*/
	ID string

	/* Version.

	   The version number of the config object being updated. This is required to avoid conflicting writes.

	   Format: int64
	*/
	Version int64

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

ConfigUpdateParams contains all the parameters to send to the API endpoint

for the config update operation.

Typically these are written to a http.Request.

func NewConfigUpdateParams

func NewConfigUpdateParams() *ConfigUpdateParams

NewConfigUpdateParams creates a new ConfigUpdateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewConfigUpdateParamsWithContext

func NewConfigUpdateParamsWithContext(ctx context.Context) *ConfigUpdateParams

NewConfigUpdateParamsWithContext creates a new ConfigUpdateParams object with the ability to set a context for a request.

func NewConfigUpdateParamsWithHTTPClient

func NewConfigUpdateParamsWithHTTPClient(client *http.Client) *ConfigUpdateParams

NewConfigUpdateParamsWithHTTPClient creates a new ConfigUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewConfigUpdateParamsWithTimeout

func NewConfigUpdateParamsWithTimeout(timeout time.Duration) *ConfigUpdateParams

NewConfigUpdateParamsWithTimeout creates a new ConfigUpdateParams object with the ability to set a timeout on a request.

func (*ConfigUpdateParams) SetBody

func (o *ConfigUpdateParams) SetBody(body *models.ConfigSpec)

SetBody adds the body to the config update params

func (*ConfigUpdateParams) SetContext

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

SetContext adds the context to the config update params

func (*ConfigUpdateParams) SetDefaults

func (o *ConfigUpdateParams) SetDefaults()

SetDefaults hydrates default values in the config update params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the config update params

func (*ConfigUpdateParams) SetID

func (o *ConfigUpdateParams) SetID(id string)

SetID adds the id to the config update params

func (*ConfigUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the config update params

func (*ConfigUpdateParams) SetVersion

func (o *ConfigUpdateParams) SetVersion(version int64)

SetVersion adds the version to the config update params

func (*ConfigUpdateParams) WithBody

WithBody adds the body to the config update params

func (*ConfigUpdateParams) WithContext

WithContext adds the context to the config update params

func (*ConfigUpdateParams) WithDefaults

func (o *ConfigUpdateParams) WithDefaults() *ConfigUpdateParams

WithDefaults hydrates default values in the config update params (not the query body).

All values with no default are reset to their zero value.

func (*ConfigUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the config update params

func (*ConfigUpdateParams) WithID

WithID adds the id to the config update params

func (*ConfigUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the config update params

func (*ConfigUpdateParams) WithVersion

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

WithVersion adds the version to the config update params

func (*ConfigUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ConfigUpdateReader

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

ConfigUpdateReader is a Reader for the ConfigUpdate structure.

func (*ConfigUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConfigUpdateServiceUnavailable

type ConfigUpdateServiceUnavailable struct {
	Payload *models.ErrorResponse
}
ConfigUpdateServiceUnavailable describes a response with status code 503, with default header values.

node is not part of a swarm

func NewConfigUpdateServiceUnavailable

func NewConfigUpdateServiceUnavailable() *ConfigUpdateServiceUnavailable

NewConfigUpdateServiceUnavailable creates a ConfigUpdateServiceUnavailable with default headers values

func (*ConfigUpdateServiceUnavailable) Error

func (*ConfigUpdateServiceUnavailable) GetPayload

func (*ConfigUpdateServiceUnavailable) IsClientError

func (o *ConfigUpdateServiceUnavailable) IsClientError() bool

IsClientError returns true when this config update service unavailable response has a 4xx status code

func (*ConfigUpdateServiceUnavailable) IsCode

func (o *ConfigUpdateServiceUnavailable) IsCode(code int) bool

IsCode returns true when this config update service unavailable response a status code equal to that given

func (*ConfigUpdateServiceUnavailable) IsRedirect

func (o *ConfigUpdateServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this config update service unavailable response has a 3xx status code

func (*ConfigUpdateServiceUnavailable) IsServerError

func (o *ConfigUpdateServiceUnavailable) IsServerError() bool

IsServerError returns true when this config update service unavailable response has a 5xx status code

func (*ConfigUpdateServiceUnavailable) IsSuccess

func (o *ConfigUpdateServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this config update service unavailable response has a 2xx status code

func (*ConfigUpdateServiceUnavailable) String

Jump to

Keyboard shortcuts

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