Documentation ¶
Index ¶
- type Client
- func (a *Client) ConfigCreate(params *ConfigCreateParams) (*ConfigCreateCreated, error)
- func (a *Client) ConfigDelete(params *ConfigDeleteParams) (*ConfigDeleteNoContent, error)
- func (a *Client) ConfigInspect(params *ConfigInspectParams) (*ConfigInspectOK, error)
- func (a *Client) ConfigList(params *ConfigListParams) (*ConfigListOK, error)
- func (a *Client) ConfigUpdate(params *ConfigUpdateParams) (*ConfigUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ConfigCreateConflict
- type ConfigCreateCreated
- type ConfigCreateInternalServerError
- type ConfigCreateParams
- func (o *ConfigCreateParams) SetBody(body *models.ConfigCreateParamsBody)
- func (o *ConfigCreateParams) SetContext(ctx context.Context)
- func (o *ConfigCreateParams) SetHTTPClient(client *http.Client)
- func (o *ConfigCreateParams) SetTimeout(timeout time.Duration)
- func (o *ConfigCreateParams) WithBody(body *models.ConfigCreateParamsBody) *ConfigCreateParams
- func (o *ConfigCreateParams) WithContext(ctx context.Context) *ConfigCreateParams
- func (o *ConfigCreateParams) WithHTTPClient(client *http.Client) *ConfigCreateParams
- func (o *ConfigCreateParams) WithTimeout(timeout time.Duration) *ConfigCreateParams
- func (o *ConfigCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConfigCreateReader
- type ConfigCreateServiceUnavailable
- type ConfigDeleteInternalServerError
- type ConfigDeleteNoContent
- type ConfigDeleteNotFound
- type ConfigDeleteParams
- func (o *ConfigDeleteParams) SetContext(ctx context.Context)
- func (o *ConfigDeleteParams) SetHTTPClient(client *http.Client)
- func (o *ConfigDeleteParams) SetID(id string)
- func (o *ConfigDeleteParams) SetTimeout(timeout time.Duration)
- func (o *ConfigDeleteParams) WithContext(ctx context.Context) *ConfigDeleteParams
- func (o *ConfigDeleteParams) WithHTTPClient(client *http.Client) *ConfigDeleteParams
- func (o *ConfigDeleteParams) WithID(id string) *ConfigDeleteParams
- func (o *ConfigDeleteParams) WithTimeout(timeout time.Duration) *ConfigDeleteParams
- func (o *ConfigDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConfigDeleteReader
- type ConfigDeleteServiceUnavailable
- type ConfigInspectInternalServerError
- type ConfigInspectNotFound
- type ConfigInspectOK
- type ConfigInspectParams
- func (o *ConfigInspectParams) SetContext(ctx context.Context)
- func (o *ConfigInspectParams) SetHTTPClient(client *http.Client)
- func (o *ConfigInspectParams) SetID(id string)
- func (o *ConfigInspectParams) SetTimeout(timeout time.Duration)
- func (o *ConfigInspectParams) WithContext(ctx context.Context) *ConfigInspectParams
- func (o *ConfigInspectParams) WithHTTPClient(client *http.Client) *ConfigInspectParams
- func (o *ConfigInspectParams) WithID(id string) *ConfigInspectParams
- func (o *ConfigInspectParams) WithTimeout(timeout time.Duration) *ConfigInspectParams
- func (o *ConfigInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConfigInspectReader
- type ConfigInspectServiceUnavailable
- type ConfigListInternalServerError
- type ConfigListOK
- type ConfigListParams
- func (o *ConfigListParams) SetContext(ctx context.Context)
- func (o *ConfigListParams) SetFilters(filters *string)
- func (o *ConfigListParams) SetHTTPClient(client *http.Client)
- func (o *ConfigListParams) SetTimeout(timeout time.Duration)
- func (o *ConfigListParams) WithContext(ctx context.Context) *ConfigListParams
- func (o *ConfigListParams) WithFilters(filters *string) *ConfigListParams
- func (o *ConfigListParams) WithHTTPClient(client *http.Client) *ConfigListParams
- func (o *ConfigListParams) WithTimeout(timeout time.Duration) *ConfigListParams
- func (o *ConfigListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConfigListReader
- type ConfigListServiceUnavailable
- type ConfigUpdateBadRequest
- type ConfigUpdateInternalServerError
- type ConfigUpdateNotFound
- type ConfigUpdateOK
- type ConfigUpdateParams
- func (o *ConfigUpdateParams) SetBody(body *models.ConfigSpec)
- func (o *ConfigUpdateParams) SetContext(ctx context.Context)
- func (o *ConfigUpdateParams) SetHTTPClient(client *http.Client)
- func (o *ConfigUpdateParams) SetID(id string)
- func (o *ConfigUpdateParams) SetTimeout(timeout time.Duration)
- func (o *ConfigUpdateParams) SetVersion(version int64)
- func (o *ConfigUpdateParams) WithBody(body *models.ConfigSpec) *ConfigUpdateParams
- func (o *ConfigUpdateParams) WithContext(ctx context.Context) *ConfigUpdateParams
- func (o *ConfigUpdateParams) WithHTTPClient(client *http.Client) *ConfigUpdateParams
- func (o *ConfigUpdateParams) WithID(id string) *ConfigUpdateParams
- func (o *ConfigUpdateParams) WithTimeout(timeout time.Duration) *ConfigUpdateParams
- func (o *ConfigUpdateParams) WithVersion(version int64) *ConfigUpdateParams
- func (o *ConfigUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConfigUpdateReader
- type ConfigUpdateServiceUnavailable
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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new config API client.
func (*Client) ConfigCreate ¶
func (a *Client) ConfigCreate(params *ConfigCreateParams) (*ConfigCreateCreated, error)
ConfigCreate creates a config
func (*Client) ConfigDelete ¶
func (a *Client) ConfigDelete(params *ConfigDeleteParams) (*ConfigDeleteNoContent, error)
ConfigDelete deletes a config
func (*Client) ConfigInspect ¶
func (a *Client) ConfigInspect(params *ConfigInspectParams) (*ConfigInspectOK, error)
ConfigInspect inspects a config
func (*Client) ConfigList ¶
func (a *Client) ConfigList(params *ConfigListParams) (*ConfigListOK, error)
ConfigList lists configs
func (*Client) ConfigUpdate ¶
func (a *Client) ConfigUpdate(params *ConfigUpdateParams) (*ConfigUpdateOK, error)
ConfigUpdate updates a config
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ConfigCreateConflict ¶
type ConfigCreateConflict struct {
Payload *models.ErrorResponse
}
ConfigCreateConflict handles this case 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
type ConfigCreateCreated ¶
type ConfigCreateCreated struct {
Payload *models.IDResponse
}
ConfigCreateCreated handles this case 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
type ConfigCreateInternalServerError ¶
type ConfigCreateInternalServerError struct {
Payload *models.ErrorResponse
}
ConfigCreateInternalServerError handles this case with default header values.
server error
func NewConfigCreateInternalServerError ¶
func NewConfigCreateInternalServerError() *ConfigCreateInternalServerError
NewConfigCreateInternalServerError creates a ConfigCreateInternalServerError with default headers values
func (*ConfigCreateInternalServerError) Error ¶
func (o *ConfigCreateInternalServerError) Error() string
type ConfigCreateParams ¶
type ConfigCreateParams struct { /*Body*/ Body *models.ConfigCreateParamsBody 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 values initialized.
func NewConfigCreateParamsWithContext ¶
func NewConfigCreateParamsWithContext(ctx context.Context) *ConfigCreateParams
NewConfigCreateParamsWithContext creates a new ConfigCreateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*ConfigCreateParams) SetBody ¶
func (o *ConfigCreateParams) SetBody(body *models.ConfigCreateParamsBody)
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) 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 ¶
func (o *ConfigCreateParams) WithBody(body *models.ConfigCreateParamsBody) *ConfigCreateParams
WithBody adds the body to the config create params
func (*ConfigCreateParams) WithContext ¶
func (o *ConfigCreateParams) WithContext(ctx context.Context) *ConfigCreateParams
WithContext adds the context to the config create params
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 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 {
}ConfigCreateServiceUnavailable handles this case 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 (o *ConfigCreateServiceUnavailable) Error() string
type ConfigDeleteInternalServerError ¶
type ConfigDeleteInternalServerError struct {
Payload *models.ErrorResponse
}
ConfigDeleteInternalServerError handles this case with default header values.
server error
func NewConfigDeleteInternalServerError ¶
func NewConfigDeleteInternalServerError() *ConfigDeleteInternalServerError
NewConfigDeleteInternalServerError creates a ConfigDeleteInternalServerError with default headers values
func (*ConfigDeleteInternalServerError) Error ¶
func (o *ConfigDeleteInternalServerError) Error() string
type ConfigDeleteNoContent ¶
type ConfigDeleteNoContent struct { }
ConfigDeleteNoContent handles this case 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
type ConfigDeleteNotFound ¶
type ConfigDeleteNotFound struct {
Payload *models.ErrorResponse
}
ConfigDeleteNotFound handles this case 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
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 values initialized.
func NewConfigDeleteParamsWithContext ¶
func NewConfigDeleteParamsWithContext(ctx context.Context) *ConfigDeleteParams
NewConfigDeleteParamsWithContext creates a new ConfigDeleteParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *ConfigDeleteParams) WithContext(ctx context.Context) *ConfigDeleteParams
WithContext adds the context to the config delete params
func (*ConfigDeleteParams) WithHTTPClient ¶
func (o *ConfigDeleteParams) WithHTTPClient(client *http.Client) *ConfigDeleteParams
WithHTTPClient adds the HTTPClient to the config delete params
func (*ConfigDeleteParams) WithID ¶
func (o *ConfigDeleteParams) WithID(id string) *ConfigDeleteParams
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 {
}ConfigDeleteServiceUnavailable handles this case 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 (o *ConfigDeleteServiceUnavailable) Error() string
type ConfigInspectInternalServerError ¶
type ConfigInspectInternalServerError struct {
Payload *models.ErrorResponse
}
ConfigInspectInternalServerError handles this case with default header values.
server error
func NewConfigInspectInternalServerError ¶
func NewConfigInspectInternalServerError() *ConfigInspectInternalServerError
NewConfigInspectInternalServerError creates a ConfigInspectInternalServerError with default headers values
func (*ConfigInspectInternalServerError) Error ¶
func (o *ConfigInspectInternalServerError) Error() string
type ConfigInspectNotFound ¶
type ConfigInspectNotFound struct {
Payload *models.ErrorResponse
}
ConfigInspectNotFound handles this case 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
type ConfigInspectOK ¶
ConfigInspectOK handles this case 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
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 values initialized.
func NewConfigInspectParamsWithContext ¶
func NewConfigInspectParamsWithContext(ctx context.Context) *ConfigInspectParams
NewConfigInspectParamsWithContext creates a new ConfigInspectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *ConfigInspectParams) WithContext(ctx context.Context) *ConfigInspectParams
WithContext adds the context to the config inspect params
func (*ConfigInspectParams) WithHTTPClient ¶
func (o *ConfigInspectParams) WithHTTPClient(client *http.Client) *ConfigInspectParams
WithHTTPClient adds the HTTPClient to the config inspect params
func (*ConfigInspectParams) WithID ¶
func (o *ConfigInspectParams) WithID(id string) *ConfigInspectParams
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 {
}ConfigInspectServiceUnavailable handles this case 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 (o *ConfigInspectServiceUnavailable) Error() string
type ConfigListInternalServerError ¶
type ConfigListInternalServerError struct {
Payload *models.ErrorResponse
}
ConfigListInternalServerError handles this case with default header values.
server error
func NewConfigListInternalServerError ¶
func NewConfigListInternalServerError() *ConfigListInternalServerError
NewConfigListInternalServerError creates a ConfigListInternalServerError with default headers values
func (*ConfigListInternalServerError) Error ¶
func (o *ConfigListInternalServerError) Error() string
type ConfigListOK ¶
type ConfigListOK struct {
Payload models.ConfigListOKBody
}
ConfigListOK handles this case 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
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 values initialized.
func NewConfigListParamsWithContext ¶
func NewConfigListParamsWithContext(ctx context.Context) *ConfigListParams
NewConfigListParamsWithContext creates a new ConfigListParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}ConfigListServiceUnavailable handles this case 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 (o *ConfigListServiceUnavailable) Error() string
type ConfigUpdateBadRequest ¶
type ConfigUpdateBadRequest struct {
Payload *models.ErrorResponse
}
ConfigUpdateBadRequest handles this case 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
type ConfigUpdateInternalServerError ¶
type ConfigUpdateInternalServerError struct {
Payload *models.ErrorResponse
}
ConfigUpdateInternalServerError handles this case with default header values.
server error
func NewConfigUpdateInternalServerError ¶
func NewConfigUpdateInternalServerError() *ConfigUpdateInternalServerError
NewConfigUpdateInternalServerError creates a ConfigUpdateInternalServerError with default headers values
func (*ConfigUpdateInternalServerError) Error ¶
func (o *ConfigUpdateInternalServerError) Error() string
type ConfigUpdateNotFound ¶
type ConfigUpdateNotFound struct {
Payload *models.ErrorResponse
}
ConfigUpdateNotFound handles this case 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
type ConfigUpdateOK ¶
type ConfigUpdateOK struct { }
ConfigUpdateOK handles this case 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
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. */ 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 values initialized.
func NewConfigUpdateParamsWithContext ¶
func NewConfigUpdateParamsWithContext(ctx context.Context) *ConfigUpdateParams
NewConfigUpdateParamsWithContext creates a new ConfigUpdateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *ConfigUpdateParams) WithBody(body *models.ConfigSpec) *ConfigUpdateParams
WithBody adds the body to the config update params
func (*ConfigUpdateParams) WithContext ¶
func (o *ConfigUpdateParams) WithContext(ctx context.Context) *ConfigUpdateParams
WithContext adds the context to the config update params
func (*ConfigUpdateParams) WithHTTPClient ¶
func (o *ConfigUpdateParams) WithHTTPClient(client *http.Client) *ConfigUpdateParams
WithHTTPClient adds the HTTPClient to the config update params
func (*ConfigUpdateParams) WithID ¶
func (o *ConfigUpdateParams) WithID(id string) *ConfigUpdateParams
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 {
}ConfigUpdateServiceUnavailable handles this case 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 (o *ConfigUpdateServiceUnavailable) Error() string