Documentation ¶
Index ¶
- type Client
- func (a *Client) ServiceCreate(params *ServiceCreateParams) (*ServiceCreateCreated, error)
- func (a *Client) ServiceDelete(params *ServiceDeleteParams) (*ServiceDeleteOK, error)
- func (a *Client) ServiceInspect(params *ServiceInspectParams) (*ServiceInspectOK, error)
- func (a *Client) ServiceList(params *ServiceListParams) (*ServiceListOK, error)
- func (a *Client) ServiceLogs(params *ServiceLogsParams, writer io.Writer) (*ServiceLogsOK, error)
- func (a *Client) ServiceUpdate(params *ServiceUpdateParams) (*ServiceUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ServiceCreateBadRequest
- type ServiceCreateConflict
- type ServiceCreateCreated
- type ServiceCreateForbidden
- type ServiceCreateInternalServerError
- type ServiceCreateParams
- func (o *ServiceCreateParams) SetBody(body *models.ServiceCreateParamsBody)
- func (o *ServiceCreateParams) SetContext(ctx context.Context)
- func (o *ServiceCreateParams) SetHTTPClient(client *http.Client)
- func (o *ServiceCreateParams) SetTimeout(timeout time.Duration)
- func (o *ServiceCreateParams) SetXRegistryAuth(xRegistryAuth *string)
- func (o *ServiceCreateParams) WithBody(body *models.ServiceCreateParamsBody) *ServiceCreateParams
- func (o *ServiceCreateParams) WithContext(ctx context.Context) *ServiceCreateParams
- func (o *ServiceCreateParams) WithHTTPClient(client *http.Client) *ServiceCreateParams
- func (o *ServiceCreateParams) WithTimeout(timeout time.Duration) *ServiceCreateParams
- func (o *ServiceCreateParams) WithXRegistryAuth(xRegistryAuth *string) *ServiceCreateParams
- func (o *ServiceCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceCreateReader
- type ServiceCreateServiceUnavailable
- type ServiceDeleteInternalServerError
- type ServiceDeleteNotFound
- type ServiceDeleteOK
- type ServiceDeleteParams
- func (o *ServiceDeleteParams) SetContext(ctx context.Context)
- func (o *ServiceDeleteParams) SetHTTPClient(client *http.Client)
- func (o *ServiceDeleteParams) SetID(id string)
- func (o *ServiceDeleteParams) SetTimeout(timeout time.Duration)
- func (o *ServiceDeleteParams) WithContext(ctx context.Context) *ServiceDeleteParams
- func (o *ServiceDeleteParams) WithHTTPClient(client *http.Client) *ServiceDeleteParams
- func (o *ServiceDeleteParams) WithID(id string) *ServiceDeleteParams
- func (o *ServiceDeleteParams) WithTimeout(timeout time.Duration) *ServiceDeleteParams
- func (o *ServiceDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceDeleteReader
- type ServiceDeleteServiceUnavailable
- type ServiceInspectInternalServerError
- type ServiceInspectNotFound
- type ServiceInspectOK
- type ServiceInspectParams
- func NewServiceInspectParams() *ServiceInspectParams
- func NewServiceInspectParamsWithContext(ctx context.Context) *ServiceInspectParams
- func NewServiceInspectParamsWithHTTPClient(client *http.Client) *ServiceInspectParams
- func NewServiceInspectParamsWithTimeout(timeout time.Duration) *ServiceInspectParams
- func (o *ServiceInspectParams) SetContext(ctx context.Context)
- func (o *ServiceInspectParams) SetHTTPClient(client *http.Client)
- func (o *ServiceInspectParams) SetID(id string)
- func (o *ServiceInspectParams) SetInsertDefaults(insertDefaults *bool)
- func (o *ServiceInspectParams) SetTimeout(timeout time.Duration)
- func (o *ServiceInspectParams) WithContext(ctx context.Context) *ServiceInspectParams
- func (o *ServiceInspectParams) WithHTTPClient(client *http.Client) *ServiceInspectParams
- func (o *ServiceInspectParams) WithID(id string) *ServiceInspectParams
- func (o *ServiceInspectParams) WithInsertDefaults(insertDefaults *bool) *ServiceInspectParams
- func (o *ServiceInspectParams) WithTimeout(timeout time.Duration) *ServiceInspectParams
- func (o *ServiceInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceInspectReader
- type ServiceInspectServiceUnavailable
- type ServiceListInternalServerError
- type ServiceListOK
- type ServiceListParams
- func (o *ServiceListParams) SetContext(ctx context.Context)
- func (o *ServiceListParams) SetFilters(filters *string)
- func (o *ServiceListParams) SetHTTPClient(client *http.Client)
- func (o *ServiceListParams) SetTimeout(timeout time.Duration)
- func (o *ServiceListParams) WithContext(ctx context.Context) *ServiceListParams
- func (o *ServiceListParams) WithFilters(filters *string) *ServiceListParams
- func (o *ServiceListParams) WithHTTPClient(client *http.Client) *ServiceListParams
- func (o *ServiceListParams) WithTimeout(timeout time.Duration) *ServiceListParams
- func (o *ServiceListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceListReader
- type ServiceListServiceUnavailable
- type ServiceLogsInternalServerError
- type ServiceLogsNotFound
- type ServiceLogsOK
- type ServiceLogsParams
- func (o *ServiceLogsParams) SetContext(ctx context.Context)
- func (o *ServiceLogsParams) SetDetails(details *bool)
- func (o *ServiceLogsParams) SetFollow(follow *bool)
- func (o *ServiceLogsParams) SetHTTPClient(client *http.Client)
- func (o *ServiceLogsParams) SetID(id string)
- func (o *ServiceLogsParams) SetSince(since *int64)
- func (o *ServiceLogsParams) SetStderr(stderr *bool)
- func (o *ServiceLogsParams) SetStdout(stdout *bool)
- func (o *ServiceLogsParams) SetTail(tail *string)
- func (o *ServiceLogsParams) SetTimeout(timeout time.Duration)
- func (o *ServiceLogsParams) SetTimestamps(timestamps *bool)
- func (o *ServiceLogsParams) WithContext(ctx context.Context) *ServiceLogsParams
- func (o *ServiceLogsParams) WithDetails(details *bool) *ServiceLogsParams
- func (o *ServiceLogsParams) WithFollow(follow *bool) *ServiceLogsParams
- func (o *ServiceLogsParams) WithHTTPClient(client *http.Client) *ServiceLogsParams
- func (o *ServiceLogsParams) WithID(id string) *ServiceLogsParams
- func (o *ServiceLogsParams) WithSince(since *int64) *ServiceLogsParams
- func (o *ServiceLogsParams) WithStderr(stderr *bool) *ServiceLogsParams
- func (o *ServiceLogsParams) WithStdout(stdout *bool) *ServiceLogsParams
- func (o *ServiceLogsParams) WithTail(tail *string) *ServiceLogsParams
- func (o *ServiceLogsParams) WithTimeout(timeout time.Duration) *ServiceLogsParams
- func (o *ServiceLogsParams) WithTimestamps(timestamps *bool) *ServiceLogsParams
- func (o *ServiceLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceLogsReader
- type ServiceLogsServiceUnavailable
- type ServiceLogsSwitchingProtocols
- type ServiceUpdateBadRequest
- type ServiceUpdateInternalServerError
- type ServiceUpdateNotFound
- type ServiceUpdateOK
- type ServiceUpdateParams
- func (o *ServiceUpdateParams) SetBody(body *models.ServiceUpdateParamsBody)
- func (o *ServiceUpdateParams) SetContext(ctx context.Context)
- func (o *ServiceUpdateParams) SetHTTPClient(client *http.Client)
- func (o *ServiceUpdateParams) SetID(id string)
- func (o *ServiceUpdateParams) SetRegistryAuthFrom(registryAuthFrom *string)
- func (o *ServiceUpdateParams) SetRollback(rollback *string)
- func (o *ServiceUpdateParams) SetTimeout(timeout time.Duration)
- func (o *ServiceUpdateParams) SetVersion(version int64)
- func (o *ServiceUpdateParams) SetXRegistryAuth(xRegistryAuth *string)
- func (o *ServiceUpdateParams) WithBody(body *models.ServiceUpdateParamsBody) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithContext(ctx context.Context) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithHTTPClient(client *http.Client) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithID(id string) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithRegistryAuthFrom(registryAuthFrom *string) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithRollback(rollback *string) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithTimeout(timeout time.Duration) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithVersion(version int64) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithXRegistryAuth(xRegistryAuth *string) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceUpdateReader
- type ServiceUpdateServiceUnavailable
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 service API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new service API client.
func (*Client) ServiceCreate ¶
func (a *Client) ServiceCreate(params *ServiceCreateParams) (*ServiceCreateCreated, error)
ServiceCreate creates a service
func (*Client) ServiceDelete ¶
func (a *Client) ServiceDelete(params *ServiceDeleteParams) (*ServiceDeleteOK, error)
ServiceDelete deletes a service
func (*Client) ServiceInspect ¶
func (a *Client) ServiceInspect(params *ServiceInspectParams) (*ServiceInspectOK, error)
ServiceInspect inspects a service
func (*Client) ServiceList ¶
func (a *Client) ServiceList(params *ServiceListParams) (*ServiceListOK, error)
ServiceList lists services
func (*Client) ServiceLogs ¶
func (a *Client) ServiceLogs(params *ServiceLogsParams, writer io.Writer) (*ServiceLogsOK, error)
ServiceLogs gets service logs
Get `stdout` and `stderr` logs from a service.
**Note**: This endpoint works only for services with the `json-file` or `journald` logging drivers.
func (*Client) ServiceUpdate ¶
func (a *Client) ServiceUpdate(params *ServiceUpdateParams) (*ServiceUpdateOK, error)
ServiceUpdate updates a service
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ServiceCreateBadRequest ¶
type ServiceCreateBadRequest struct {
Payload *models.ErrorResponse
}
ServiceCreateBadRequest handles this case with default header values.
bad parameter
func NewServiceCreateBadRequest ¶
func NewServiceCreateBadRequest() *ServiceCreateBadRequest
NewServiceCreateBadRequest creates a ServiceCreateBadRequest with default headers values
func (*ServiceCreateBadRequest) Error ¶
func (o *ServiceCreateBadRequest) Error() string
type ServiceCreateConflict ¶
type ServiceCreateConflict struct {
Payload *models.ErrorResponse
}
ServiceCreateConflict handles this case with default header values.
name conflicts with an existing service
func NewServiceCreateConflict ¶
func NewServiceCreateConflict() *ServiceCreateConflict
NewServiceCreateConflict creates a ServiceCreateConflict with default headers values
func (*ServiceCreateConflict) Error ¶
func (o *ServiceCreateConflict) Error() string
type ServiceCreateCreated ¶
type ServiceCreateCreated struct {
Payload *models.ServiceCreateCreatedBody
}
ServiceCreateCreated handles this case with default header values.
no error
func NewServiceCreateCreated ¶
func NewServiceCreateCreated() *ServiceCreateCreated
NewServiceCreateCreated creates a ServiceCreateCreated with default headers values
func (*ServiceCreateCreated) Error ¶
func (o *ServiceCreateCreated) Error() string
type ServiceCreateForbidden ¶
type ServiceCreateForbidden struct {
Payload *models.ErrorResponse
}
ServiceCreateForbidden handles this case with default header values.
network is not eligible for services
func NewServiceCreateForbidden ¶
func NewServiceCreateForbidden() *ServiceCreateForbidden
NewServiceCreateForbidden creates a ServiceCreateForbidden with default headers values
func (*ServiceCreateForbidden) Error ¶
func (o *ServiceCreateForbidden) Error() string
type ServiceCreateInternalServerError ¶
type ServiceCreateInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceCreateInternalServerError handles this case with default header values.
server error
func NewServiceCreateInternalServerError ¶
func NewServiceCreateInternalServerError() *ServiceCreateInternalServerError
NewServiceCreateInternalServerError creates a ServiceCreateInternalServerError with default headers values
func (*ServiceCreateInternalServerError) Error ¶
func (o *ServiceCreateInternalServerError) Error() string
type ServiceCreateParams ¶
type ServiceCreateParams struct { /*XRegistryAuth A base64-encoded auth configuration for pulling from private registries. [See the authentication section for details.](#section/Authentication) */ XRegistryAuth *string /*Body*/ Body *models.ServiceCreateParamsBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceCreateParams contains all the parameters to send to the API endpoint for the service create operation typically these are written to a http.Request
func NewServiceCreateParams ¶
func NewServiceCreateParams() *ServiceCreateParams
NewServiceCreateParams creates a new ServiceCreateParams object with the default values initialized.
func NewServiceCreateParamsWithContext ¶
func NewServiceCreateParamsWithContext(ctx context.Context) *ServiceCreateParams
NewServiceCreateParamsWithContext creates a new ServiceCreateParams object with the default values initialized, and the ability to set a context for a request
func NewServiceCreateParamsWithHTTPClient ¶
func NewServiceCreateParamsWithHTTPClient(client *http.Client) *ServiceCreateParams
NewServiceCreateParamsWithHTTPClient creates a new ServiceCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewServiceCreateParamsWithTimeout ¶
func NewServiceCreateParamsWithTimeout(timeout time.Duration) *ServiceCreateParams
NewServiceCreateParamsWithTimeout creates a new ServiceCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*ServiceCreateParams) SetBody ¶
func (o *ServiceCreateParams) SetBody(body *models.ServiceCreateParamsBody)
SetBody adds the body to the service create params
func (*ServiceCreateParams) SetContext ¶
func (o *ServiceCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the service create params
func (*ServiceCreateParams) SetHTTPClient ¶
func (o *ServiceCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service create params
func (*ServiceCreateParams) SetTimeout ¶
func (o *ServiceCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service create params
func (*ServiceCreateParams) SetXRegistryAuth ¶
func (o *ServiceCreateParams) SetXRegistryAuth(xRegistryAuth *string)
SetXRegistryAuth adds the xRegistryAuth to the service create params
func (*ServiceCreateParams) WithBody ¶
func (o *ServiceCreateParams) WithBody(body *models.ServiceCreateParamsBody) *ServiceCreateParams
WithBody adds the body to the service create params
func (*ServiceCreateParams) WithContext ¶
func (o *ServiceCreateParams) WithContext(ctx context.Context) *ServiceCreateParams
WithContext adds the context to the service create params
func (*ServiceCreateParams) WithHTTPClient ¶
func (o *ServiceCreateParams) WithHTTPClient(client *http.Client) *ServiceCreateParams
WithHTTPClient adds the HTTPClient to the service create params
func (*ServiceCreateParams) WithTimeout ¶
func (o *ServiceCreateParams) WithTimeout(timeout time.Duration) *ServiceCreateParams
WithTimeout adds the timeout to the service create params
func (*ServiceCreateParams) WithXRegistryAuth ¶
func (o *ServiceCreateParams) WithXRegistryAuth(xRegistryAuth *string) *ServiceCreateParams
WithXRegistryAuth adds the xRegistryAuth to the service create params
func (*ServiceCreateParams) WriteToRequest ¶
func (o *ServiceCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceCreateReader ¶
type ServiceCreateReader struct {
// contains filtered or unexported fields
}
ServiceCreateReader is a Reader for the ServiceCreate structure.
func (*ServiceCreateReader) ReadResponse ¶
func (o *ServiceCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServiceCreateServiceUnavailable ¶
type ServiceCreateServiceUnavailable struct {
}ServiceCreateServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewServiceCreateServiceUnavailable ¶
func NewServiceCreateServiceUnavailable() *ServiceCreateServiceUnavailable
NewServiceCreateServiceUnavailable creates a ServiceCreateServiceUnavailable with default headers values
func (*ServiceCreateServiceUnavailable) Error ¶
func (o *ServiceCreateServiceUnavailable) Error() string
type ServiceDeleteInternalServerError ¶
type ServiceDeleteInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceDeleteInternalServerError handles this case with default header values.
server error
func NewServiceDeleteInternalServerError ¶
func NewServiceDeleteInternalServerError() *ServiceDeleteInternalServerError
NewServiceDeleteInternalServerError creates a ServiceDeleteInternalServerError with default headers values
func (*ServiceDeleteInternalServerError) Error ¶
func (o *ServiceDeleteInternalServerError) Error() string
type ServiceDeleteNotFound ¶
type ServiceDeleteNotFound struct {
Payload *models.ErrorResponse
}
ServiceDeleteNotFound handles this case with default header values.
no such service
func NewServiceDeleteNotFound ¶
func NewServiceDeleteNotFound() *ServiceDeleteNotFound
NewServiceDeleteNotFound creates a ServiceDeleteNotFound with default headers values
func (*ServiceDeleteNotFound) Error ¶
func (o *ServiceDeleteNotFound) Error() string
type ServiceDeleteOK ¶
type ServiceDeleteOK struct { }
ServiceDeleteOK handles this case with default header values.
no error
func NewServiceDeleteOK ¶
func NewServiceDeleteOK() *ServiceDeleteOK
NewServiceDeleteOK creates a ServiceDeleteOK with default headers values
func (*ServiceDeleteOK) Error ¶
func (o *ServiceDeleteOK) Error() string
type ServiceDeleteParams ¶
type ServiceDeleteParams struct { /*ID ID or name of service. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceDeleteParams contains all the parameters to send to the API endpoint for the service delete operation typically these are written to a http.Request
func NewServiceDeleteParams ¶
func NewServiceDeleteParams() *ServiceDeleteParams
NewServiceDeleteParams creates a new ServiceDeleteParams object with the default values initialized.
func NewServiceDeleteParamsWithContext ¶
func NewServiceDeleteParamsWithContext(ctx context.Context) *ServiceDeleteParams
NewServiceDeleteParamsWithContext creates a new ServiceDeleteParams object with the default values initialized, and the ability to set a context for a request
func NewServiceDeleteParamsWithHTTPClient ¶
func NewServiceDeleteParamsWithHTTPClient(client *http.Client) *ServiceDeleteParams
NewServiceDeleteParamsWithHTTPClient creates a new ServiceDeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewServiceDeleteParamsWithTimeout ¶
func NewServiceDeleteParamsWithTimeout(timeout time.Duration) *ServiceDeleteParams
NewServiceDeleteParamsWithTimeout creates a new ServiceDeleteParams object with the default values initialized, and the ability to set a timeout on a request
func (*ServiceDeleteParams) SetContext ¶
func (o *ServiceDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the service delete params
func (*ServiceDeleteParams) SetHTTPClient ¶
func (o *ServiceDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service delete params
func (*ServiceDeleteParams) SetID ¶
func (o *ServiceDeleteParams) SetID(id string)
SetID adds the id to the service delete params
func (*ServiceDeleteParams) SetTimeout ¶
func (o *ServiceDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service delete params
func (*ServiceDeleteParams) WithContext ¶
func (o *ServiceDeleteParams) WithContext(ctx context.Context) *ServiceDeleteParams
WithContext adds the context to the service delete params
func (*ServiceDeleteParams) WithHTTPClient ¶
func (o *ServiceDeleteParams) WithHTTPClient(client *http.Client) *ServiceDeleteParams
WithHTTPClient adds the HTTPClient to the service delete params
func (*ServiceDeleteParams) WithID ¶
func (o *ServiceDeleteParams) WithID(id string) *ServiceDeleteParams
WithID adds the id to the service delete params
func (*ServiceDeleteParams) WithTimeout ¶
func (o *ServiceDeleteParams) WithTimeout(timeout time.Duration) *ServiceDeleteParams
WithTimeout adds the timeout to the service delete params
func (*ServiceDeleteParams) WriteToRequest ¶
func (o *ServiceDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceDeleteReader ¶
type ServiceDeleteReader struct {
// contains filtered or unexported fields
}
ServiceDeleteReader is a Reader for the ServiceDelete structure.
func (*ServiceDeleteReader) ReadResponse ¶
func (o *ServiceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServiceDeleteServiceUnavailable ¶
type ServiceDeleteServiceUnavailable struct {
}ServiceDeleteServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewServiceDeleteServiceUnavailable ¶
func NewServiceDeleteServiceUnavailable() *ServiceDeleteServiceUnavailable
NewServiceDeleteServiceUnavailable creates a ServiceDeleteServiceUnavailable with default headers values
func (*ServiceDeleteServiceUnavailable) Error ¶
func (o *ServiceDeleteServiceUnavailable) Error() string
type ServiceInspectInternalServerError ¶
type ServiceInspectInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceInspectInternalServerError handles this case with default header values.
server error
func NewServiceInspectInternalServerError ¶
func NewServiceInspectInternalServerError() *ServiceInspectInternalServerError
NewServiceInspectInternalServerError creates a ServiceInspectInternalServerError with default headers values
func (*ServiceInspectInternalServerError) Error ¶
func (o *ServiceInspectInternalServerError) Error() string
type ServiceInspectNotFound ¶
type ServiceInspectNotFound struct {
Payload *models.ErrorResponse
}
ServiceInspectNotFound handles this case with default header values.
no such service
func NewServiceInspectNotFound ¶
func NewServiceInspectNotFound() *ServiceInspectNotFound
NewServiceInspectNotFound creates a ServiceInspectNotFound with default headers values
func (*ServiceInspectNotFound) Error ¶
func (o *ServiceInspectNotFound) Error() string
type ServiceInspectOK ¶
ServiceInspectOK handles this case with default header values.
no error
func NewServiceInspectOK ¶
func NewServiceInspectOK() *ServiceInspectOK
NewServiceInspectOK creates a ServiceInspectOK with default headers values
func (*ServiceInspectOK) Error ¶
func (o *ServiceInspectOK) Error() string
type ServiceInspectParams ¶
type ServiceInspectParams struct { /*ID ID or name of service. */ ID string /*InsertDefaults Fill empty fields with default values. */ InsertDefaults *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceInspectParams contains all the parameters to send to the API endpoint for the service inspect operation typically these are written to a http.Request
func NewServiceInspectParams ¶
func NewServiceInspectParams() *ServiceInspectParams
NewServiceInspectParams creates a new ServiceInspectParams object with the default values initialized.
func NewServiceInspectParamsWithContext ¶
func NewServiceInspectParamsWithContext(ctx context.Context) *ServiceInspectParams
NewServiceInspectParamsWithContext creates a new ServiceInspectParams object with the default values initialized, and the ability to set a context for a request
func NewServiceInspectParamsWithHTTPClient ¶
func NewServiceInspectParamsWithHTTPClient(client *http.Client) *ServiceInspectParams
NewServiceInspectParamsWithHTTPClient creates a new ServiceInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewServiceInspectParamsWithTimeout ¶
func NewServiceInspectParamsWithTimeout(timeout time.Duration) *ServiceInspectParams
NewServiceInspectParamsWithTimeout creates a new ServiceInspectParams object with the default values initialized, and the ability to set a timeout on a request
func (*ServiceInspectParams) SetContext ¶
func (o *ServiceInspectParams) SetContext(ctx context.Context)
SetContext adds the context to the service inspect params
func (*ServiceInspectParams) SetHTTPClient ¶
func (o *ServiceInspectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service inspect params
func (*ServiceInspectParams) SetID ¶
func (o *ServiceInspectParams) SetID(id string)
SetID adds the id to the service inspect params
func (*ServiceInspectParams) SetInsertDefaults ¶
func (o *ServiceInspectParams) SetInsertDefaults(insertDefaults *bool)
SetInsertDefaults adds the insertDefaults to the service inspect params
func (*ServiceInspectParams) SetTimeout ¶
func (o *ServiceInspectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service inspect params
func (*ServiceInspectParams) WithContext ¶
func (o *ServiceInspectParams) WithContext(ctx context.Context) *ServiceInspectParams
WithContext adds the context to the service inspect params
func (*ServiceInspectParams) WithHTTPClient ¶
func (o *ServiceInspectParams) WithHTTPClient(client *http.Client) *ServiceInspectParams
WithHTTPClient adds the HTTPClient to the service inspect params
func (*ServiceInspectParams) WithID ¶
func (o *ServiceInspectParams) WithID(id string) *ServiceInspectParams
WithID adds the id to the service inspect params
func (*ServiceInspectParams) WithInsertDefaults ¶
func (o *ServiceInspectParams) WithInsertDefaults(insertDefaults *bool) *ServiceInspectParams
WithInsertDefaults adds the insertDefaults to the service inspect params
func (*ServiceInspectParams) WithTimeout ¶
func (o *ServiceInspectParams) WithTimeout(timeout time.Duration) *ServiceInspectParams
WithTimeout adds the timeout to the service inspect params
func (*ServiceInspectParams) WriteToRequest ¶
func (o *ServiceInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceInspectReader ¶
type ServiceInspectReader struct {
// contains filtered or unexported fields
}
ServiceInspectReader is a Reader for the ServiceInspect structure.
func (*ServiceInspectReader) ReadResponse ¶
func (o *ServiceInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServiceInspectServiceUnavailable ¶
type ServiceInspectServiceUnavailable struct {
}ServiceInspectServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewServiceInspectServiceUnavailable ¶
func NewServiceInspectServiceUnavailable() *ServiceInspectServiceUnavailable
NewServiceInspectServiceUnavailable creates a ServiceInspectServiceUnavailable with default headers values
func (*ServiceInspectServiceUnavailable) Error ¶
func (o *ServiceInspectServiceUnavailable) Error() string
type ServiceListInternalServerError ¶
type ServiceListInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceListInternalServerError handles this case with default header values.
server error
func NewServiceListInternalServerError ¶
func NewServiceListInternalServerError() *ServiceListInternalServerError
NewServiceListInternalServerError creates a ServiceListInternalServerError with default headers values
func (*ServiceListInternalServerError) Error ¶
func (o *ServiceListInternalServerError) Error() string
type ServiceListOK ¶
type ServiceListOK struct {
Payload models.ServiceListOKBody
}
ServiceListOK handles this case with default header values.
no error
func NewServiceListOK ¶
func NewServiceListOK() *ServiceListOK
NewServiceListOK creates a ServiceListOK with default headers values
func (*ServiceListOK) Error ¶
func (o *ServiceListOK) Error() string
type ServiceListParams ¶
type ServiceListParams struct { /*Filters A JSON encoded value of the filters (a `map[string][]string`) to process on the services list. Available filters: - `id=<service id>` - `label=<service label>` - `mode=["replicated"|"global"]` - `name=<service name>` */ Filters *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceListParams contains all the parameters to send to the API endpoint for the service list operation typically these are written to a http.Request
func NewServiceListParams ¶
func NewServiceListParams() *ServiceListParams
NewServiceListParams creates a new ServiceListParams object with the default values initialized.
func NewServiceListParamsWithContext ¶
func NewServiceListParamsWithContext(ctx context.Context) *ServiceListParams
NewServiceListParamsWithContext creates a new ServiceListParams object with the default values initialized, and the ability to set a context for a request
func NewServiceListParamsWithHTTPClient ¶
func NewServiceListParamsWithHTTPClient(client *http.Client) *ServiceListParams
NewServiceListParamsWithHTTPClient creates a new ServiceListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewServiceListParamsWithTimeout ¶
func NewServiceListParamsWithTimeout(timeout time.Duration) *ServiceListParams
NewServiceListParamsWithTimeout creates a new ServiceListParams object with the default values initialized, and the ability to set a timeout on a request
func (*ServiceListParams) SetContext ¶
func (o *ServiceListParams) SetContext(ctx context.Context)
SetContext adds the context to the service list params
func (*ServiceListParams) SetFilters ¶
func (o *ServiceListParams) SetFilters(filters *string)
SetFilters adds the filters to the service list params
func (*ServiceListParams) SetHTTPClient ¶
func (o *ServiceListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service list params
func (*ServiceListParams) SetTimeout ¶
func (o *ServiceListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service list params
func (*ServiceListParams) WithContext ¶
func (o *ServiceListParams) WithContext(ctx context.Context) *ServiceListParams
WithContext adds the context to the service list params
func (*ServiceListParams) WithFilters ¶
func (o *ServiceListParams) WithFilters(filters *string) *ServiceListParams
WithFilters adds the filters to the service list params
func (*ServiceListParams) WithHTTPClient ¶
func (o *ServiceListParams) WithHTTPClient(client *http.Client) *ServiceListParams
WithHTTPClient adds the HTTPClient to the service list params
func (*ServiceListParams) WithTimeout ¶
func (o *ServiceListParams) WithTimeout(timeout time.Duration) *ServiceListParams
WithTimeout adds the timeout to the service list params
func (*ServiceListParams) WriteToRequest ¶
func (o *ServiceListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceListReader ¶
type ServiceListReader struct {
// contains filtered or unexported fields
}
ServiceListReader is a Reader for the ServiceList structure.
func (*ServiceListReader) ReadResponse ¶
func (o *ServiceListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServiceListServiceUnavailable ¶
type ServiceListServiceUnavailable struct {
}ServiceListServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewServiceListServiceUnavailable ¶
func NewServiceListServiceUnavailable() *ServiceListServiceUnavailable
NewServiceListServiceUnavailable creates a ServiceListServiceUnavailable with default headers values
func (*ServiceListServiceUnavailable) Error ¶
func (o *ServiceListServiceUnavailable) Error() string
type ServiceLogsInternalServerError ¶
type ServiceLogsInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceLogsInternalServerError handles this case with default header values.
server error
func NewServiceLogsInternalServerError ¶
func NewServiceLogsInternalServerError() *ServiceLogsInternalServerError
NewServiceLogsInternalServerError creates a ServiceLogsInternalServerError with default headers values
func (*ServiceLogsInternalServerError) Error ¶
func (o *ServiceLogsInternalServerError) Error() string
type ServiceLogsNotFound ¶
type ServiceLogsNotFound struct {
Payload *models.ErrorResponse
}
ServiceLogsNotFound handles this case with default header values.
no such service
func NewServiceLogsNotFound ¶
func NewServiceLogsNotFound() *ServiceLogsNotFound
NewServiceLogsNotFound creates a ServiceLogsNotFound with default headers values
func (*ServiceLogsNotFound) Error ¶
func (o *ServiceLogsNotFound) Error() string
type ServiceLogsOK ¶
type ServiceLogsOK struct {
Payload string
}
ServiceLogsOK handles this case with default header values.
logs returned as a string in response body
func NewServiceLogsOK ¶
func NewServiceLogsOK() *ServiceLogsOK
NewServiceLogsOK creates a ServiceLogsOK with default headers values
func (*ServiceLogsOK) Error ¶
func (o *ServiceLogsOK) Error() string
type ServiceLogsParams ¶
type ServiceLogsParams struct { /*Details Show service context and extra details provided to logs. */ Details *bool /*Follow Return the logs as a stream. This will return a `101` HTTP response with a `Connection: upgrade` header, then hijack the HTTP connection to send raw output. For more information about hijacking and the stream format, [see the documentation for the attach endpoint](#operation/ContainerAttach). */ Follow *bool /*ID ID or name of the service */ ID string /*Since Only return logs since this time, as a UNIX timestamp */ Since *int64 /*Stderr Return logs from `stderr` */ Stderr *bool /*Stdout Return logs from `stdout` */ Stdout *bool /*Tail Only return this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines. */ Tail *string /*Timestamps Add timestamps to every log line */ Timestamps *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceLogsParams contains all the parameters to send to the API endpoint for the service logs operation typically these are written to a http.Request
func NewServiceLogsParams ¶
func NewServiceLogsParams() *ServiceLogsParams
NewServiceLogsParams creates a new ServiceLogsParams object with the default values initialized.
func NewServiceLogsParamsWithContext ¶
func NewServiceLogsParamsWithContext(ctx context.Context) *ServiceLogsParams
NewServiceLogsParamsWithContext creates a new ServiceLogsParams object with the default values initialized, and the ability to set a context for a request
func NewServiceLogsParamsWithHTTPClient ¶
func NewServiceLogsParamsWithHTTPClient(client *http.Client) *ServiceLogsParams
NewServiceLogsParamsWithHTTPClient creates a new ServiceLogsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewServiceLogsParamsWithTimeout ¶
func NewServiceLogsParamsWithTimeout(timeout time.Duration) *ServiceLogsParams
NewServiceLogsParamsWithTimeout creates a new ServiceLogsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ServiceLogsParams) SetContext ¶
func (o *ServiceLogsParams) SetContext(ctx context.Context)
SetContext adds the context to the service logs params
func (*ServiceLogsParams) SetDetails ¶
func (o *ServiceLogsParams) SetDetails(details *bool)
SetDetails adds the details to the service logs params
func (*ServiceLogsParams) SetFollow ¶
func (o *ServiceLogsParams) SetFollow(follow *bool)
SetFollow adds the follow to the service logs params
func (*ServiceLogsParams) SetHTTPClient ¶
func (o *ServiceLogsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service logs params
func (*ServiceLogsParams) SetID ¶
func (o *ServiceLogsParams) SetID(id string)
SetID adds the id to the service logs params
func (*ServiceLogsParams) SetSince ¶
func (o *ServiceLogsParams) SetSince(since *int64)
SetSince adds the since to the service logs params
func (*ServiceLogsParams) SetStderr ¶
func (o *ServiceLogsParams) SetStderr(stderr *bool)
SetStderr adds the stderr to the service logs params
func (*ServiceLogsParams) SetStdout ¶
func (o *ServiceLogsParams) SetStdout(stdout *bool)
SetStdout adds the stdout to the service logs params
func (*ServiceLogsParams) SetTail ¶
func (o *ServiceLogsParams) SetTail(tail *string)
SetTail adds the tail to the service logs params
func (*ServiceLogsParams) SetTimeout ¶
func (o *ServiceLogsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service logs params
func (*ServiceLogsParams) SetTimestamps ¶
func (o *ServiceLogsParams) SetTimestamps(timestamps *bool)
SetTimestamps adds the timestamps to the service logs params
func (*ServiceLogsParams) WithContext ¶
func (o *ServiceLogsParams) WithContext(ctx context.Context) *ServiceLogsParams
WithContext adds the context to the service logs params
func (*ServiceLogsParams) WithDetails ¶
func (o *ServiceLogsParams) WithDetails(details *bool) *ServiceLogsParams
WithDetails adds the details to the service logs params
func (*ServiceLogsParams) WithFollow ¶
func (o *ServiceLogsParams) WithFollow(follow *bool) *ServiceLogsParams
WithFollow adds the follow to the service logs params
func (*ServiceLogsParams) WithHTTPClient ¶
func (o *ServiceLogsParams) WithHTTPClient(client *http.Client) *ServiceLogsParams
WithHTTPClient adds the HTTPClient to the service logs params
func (*ServiceLogsParams) WithID ¶
func (o *ServiceLogsParams) WithID(id string) *ServiceLogsParams
WithID adds the id to the service logs params
func (*ServiceLogsParams) WithSince ¶
func (o *ServiceLogsParams) WithSince(since *int64) *ServiceLogsParams
WithSince adds the since to the service logs params
func (*ServiceLogsParams) WithStderr ¶
func (o *ServiceLogsParams) WithStderr(stderr *bool) *ServiceLogsParams
WithStderr adds the stderr to the service logs params
func (*ServiceLogsParams) WithStdout ¶
func (o *ServiceLogsParams) WithStdout(stdout *bool) *ServiceLogsParams
WithStdout adds the stdout to the service logs params
func (*ServiceLogsParams) WithTail ¶
func (o *ServiceLogsParams) WithTail(tail *string) *ServiceLogsParams
WithTail adds the tail to the service logs params
func (*ServiceLogsParams) WithTimeout ¶
func (o *ServiceLogsParams) WithTimeout(timeout time.Duration) *ServiceLogsParams
WithTimeout adds the timeout to the service logs params
func (*ServiceLogsParams) WithTimestamps ¶
func (o *ServiceLogsParams) WithTimestamps(timestamps *bool) *ServiceLogsParams
WithTimestamps adds the timestamps to the service logs params
func (*ServiceLogsParams) WriteToRequest ¶
func (o *ServiceLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceLogsReader ¶
type ServiceLogsReader struct {
// contains filtered or unexported fields
}
ServiceLogsReader is a Reader for the ServiceLogs structure.
func (*ServiceLogsReader) ReadResponse ¶
func (o *ServiceLogsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServiceLogsServiceUnavailable ¶
type ServiceLogsServiceUnavailable struct {
}ServiceLogsServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewServiceLogsServiceUnavailable ¶
func NewServiceLogsServiceUnavailable() *ServiceLogsServiceUnavailable
NewServiceLogsServiceUnavailable creates a ServiceLogsServiceUnavailable with default headers values
func (*ServiceLogsServiceUnavailable) Error ¶
func (o *ServiceLogsServiceUnavailable) Error() string
type ServiceLogsSwitchingProtocols ¶
ServiceLogsSwitchingProtocols handles this case with default header values.
logs returned as a stream
func NewServiceLogsSwitchingProtocols ¶
func NewServiceLogsSwitchingProtocols(writer io.Writer) *ServiceLogsSwitchingProtocols
NewServiceLogsSwitchingProtocols creates a ServiceLogsSwitchingProtocols with default headers values
func (*ServiceLogsSwitchingProtocols) Error ¶
func (o *ServiceLogsSwitchingProtocols) Error() string
type ServiceUpdateBadRequest ¶
type ServiceUpdateBadRequest struct {
Payload *models.ErrorResponse
}
ServiceUpdateBadRequest handles this case with default header values.
bad parameter
func NewServiceUpdateBadRequest ¶
func NewServiceUpdateBadRequest() *ServiceUpdateBadRequest
NewServiceUpdateBadRequest creates a ServiceUpdateBadRequest with default headers values
func (*ServiceUpdateBadRequest) Error ¶
func (o *ServiceUpdateBadRequest) Error() string
type ServiceUpdateInternalServerError ¶
type ServiceUpdateInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceUpdateInternalServerError handles this case with default header values.
server error
func NewServiceUpdateInternalServerError ¶
func NewServiceUpdateInternalServerError() *ServiceUpdateInternalServerError
NewServiceUpdateInternalServerError creates a ServiceUpdateInternalServerError with default headers values
func (*ServiceUpdateInternalServerError) Error ¶
func (o *ServiceUpdateInternalServerError) Error() string
type ServiceUpdateNotFound ¶
type ServiceUpdateNotFound struct {
Payload *models.ErrorResponse
}
ServiceUpdateNotFound handles this case with default header values.
no such service
func NewServiceUpdateNotFound ¶
func NewServiceUpdateNotFound() *ServiceUpdateNotFound
NewServiceUpdateNotFound creates a ServiceUpdateNotFound with default headers values
func (*ServiceUpdateNotFound) Error ¶
func (o *ServiceUpdateNotFound) Error() string
type ServiceUpdateOK ¶
type ServiceUpdateOK struct {
Payload *models.ServiceUpdateResponse
}
ServiceUpdateOK handles this case with default header values.
no error
func NewServiceUpdateOK ¶
func NewServiceUpdateOK() *ServiceUpdateOK
NewServiceUpdateOK creates a ServiceUpdateOK with default headers values
func (*ServiceUpdateOK) Error ¶
func (o *ServiceUpdateOK) Error() string
type ServiceUpdateParams ¶
type ServiceUpdateParams struct { /*XRegistryAuth A base64-encoded auth configuration for pulling from private registries. [See the authentication section for details.](#section/Authentication) */ XRegistryAuth *string /*Body*/ Body *models.ServiceUpdateParamsBody /*ID ID or name of service. */ ID string /*RegistryAuthFrom If the X-Registry-Auth header is not specified, this parameter indicates where to find registry authorization credentials. The valid values are `spec` and `previous-spec`. */ RegistryAuthFrom *string /*Rollback Set to this parameter to `previous` to cause a server-side rollback to the previous service spec. The supplied spec will be ignored in this case. */ Rollback *string /*Version The version number of the service object being updated. This is required to avoid conflicting writes. */ Version int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceUpdateParams contains all the parameters to send to the API endpoint for the service update operation typically these are written to a http.Request
func NewServiceUpdateParams ¶
func NewServiceUpdateParams() *ServiceUpdateParams
NewServiceUpdateParams creates a new ServiceUpdateParams object with the default values initialized.
func NewServiceUpdateParamsWithContext ¶
func NewServiceUpdateParamsWithContext(ctx context.Context) *ServiceUpdateParams
NewServiceUpdateParamsWithContext creates a new ServiceUpdateParams object with the default values initialized, and the ability to set a context for a request
func NewServiceUpdateParamsWithHTTPClient ¶
func NewServiceUpdateParamsWithHTTPClient(client *http.Client) *ServiceUpdateParams
NewServiceUpdateParamsWithHTTPClient creates a new ServiceUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewServiceUpdateParamsWithTimeout ¶
func NewServiceUpdateParamsWithTimeout(timeout time.Duration) *ServiceUpdateParams
NewServiceUpdateParamsWithTimeout creates a new ServiceUpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*ServiceUpdateParams) SetBody ¶
func (o *ServiceUpdateParams) SetBody(body *models.ServiceUpdateParamsBody)
SetBody adds the body to the service update params
func (*ServiceUpdateParams) SetContext ¶
func (o *ServiceUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the service update params
func (*ServiceUpdateParams) SetHTTPClient ¶
func (o *ServiceUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service update params
func (*ServiceUpdateParams) SetID ¶
func (o *ServiceUpdateParams) SetID(id string)
SetID adds the id to the service update params
func (*ServiceUpdateParams) SetRegistryAuthFrom ¶
func (o *ServiceUpdateParams) SetRegistryAuthFrom(registryAuthFrom *string)
SetRegistryAuthFrom adds the registryAuthFrom to the service update params
func (*ServiceUpdateParams) SetRollback ¶
func (o *ServiceUpdateParams) SetRollback(rollback *string)
SetRollback adds the rollback to the service update params
func (*ServiceUpdateParams) SetTimeout ¶
func (o *ServiceUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service update params
func (*ServiceUpdateParams) SetVersion ¶
func (o *ServiceUpdateParams) SetVersion(version int64)
SetVersion adds the version to the service update params
func (*ServiceUpdateParams) SetXRegistryAuth ¶
func (o *ServiceUpdateParams) SetXRegistryAuth(xRegistryAuth *string)
SetXRegistryAuth adds the xRegistryAuth to the service update params
func (*ServiceUpdateParams) WithBody ¶
func (o *ServiceUpdateParams) WithBody(body *models.ServiceUpdateParamsBody) *ServiceUpdateParams
WithBody adds the body to the service update params
func (*ServiceUpdateParams) WithContext ¶
func (o *ServiceUpdateParams) WithContext(ctx context.Context) *ServiceUpdateParams
WithContext adds the context to the service update params
func (*ServiceUpdateParams) WithHTTPClient ¶
func (o *ServiceUpdateParams) WithHTTPClient(client *http.Client) *ServiceUpdateParams
WithHTTPClient adds the HTTPClient to the service update params
func (*ServiceUpdateParams) WithID ¶
func (o *ServiceUpdateParams) WithID(id string) *ServiceUpdateParams
WithID adds the id to the service update params
func (*ServiceUpdateParams) WithRegistryAuthFrom ¶
func (o *ServiceUpdateParams) WithRegistryAuthFrom(registryAuthFrom *string) *ServiceUpdateParams
WithRegistryAuthFrom adds the registryAuthFrom to the service update params
func (*ServiceUpdateParams) WithRollback ¶
func (o *ServiceUpdateParams) WithRollback(rollback *string) *ServiceUpdateParams
WithRollback adds the rollback to the service update params
func (*ServiceUpdateParams) WithTimeout ¶
func (o *ServiceUpdateParams) WithTimeout(timeout time.Duration) *ServiceUpdateParams
WithTimeout adds the timeout to the service update params
func (*ServiceUpdateParams) WithVersion ¶
func (o *ServiceUpdateParams) WithVersion(version int64) *ServiceUpdateParams
WithVersion adds the version to the service update params
func (*ServiceUpdateParams) WithXRegistryAuth ¶
func (o *ServiceUpdateParams) WithXRegistryAuth(xRegistryAuth *string) *ServiceUpdateParams
WithXRegistryAuth adds the xRegistryAuth to the service update params
func (*ServiceUpdateParams) WriteToRequest ¶
func (o *ServiceUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceUpdateReader ¶
type ServiceUpdateReader struct {
// contains filtered or unexported fields
}
ServiceUpdateReader is a Reader for the ServiceUpdate structure.
func (*ServiceUpdateReader) ReadResponse ¶
func (o *ServiceUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServiceUpdateServiceUnavailable ¶
type ServiceUpdateServiceUnavailable struct {
}ServiceUpdateServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewServiceUpdateServiceUnavailable ¶
func NewServiceUpdateServiceUnavailable() *ServiceUpdateServiceUnavailable
NewServiceUpdateServiceUnavailable creates a ServiceUpdateServiceUnavailable with default headers values
func (*ServiceUpdateServiceUnavailable) Error ¶
func (o *ServiceUpdateServiceUnavailable) Error() string
Source Files ¶
- service_client.go
- service_create_parameters.go
- service_create_responses.go
- service_delete_parameters.go
- service_delete_responses.go
- service_inspect_parameters.go
- service_inspect_responses.go
- service_list_parameters.go
- service_list_responses.go
- service_logs_parameters.go
- service_logs_responses.go
- service_update_parameters.go
- service_update_responses.go