Documentation
¶
Index ¶
- type Client
- func (a *Client) ServiceCreate(params *ServiceCreateParams, opts ...ClientOption) (*ServiceCreateCreated, error)
- func (a *Client) ServiceDelete(params *ServiceDeleteParams, opts ...ClientOption) (*ServiceDeleteOK, error)
- func (a *Client) ServiceInspect(params *ServiceInspectParams, opts ...ClientOption) (*ServiceInspectOK, error)
- func (a *Client) ServiceList(params *ServiceListParams, opts ...ClientOption) (*ServiceListOK, error)
- func (a *Client) ServiceLogs(params *ServiceLogsParams, writer io.Writer, opts ...ClientOption) (*ServiceLogsOK, error)
- func (a *Client) ServiceUpdate(params *ServiceUpdateParams, opts ...ClientOption) (*ServiceUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ServiceCreateBadRequest
- func (o *ServiceCreateBadRequest) Error() string
- func (o *ServiceCreateBadRequest) GetPayload() *models.ErrorResponse
- func (o *ServiceCreateBadRequest) IsClientError() bool
- func (o *ServiceCreateBadRequest) IsCode(code int) bool
- func (o *ServiceCreateBadRequest) IsRedirect() bool
- func (o *ServiceCreateBadRequest) IsServerError() bool
- func (o *ServiceCreateBadRequest) IsSuccess() bool
- func (o *ServiceCreateBadRequest) String() string
- type ServiceCreateBody
- func (o *ServiceCreateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ServiceCreateBody) MarshalBinary() ([]byte, error)
- func (o ServiceCreateBody) MarshalJSON() ([]byte, error)
- func (o *ServiceCreateBody) UnmarshalBinary(b []byte) error
- func (o *ServiceCreateBody) UnmarshalJSON(raw []byte) error
- func (o *ServiceCreateBody) Validate(formats strfmt.Registry) error
- type ServiceCreateConflict
- func (o *ServiceCreateConflict) Error() string
- func (o *ServiceCreateConflict) GetPayload() *models.ErrorResponse
- func (o *ServiceCreateConflict) IsClientError() bool
- func (o *ServiceCreateConflict) IsCode(code int) bool
- func (o *ServiceCreateConflict) IsRedirect() bool
- func (o *ServiceCreateConflict) IsServerError() bool
- func (o *ServiceCreateConflict) IsSuccess() bool
- func (o *ServiceCreateConflict) String() string
- type ServiceCreateCreated
- func (o *ServiceCreateCreated) Error() string
- func (o *ServiceCreateCreated) GetPayload() *ServiceCreateCreatedBody
- func (o *ServiceCreateCreated) IsClientError() bool
- func (o *ServiceCreateCreated) IsCode(code int) bool
- func (o *ServiceCreateCreated) IsRedirect() bool
- func (o *ServiceCreateCreated) IsServerError() bool
- func (o *ServiceCreateCreated) IsSuccess() bool
- func (o *ServiceCreateCreated) String() string
- type ServiceCreateCreatedBody
- func (o *ServiceCreateCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ServiceCreateCreatedBody) MarshalBinary() ([]byte, error)
- func (o *ServiceCreateCreatedBody) UnmarshalBinary(b []byte) error
- func (o *ServiceCreateCreatedBody) Validate(formats strfmt.Registry) error
- type ServiceCreateForbidden
- func (o *ServiceCreateForbidden) Error() string
- func (o *ServiceCreateForbidden) GetPayload() *models.ErrorResponse
- func (o *ServiceCreateForbidden) IsClientError() bool
- func (o *ServiceCreateForbidden) IsCode(code int) bool
- func (o *ServiceCreateForbidden) IsRedirect() bool
- func (o *ServiceCreateForbidden) IsServerError() bool
- func (o *ServiceCreateForbidden) IsSuccess() bool
- func (o *ServiceCreateForbidden) String() string
- type ServiceCreateInternalServerError
- func (o *ServiceCreateInternalServerError) Error() string
- func (o *ServiceCreateInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ServiceCreateInternalServerError) IsClientError() bool
- func (o *ServiceCreateInternalServerError) IsCode(code int) bool
- func (o *ServiceCreateInternalServerError) IsRedirect() bool
- func (o *ServiceCreateInternalServerError) IsServerError() bool
- func (o *ServiceCreateInternalServerError) IsSuccess() bool
- func (o *ServiceCreateInternalServerError) String() string
- type ServiceCreateParams
- func (o *ServiceCreateParams) SetBody(body ServiceCreateBody)
- func (o *ServiceCreateParams) SetContext(ctx context.Context)
- func (o *ServiceCreateParams) SetDefaults()
- 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 ServiceCreateBody) *ServiceCreateParams
- func (o *ServiceCreateParams) WithContext(ctx context.Context) *ServiceCreateParams
- func (o *ServiceCreateParams) WithDefaults() *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 ServiceCreateParamsBodyAllOf1
- type ServiceCreateReader
- type ServiceCreateServiceUnavailable
- func (o *ServiceCreateServiceUnavailable) Error() string
- func (o *ServiceCreateServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *ServiceCreateServiceUnavailable) IsClientError() bool
- func (o *ServiceCreateServiceUnavailable) IsCode(code int) bool
- func (o *ServiceCreateServiceUnavailable) IsRedirect() bool
- func (o *ServiceCreateServiceUnavailable) IsServerError() bool
- func (o *ServiceCreateServiceUnavailable) IsSuccess() bool
- func (o *ServiceCreateServiceUnavailable) String() string
- type ServiceDeleteInternalServerError
- func (o *ServiceDeleteInternalServerError) Error() string
- func (o *ServiceDeleteInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ServiceDeleteInternalServerError) IsClientError() bool
- func (o *ServiceDeleteInternalServerError) IsCode(code int) bool
- func (o *ServiceDeleteInternalServerError) IsRedirect() bool
- func (o *ServiceDeleteInternalServerError) IsServerError() bool
- func (o *ServiceDeleteInternalServerError) IsSuccess() bool
- func (o *ServiceDeleteInternalServerError) String() string
- type ServiceDeleteNotFound
- func (o *ServiceDeleteNotFound) Error() string
- func (o *ServiceDeleteNotFound) GetPayload() *models.ErrorResponse
- func (o *ServiceDeleteNotFound) IsClientError() bool
- func (o *ServiceDeleteNotFound) IsCode(code int) bool
- func (o *ServiceDeleteNotFound) IsRedirect() bool
- func (o *ServiceDeleteNotFound) IsServerError() bool
- func (o *ServiceDeleteNotFound) IsSuccess() bool
- func (o *ServiceDeleteNotFound) String() string
- type ServiceDeleteOK
- func (o *ServiceDeleteOK) Error() string
- func (o *ServiceDeleteOK) IsClientError() bool
- func (o *ServiceDeleteOK) IsCode(code int) bool
- func (o *ServiceDeleteOK) IsRedirect() bool
- func (o *ServiceDeleteOK) IsServerError() bool
- func (o *ServiceDeleteOK) IsSuccess() bool
- func (o *ServiceDeleteOK) String() string
- type ServiceDeleteParams
- func (o *ServiceDeleteParams) SetContext(ctx context.Context)
- func (o *ServiceDeleteParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *ServiceDeleteServiceUnavailable) Error() string
- func (o *ServiceDeleteServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *ServiceDeleteServiceUnavailable) IsClientError() bool
- func (o *ServiceDeleteServiceUnavailable) IsCode(code int) bool
- func (o *ServiceDeleteServiceUnavailable) IsRedirect() bool
- func (o *ServiceDeleteServiceUnavailable) IsServerError() bool
- func (o *ServiceDeleteServiceUnavailable) IsSuccess() bool
- func (o *ServiceDeleteServiceUnavailable) String() string
- type ServiceInspectInternalServerError
- func (o *ServiceInspectInternalServerError) Error() string
- func (o *ServiceInspectInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ServiceInspectInternalServerError) IsClientError() bool
- func (o *ServiceInspectInternalServerError) IsCode(code int) bool
- func (o *ServiceInspectInternalServerError) IsRedirect() bool
- func (o *ServiceInspectInternalServerError) IsServerError() bool
- func (o *ServiceInspectInternalServerError) IsSuccess() bool
- func (o *ServiceInspectInternalServerError) String() string
- type ServiceInspectNotFound
- func (o *ServiceInspectNotFound) Error() string
- func (o *ServiceInspectNotFound) GetPayload() *models.ErrorResponse
- func (o *ServiceInspectNotFound) IsClientError() bool
- func (o *ServiceInspectNotFound) IsCode(code int) bool
- func (o *ServiceInspectNotFound) IsRedirect() bool
- func (o *ServiceInspectNotFound) IsServerError() bool
- func (o *ServiceInspectNotFound) IsSuccess() bool
- func (o *ServiceInspectNotFound) String() string
- type ServiceInspectOK
- func (o *ServiceInspectOK) Error() string
- func (o *ServiceInspectOK) GetPayload() *models.Service
- func (o *ServiceInspectOK) IsClientError() bool
- func (o *ServiceInspectOK) IsCode(code int) bool
- func (o *ServiceInspectOK) IsRedirect() bool
- func (o *ServiceInspectOK) IsServerError() bool
- func (o *ServiceInspectOK) IsSuccess() bool
- func (o *ServiceInspectOK) String() string
- 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) SetDefaults()
- 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) WithDefaults() *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
- func (o *ServiceInspectServiceUnavailable) Error() string
- func (o *ServiceInspectServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *ServiceInspectServiceUnavailable) IsClientError() bool
- func (o *ServiceInspectServiceUnavailable) IsCode(code int) bool
- func (o *ServiceInspectServiceUnavailable) IsRedirect() bool
- func (o *ServiceInspectServiceUnavailable) IsServerError() bool
- func (o *ServiceInspectServiceUnavailable) IsSuccess() bool
- func (o *ServiceInspectServiceUnavailable) String() string
- type ServiceListInternalServerError
- func (o *ServiceListInternalServerError) Error() string
- func (o *ServiceListInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ServiceListInternalServerError) IsClientError() bool
- func (o *ServiceListInternalServerError) IsCode(code int) bool
- func (o *ServiceListInternalServerError) IsRedirect() bool
- func (o *ServiceListInternalServerError) IsServerError() bool
- func (o *ServiceListInternalServerError) IsSuccess() bool
- func (o *ServiceListInternalServerError) String() string
- type ServiceListOK
- func (o *ServiceListOK) Error() string
- func (o *ServiceListOK) GetPayload() []*models.Service
- func (o *ServiceListOK) IsClientError() bool
- func (o *ServiceListOK) IsCode(code int) bool
- func (o *ServiceListOK) IsRedirect() bool
- func (o *ServiceListOK) IsServerError() bool
- func (o *ServiceListOK) IsSuccess() bool
- func (o *ServiceListOK) String() string
- type ServiceListParams
- func (o *ServiceListParams) SetContext(ctx context.Context)
- func (o *ServiceListParams) SetDefaults()
- func (o *ServiceListParams) SetFilters(filters *string)
- func (o *ServiceListParams) SetHTTPClient(client *http.Client)
- func (o *ServiceListParams) SetStatus(status *bool)
- func (o *ServiceListParams) SetTimeout(timeout time.Duration)
- func (o *ServiceListParams) WithContext(ctx context.Context) *ServiceListParams
- func (o *ServiceListParams) WithDefaults() *ServiceListParams
- func (o *ServiceListParams) WithFilters(filters *string) *ServiceListParams
- func (o *ServiceListParams) WithHTTPClient(client *http.Client) *ServiceListParams
- func (o *ServiceListParams) WithStatus(status *bool) *ServiceListParams
- func (o *ServiceListParams) WithTimeout(timeout time.Duration) *ServiceListParams
- func (o *ServiceListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceListReader
- type ServiceListServiceUnavailable
- func (o *ServiceListServiceUnavailable) Error() string
- func (o *ServiceListServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *ServiceListServiceUnavailable) IsClientError() bool
- func (o *ServiceListServiceUnavailable) IsCode(code int) bool
- func (o *ServiceListServiceUnavailable) IsRedirect() bool
- func (o *ServiceListServiceUnavailable) IsServerError() bool
- func (o *ServiceListServiceUnavailable) IsSuccess() bool
- func (o *ServiceListServiceUnavailable) String() string
- type ServiceLogsInternalServerError
- func (o *ServiceLogsInternalServerError) Error() string
- func (o *ServiceLogsInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ServiceLogsInternalServerError) IsClientError() bool
- func (o *ServiceLogsInternalServerError) IsCode(code int) bool
- func (o *ServiceLogsInternalServerError) IsRedirect() bool
- func (o *ServiceLogsInternalServerError) IsServerError() bool
- func (o *ServiceLogsInternalServerError) IsSuccess() bool
- func (o *ServiceLogsInternalServerError) String() string
- type ServiceLogsNotFound
- func (o *ServiceLogsNotFound) Error() string
- func (o *ServiceLogsNotFound) GetPayload() *models.ErrorResponse
- func (o *ServiceLogsNotFound) IsClientError() bool
- func (o *ServiceLogsNotFound) IsCode(code int) bool
- func (o *ServiceLogsNotFound) IsRedirect() bool
- func (o *ServiceLogsNotFound) IsServerError() bool
- func (o *ServiceLogsNotFound) IsSuccess() bool
- func (o *ServiceLogsNotFound) String() string
- type ServiceLogsOK
- func (o *ServiceLogsOK) Error() string
- func (o *ServiceLogsOK) GetPayload() io.Writer
- func (o *ServiceLogsOK) IsClientError() bool
- func (o *ServiceLogsOK) IsCode(code int) bool
- func (o *ServiceLogsOK) IsRedirect() bool
- func (o *ServiceLogsOK) IsServerError() bool
- func (o *ServiceLogsOK) IsSuccess() bool
- func (o *ServiceLogsOK) String() string
- type ServiceLogsParams
- func (o *ServiceLogsParams) SetContext(ctx context.Context)
- func (o *ServiceLogsParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *ServiceLogsServiceUnavailable) Error() string
- func (o *ServiceLogsServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *ServiceLogsServiceUnavailable) IsClientError() bool
- func (o *ServiceLogsServiceUnavailable) IsCode(code int) bool
- func (o *ServiceLogsServiceUnavailable) IsRedirect() bool
- func (o *ServiceLogsServiceUnavailable) IsServerError() bool
- func (o *ServiceLogsServiceUnavailable) IsSuccess() bool
- func (o *ServiceLogsServiceUnavailable) String() string
- type ServiceUpdateBadRequest
- func (o *ServiceUpdateBadRequest) Error() string
- func (o *ServiceUpdateBadRequest) GetPayload() *models.ErrorResponse
- func (o *ServiceUpdateBadRequest) IsClientError() bool
- func (o *ServiceUpdateBadRequest) IsCode(code int) bool
- func (o *ServiceUpdateBadRequest) IsRedirect() bool
- func (o *ServiceUpdateBadRequest) IsServerError() bool
- func (o *ServiceUpdateBadRequest) IsSuccess() bool
- func (o *ServiceUpdateBadRequest) String() string
- type ServiceUpdateBody
- func (o *ServiceUpdateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ServiceUpdateBody) MarshalBinary() ([]byte, error)
- func (o ServiceUpdateBody) MarshalJSON() ([]byte, error)
- func (o *ServiceUpdateBody) UnmarshalBinary(b []byte) error
- func (o *ServiceUpdateBody) UnmarshalJSON(raw []byte) error
- func (o *ServiceUpdateBody) Validate(formats strfmt.Registry) error
- type ServiceUpdateInternalServerError
- func (o *ServiceUpdateInternalServerError) Error() string
- func (o *ServiceUpdateInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ServiceUpdateInternalServerError) IsClientError() bool
- func (o *ServiceUpdateInternalServerError) IsCode(code int) bool
- func (o *ServiceUpdateInternalServerError) IsRedirect() bool
- func (o *ServiceUpdateInternalServerError) IsServerError() bool
- func (o *ServiceUpdateInternalServerError) IsSuccess() bool
- func (o *ServiceUpdateInternalServerError) String() string
- type ServiceUpdateNotFound
- func (o *ServiceUpdateNotFound) Error() string
- func (o *ServiceUpdateNotFound) GetPayload() *models.ErrorResponse
- func (o *ServiceUpdateNotFound) IsClientError() bool
- func (o *ServiceUpdateNotFound) IsCode(code int) bool
- func (o *ServiceUpdateNotFound) IsRedirect() bool
- func (o *ServiceUpdateNotFound) IsServerError() bool
- func (o *ServiceUpdateNotFound) IsSuccess() bool
- func (o *ServiceUpdateNotFound) String() string
- type ServiceUpdateOK
- func (o *ServiceUpdateOK) Error() string
- func (o *ServiceUpdateOK) GetPayload() *models.ServiceUpdateResponse
- func (o *ServiceUpdateOK) IsClientError() bool
- func (o *ServiceUpdateOK) IsCode(code int) bool
- func (o *ServiceUpdateOK) IsRedirect() bool
- func (o *ServiceUpdateOK) IsServerError() bool
- func (o *ServiceUpdateOK) IsSuccess() bool
- func (o *ServiceUpdateOK) String() string
- type ServiceUpdateParams
- func (o *ServiceUpdateParams) SetBody(body ServiceUpdateBody)
- func (o *ServiceUpdateParams) SetContext(ctx context.Context)
- func (o *ServiceUpdateParams) SetDefaults()
- 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 ServiceUpdateBody) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithContext(ctx context.Context) *ServiceUpdateParams
- func (o *ServiceUpdateParams) WithDefaults() *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 ServiceUpdateParamsBodyAllOf1
- type ServiceUpdateReader
- type ServiceUpdateServiceUnavailable
- func (o *ServiceUpdateServiceUnavailable) Error() string
- func (o *ServiceUpdateServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *ServiceUpdateServiceUnavailable) IsClientError() bool
- func (o *ServiceUpdateServiceUnavailable) IsCode(code int) bool
- func (o *ServiceUpdateServiceUnavailable) IsRedirect() bool
- func (o *ServiceUpdateServiceUnavailable) IsServerError() bool
- func (o *ServiceUpdateServiceUnavailable) IsSuccess() bool
- func (o *ServiceUpdateServiceUnavailable) String() string
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 (*Client) ServiceCreate ¶
func (a *Client) ServiceCreate(params *ServiceCreateParams, opts ...ClientOption) (*ServiceCreateCreated, error)
ServiceCreate creates a service
func (*Client) ServiceDelete ¶
func (a *Client) ServiceDelete(params *ServiceDeleteParams, opts ...ClientOption) (*ServiceDeleteOK, error)
ServiceDelete deletes a service
func (*Client) ServiceInspect ¶
func (a *Client) ServiceInspect(params *ServiceInspectParams, opts ...ClientOption) (*ServiceInspectOK, error)
ServiceInspect inspects a service
func (*Client) ServiceList ¶
func (a *Client) ServiceList(params *ServiceListParams, opts ...ClientOption) (*ServiceListOK, error)
ServiceList lists services
func (*Client) ServiceLogs ¶
func (a *Client) ServiceLogs(params *ServiceLogsParams, writer io.Writer, opts ...ClientOption) (*ServiceLogsOK, error)
ServiceLogs gets service logs Get `stdout` and `stderr` logs from a service. See also [`/containers/{id}/logs`](#operation/ContainerLogs).
**Note**: This endpoint works only for services with the `local`, `json-file` or `journald` logging drivers.
func (*Client) ServiceUpdate ¶
func (a *Client) ServiceUpdate(params *ServiceUpdateParams, opts ...ClientOption) (*ServiceUpdateOK, error)
ServiceUpdate updates a service
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 { ServiceCreate(params *ServiceCreateParams, opts ...ClientOption) (*ServiceCreateCreated, error) ServiceDelete(params *ServiceDeleteParams, opts ...ClientOption) (*ServiceDeleteOK, error) ServiceInspect(params *ServiceInspectParams, opts ...ClientOption) (*ServiceInspectOK, error) ServiceList(params *ServiceListParams, opts ...ClientOption) (*ServiceListOK, error) ServiceLogs(params *ServiceLogsParams, writer io.Writer, opts ...ClientOption) (*ServiceLogsOK, error) ServiceUpdate(params *ServiceUpdateParams, opts ...ClientOption) (*ServiceUpdateOK, 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 service API client.
type ServiceCreateBadRequest ¶
type ServiceCreateBadRequest struct {
Payload *models.ErrorResponse
}
ServiceCreateBadRequest describes a response with status code 400, 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
func (*ServiceCreateBadRequest) GetPayload ¶
func (o *ServiceCreateBadRequest) GetPayload() *models.ErrorResponse
func (*ServiceCreateBadRequest) IsClientError ¶
func (o *ServiceCreateBadRequest) IsClientError() bool
IsClientError returns true when this service create bad request response has a 4xx status code
func (*ServiceCreateBadRequest) IsCode ¶
func (o *ServiceCreateBadRequest) IsCode(code int) bool
IsCode returns true when this service create bad request response a status code equal to that given
func (*ServiceCreateBadRequest) IsRedirect ¶
func (o *ServiceCreateBadRequest) IsRedirect() bool
IsRedirect returns true when this service create bad request response has a 3xx status code
func (*ServiceCreateBadRequest) IsServerError ¶
func (o *ServiceCreateBadRequest) IsServerError() bool
IsServerError returns true when this service create bad request response has a 5xx status code
func (*ServiceCreateBadRequest) IsSuccess ¶
func (o *ServiceCreateBadRequest) IsSuccess() bool
IsSuccess returns true when this service create bad request response has a 2xx status code
func (*ServiceCreateBadRequest) String ¶
func (o *ServiceCreateBadRequest) String() string
type ServiceCreateBody ¶
type ServiceCreateBody struct { models.ServiceSpec ServiceCreateParamsBodyAllOf1 }
ServiceCreateBody service create body swagger:model ServiceCreateBody
func (*ServiceCreateBody) ContextValidate ¶
ContextValidate validate this service create body based on the context it is used
func (*ServiceCreateBody) MarshalBinary ¶
func (o *ServiceCreateBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ServiceCreateBody) MarshalJSON ¶
func (o ServiceCreateBody) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*ServiceCreateBody) UnmarshalBinary ¶
func (o *ServiceCreateBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ServiceCreateBody) UnmarshalJSON ¶
func (o *ServiceCreateBody) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type ServiceCreateConflict ¶
type ServiceCreateConflict struct {
Payload *models.ErrorResponse
}
ServiceCreateConflict describes a response with status code 409, 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
func (*ServiceCreateConflict) GetPayload ¶
func (o *ServiceCreateConflict) GetPayload() *models.ErrorResponse
func (*ServiceCreateConflict) IsClientError ¶
func (o *ServiceCreateConflict) IsClientError() bool
IsClientError returns true when this service create conflict response has a 4xx status code
func (*ServiceCreateConflict) IsCode ¶
func (o *ServiceCreateConflict) IsCode(code int) bool
IsCode returns true when this service create conflict response a status code equal to that given
func (*ServiceCreateConflict) IsRedirect ¶
func (o *ServiceCreateConflict) IsRedirect() bool
IsRedirect returns true when this service create conflict response has a 3xx status code
func (*ServiceCreateConflict) IsServerError ¶
func (o *ServiceCreateConflict) IsServerError() bool
IsServerError returns true when this service create conflict response has a 5xx status code
func (*ServiceCreateConflict) IsSuccess ¶
func (o *ServiceCreateConflict) IsSuccess() bool
IsSuccess returns true when this service create conflict response has a 2xx status code
func (*ServiceCreateConflict) String ¶
func (o *ServiceCreateConflict) String() string
type ServiceCreateCreated ¶
type ServiceCreateCreated struct {
Payload *ServiceCreateCreatedBody
}
ServiceCreateCreated describes a response with status code 201, 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
func (*ServiceCreateCreated) GetPayload ¶
func (o *ServiceCreateCreated) GetPayload() *ServiceCreateCreatedBody
func (*ServiceCreateCreated) IsClientError ¶
func (o *ServiceCreateCreated) IsClientError() bool
IsClientError returns true when this service create created response has a 4xx status code
func (*ServiceCreateCreated) IsCode ¶
func (o *ServiceCreateCreated) IsCode(code int) bool
IsCode returns true when this service create created response a status code equal to that given
func (*ServiceCreateCreated) IsRedirect ¶
func (o *ServiceCreateCreated) IsRedirect() bool
IsRedirect returns true when this service create created response has a 3xx status code
func (*ServiceCreateCreated) IsServerError ¶
func (o *ServiceCreateCreated) IsServerError() bool
IsServerError returns true when this service create created response has a 5xx status code
func (*ServiceCreateCreated) IsSuccess ¶
func (o *ServiceCreateCreated) IsSuccess() bool
IsSuccess returns true when this service create created response has a 2xx status code
func (*ServiceCreateCreated) String ¶
func (o *ServiceCreateCreated) String() string
type ServiceCreateCreatedBody ¶
type ServiceCreateCreatedBody struct { // The ID of the created service. ID string `json:"ID,omitempty"` // Optional warning message Warning string `json:"Warning,omitempty"` }
ServiceCreateCreatedBody ServiceCreateResponse // Example: {"ID":"ak7w3gjqoa3kuz8xcpnyy0pvl","Warning":"unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"} swagger:model ServiceCreateCreatedBody
func (*ServiceCreateCreatedBody) ContextValidate ¶
func (o *ServiceCreateCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this service create created body based on context it is used
func (*ServiceCreateCreatedBody) MarshalBinary ¶
func (o *ServiceCreateCreatedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceCreateCreatedBody) UnmarshalBinary ¶
func (o *ServiceCreateCreatedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServiceCreateForbidden ¶
type ServiceCreateForbidden struct {
Payload *models.ErrorResponse
}
ServiceCreateForbidden describes a response with status code 403, 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
func (*ServiceCreateForbidden) GetPayload ¶
func (o *ServiceCreateForbidden) GetPayload() *models.ErrorResponse
func (*ServiceCreateForbidden) IsClientError ¶
func (o *ServiceCreateForbidden) IsClientError() bool
IsClientError returns true when this service create forbidden response has a 4xx status code
func (*ServiceCreateForbidden) IsCode ¶
func (o *ServiceCreateForbidden) IsCode(code int) bool
IsCode returns true when this service create forbidden response a status code equal to that given
func (*ServiceCreateForbidden) IsRedirect ¶
func (o *ServiceCreateForbidden) IsRedirect() bool
IsRedirect returns true when this service create forbidden response has a 3xx status code
func (*ServiceCreateForbidden) IsServerError ¶
func (o *ServiceCreateForbidden) IsServerError() bool
IsServerError returns true when this service create forbidden response has a 5xx status code
func (*ServiceCreateForbidden) IsSuccess ¶
func (o *ServiceCreateForbidden) IsSuccess() bool
IsSuccess returns true when this service create forbidden response has a 2xx status code
func (*ServiceCreateForbidden) String ¶
func (o *ServiceCreateForbidden) String() string
type ServiceCreateInternalServerError ¶
type ServiceCreateInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceCreateInternalServerError describes a response with status code 500, 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
func (*ServiceCreateInternalServerError) GetPayload ¶
func (o *ServiceCreateInternalServerError) GetPayload() *models.ErrorResponse
func (*ServiceCreateInternalServerError) IsClientError ¶
func (o *ServiceCreateInternalServerError) IsClientError() bool
IsClientError returns true when this service create internal server error response has a 4xx status code
func (*ServiceCreateInternalServerError) IsCode ¶
func (o *ServiceCreateInternalServerError) IsCode(code int) bool
IsCode returns true when this service create internal server error response a status code equal to that given
func (*ServiceCreateInternalServerError) IsRedirect ¶
func (o *ServiceCreateInternalServerError) IsRedirect() bool
IsRedirect returns true when this service create internal server error response has a 3xx status code
func (*ServiceCreateInternalServerError) IsServerError ¶
func (o *ServiceCreateInternalServerError) IsServerError() bool
IsServerError returns true when this service create internal server error response has a 5xx status code
func (*ServiceCreateInternalServerError) IsSuccess ¶
func (o *ServiceCreateInternalServerError) IsSuccess() bool
IsSuccess returns true when this service create internal server error response has a 2xx status code
func (*ServiceCreateInternalServerError) String ¶
func (o *ServiceCreateInternalServerError) String() 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 ServiceCreateBody 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 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 NewServiceCreateParamsWithContext ¶
func NewServiceCreateParamsWithContext(ctx context.Context) *ServiceCreateParams
NewServiceCreateParamsWithContext creates a new ServiceCreateParams object with 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 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 ability to set a timeout on a request.
func (*ServiceCreateParams) SetBody ¶
func (o *ServiceCreateParams) SetBody(body ServiceCreateBody)
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) SetDefaults ¶
func (o *ServiceCreateParams) SetDefaults()
SetDefaults hydrates default values in the service create params (not the query body).
All values with no default are reset to their zero value.
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 ServiceCreateBody) *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) WithDefaults ¶
func (o *ServiceCreateParams) WithDefaults() *ServiceCreateParams
WithDefaults hydrates default values in the service create params (not the query body).
All values with no default are reset to their zero value.
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 ServiceCreateParamsBodyAllOf1 ¶
type ServiceCreateParamsBodyAllOf1 interface{}
ServiceCreateParamsBodyAllOf1 service create params body all of1 // Example: {"EndpointSpec":{"Ports":[{"Protocol":"tcp","PublishedPort":8080,"TargetPort":80}]},"Labels":{"foo":"bar"},"Mode":{"Replicated":{"Replicas":4}},"Name":"web","RollbackConfig":{"Delay":1000000000,"FailureAction":"pause","MaxFailureRatio":0.15,"Monitor":15000000000,"Parallelism":1},"TaskTemplate":{"ContainerSpec":{"DNSConfig":{"Nameservers":["8.8.8.8"],"Options":["timeout:3"],"Search":["example.org"]},"Hosts":["10.10.10.10 host1","ABCD:EF01:2345:6789:ABCD:EF01:2345:6789 host2"],"Image":"nginx:alpine","Mounts":[{"ReadOnly":true,"Source":"web-data","Target":"/usr/share/nginx/html","Type":"volume","VolumeOptions":{"DriverConfig":{},"Labels":{"com.example.something":"something-value"}}}],"Secrets":[{"File":{"GID":"33","Mode":384,"Name":"www.example.org.key","UID":"33"},"SecretID":"fpjqlhnwb19zds35k8wn80lq9","SecretName":"example_org_domain_key"}],"User":"33"},"LogDriver":{"Name":"json-file","Options":{"max-file":"3","max-size":"10M"}},"Placement":{},"Resources":{"Limits":{"MemoryBytes":104857600},"Reservations":{}},"RestartPolicy":{"Condition":"on-failure","Delay":10000000000,"MaxAttempts":10}},"UpdateConfig":{"Delay":1000000000,"FailureAction":"pause","MaxFailureRatio":0.15,"Monitor":15000000000,"Parallelism":2}} swagger:model ServiceCreateParamsBodyAllOf1
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 describes a response with status code 503, 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
func (*ServiceCreateServiceUnavailable) GetPayload ¶
func (o *ServiceCreateServiceUnavailable) GetPayload() *models.ErrorResponse
func (*ServiceCreateServiceUnavailable) IsClientError ¶
func (o *ServiceCreateServiceUnavailable) IsClientError() bool
IsClientError returns true when this service create service unavailable response has a 4xx status code
func (*ServiceCreateServiceUnavailable) IsCode ¶
func (o *ServiceCreateServiceUnavailable) IsCode(code int) bool
IsCode returns true when this service create service unavailable response a status code equal to that given
func (*ServiceCreateServiceUnavailable) IsRedirect ¶
func (o *ServiceCreateServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this service create service unavailable response has a 3xx status code
func (*ServiceCreateServiceUnavailable) IsServerError ¶
func (o *ServiceCreateServiceUnavailable) IsServerError() bool
IsServerError returns true when this service create service unavailable response has a 5xx status code
func (*ServiceCreateServiceUnavailable) IsSuccess ¶
func (o *ServiceCreateServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this service create service unavailable response has a 2xx status code
func (*ServiceCreateServiceUnavailable) String ¶
func (o *ServiceCreateServiceUnavailable) String() string
type ServiceDeleteInternalServerError ¶
type ServiceDeleteInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceDeleteInternalServerError describes a response with status code 500, 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
func (*ServiceDeleteInternalServerError) GetPayload ¶
func (o *ServiceDeleteInternalServerError) GetPayload() *models.ErrorResponse
func (*ServiceDeleteInternalServerError) IsClientError ¶
func (o *ServiceDeleteInternalServerError) IsClientError() bool
IsClientError returns true when this service delete internal server error response has a 4xx status code
func (*ServiceDeleteInternalServerError) IsCode ¶
func (o *ServiceDeleteInternalServerError) IsCode(code int) bool
IsCode returns true when this service delete internal server error response a status code equal to that given
func (*ServiceDeleteInternalServerError) IsRedirect ¶
func (o *ServiceDeleteInternalServerError) IsRedirect() bool
IsRedirect returns true when this service delete internal server error response has a 3xx status code
func (*ServiceDeleteInternalServerError) IsServerError ¶
func (o *ServiceDeleteInternalServerError) IsServerError() bool
IsServerError returns true when this service delete internal server error response has a 5xx status code
func (*ServiceDeleteInternalServerError) IsSuccess ¶
func (o *ServiceDeleteInternalServerError) IsSuccess() bool
IsSuccess returns true when this service delete internal server error response has a 2xx status code
func (*ServiceDeleteInternalServerError) String ¶
func (o *ServiceDeleteInternalServerError) String() string
type ServiceDeleteNotFound ¶
type ServiceDeleteNotFound struct {
Payload *models.ErrorResponse
}
ServiceDeleteNotFound describes a response with status code 404, 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
func (*ServiceDeleteNotFound) GetPayload ¶
func (o *ServiceDeleteNotFound) GetPayload() *models.ErrorResponse
func (*ServiceDeleteNotFound) IsClientError ¶
func (o *ServiceDeleteNotFound) IsClientError() bool
IsClientError returns true when this service delete not found response has a 4xx status code
func (*ServiceDeleteNotFound) IsCode ¶
func (o *ServiceDeleteNotFound) IsCode(code int) bool
IsCode returns true when this service delete not found response a status code equal to that given
func (*ServiceDeleteNotFound) IsRedirect ¶
func (o *ServiceDeleteNotFound) IsRedirect() bool
IsRedirect returns true when this service delete not found response has a 3xx status code
func (*ServiceDeleteNotFound) IsServerError ¶
func (o *ServiceDeleteNotFound) IsServerError() bool
IsServerError returns true when this service delete not found response has a 5xx status code
func (*ServiceDeleteNotFound) IsSuccess ¶
func (o *ServiceDeleteNotFound) IsSuccess() bool
IsSuccess returns true when this service delete not found response has a 2xx status code
func (*ServiceDeleteNotFound) String ¶
func (o *ServiceDeleteNotFound) String() string
type ServiceDeleteOK ¶
type ServiceDeleteOK struct { }
ServiceDeleteOK describes a response with status code 200, 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
func (*ServiceDeleteOK) IsClientError ¶
func (o *ServiceDeleteOK) IsClientError() bool
IsClientError returns true when this service delete o k response has a 4xx status code
func (*ServiceDeleteOK) IsCode ¶
func (o *ServiceDeleteOK) IsCode(code int) bool
IsCode returns true when this service delete o k response a status code equal to that given
func (*ServiceDeleteOK) IsRedirect ¶
func (o *ServiceDeleteOK) IsRedirect() bool
IsRedirect returns true when this service delete o k response has a 3xx status code
func (*ServiceDeleteOK) IsServerError ¶
func (o *ServiceDeleteOK) IsServerError() bool
IsServerError returns true when this service delete o k response has a 5xx status code
func (*ServiceDeleteOK) IsSuccess ¶
func (o *ServiceDeleteOK) IsSuccess() bool
IsSuccess returns true when this service delete o k response has a 2xx status code
func (*ServiceDeleteOK) String ¶
func (o *ServiceDeleteOK) String() 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 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 NewServiceDeleteParamsWithContext ¶
func NewServiceDeleteParamsWithContext(ctx context.Context) *ServiceDeleteParams
NewServiceDeleteParamsWithContext creates a new ServiceDeleteParams object with 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 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 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) SetDefaults ¶
func (o *ServiceDeleteParams) SetDefaults()
SetDefaults hydrates default values in the service delete params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *ServiceDeleteParams) WithDefaults() *ServiceDeleteParams
WithDefaults hydrates default values in the service delete params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 503, 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
func (*ServiceDeleteServiceUnavailable) GetPayload ¶
func (o *ServiceDeleteServiceUnavailable) GetPayload() *models.ErrorResponse
func (*ServiceDeleteServiceUnavailable) IsClientError ¶
func (o *ServiceDeleteServiceUnavailable) IsClientError() bool
IsClientError returns true when this service delete service unavailable response has a 4xx status code
func (*ServiceDeleteServiceUnavailable) IsCode ¶
func (o *ServiceDeleteServiceUnavailable) IsCode(code int) bool
IsCode returns true when this service delete service unavailable response a status code equal to that given
func (*ServiceDeleteServiceUnavailable) IsRedirect ¶
func (o *ServiceDeleteServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this service delete service unavailable response has a 3xx status code
func (*ServiceDeleteServiceUnavailable) IsServerError ¶
func (o *ServiceDeleteServiceUnavailable) IsServerError() bool
IsServerError returns true when this service delete service unavailable response has a 5xx status code
func (*ServiceDeleteServiceUnavailable) IsSuccess ¶
func (o *ServiceDeleteServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this service delete service unavailable response has a 2xx status code
func (*ServiceDeleteServiceUnavailable) String ¶
func (o *ServiceDeleteServiceUnavailable) String() string
type ServiceInspectInternalServerError ¶
type ServiceInspectInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceInspectInternalServerError describes a response with status code 500, 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
func (*ServiceInspectInternalServerError) GetPayload ¶
func (o *ServiceInspectInternalServerError) GetPayload() *models.ErrorResponse
func (*ServiceInspectInternalServerError) IsClientError ¶
func (o *ServiceInspectInternalServerError) IsClientError() bool
IsClientError returns true when this service inspect internal server error response has a 4xx status code
func (*ServiceInspectInternalServerError) IsCode ¶
func (o *ServiceInspectInternalServerError) IsCode(code int) bool
IsCode returns true when this service inspect internal server error response a status code equal to that given
func (*ServiceInspectInternalServerError) IsRedirect ¶
func (o *ServiceInspectInternalServerError) IsRedirect() bool
IsRedirect returns true when this service inspect internal server error response has a 3xx status code
func (*ServiceInspectInternalServerError) IsServerError ¶
func (o *ServiceInspectInternalServerError) IsServerError() bool
IsServerError returns true when this service inspect internal server error response has a 5xx status code
func (*ServiceInspectInternalServerError) IsSuccess ¶
func (o *ServiceInspectInternalServerError) IsSuccess() bool
IsSuccess returns true when this service inspect internal server error response has a 2xx status code
func (*ServiceInspectInternalServerError) String ¶
func (o *ServiceInspectInternalServerError) String() string
type ServiceInspectNotFound ¶
type ServiceInspectNotFound struct {
Payload *models.ErrorResponse
}
ServiceInspectNotFound describes a response with status code 404, 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
func (*ServiceInspectNotFound) GetPayload ¶
func (o *ServiceInspectNotFound) GetPayload() *models.ErrorResponse
func (*ServiceInspectNotFound) IsClientError ¶
func (o *ServiceInspectNotFound) IsClientError() bool
IsClientError returns true when this service inspect not found response has a 4xx status code
func (*ServiceInspectNotFound) IsCode ¶
func (o *ServiceInspectNotFound) IsCode(code int) bool
IsCode returns true when this service inspect not found response a status code equal to that given
func (*ServiceInspectNotFound) IsRedirect ¶
func (o *ServiceInspectNotFound) IsRedirect() bool
IsRedirect returns true when this service inspect not found response has a 3xx status code
func (*ServiceInspectNotFound) IsServerError ¶
func (o *ServiceInspectNotFound) IsServerError() bool
IsServerError returns true when this service inspect not found response has a 5xx status code
func (*ServiceInspectNotFound) IsSuccess ¶
func (o *ServiceInspectNotFound) IsSuccess() bool
IsSuccess returns true when this service inspect not found response has a 2xx status code
func (*ServiceInspectNotFound) String ¶
func (o *ServiceInspectNotFound) String() string
type ServiceInspectOK ¶
ServiceInspectOK describes a response with status code 200, 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
func (*ServiceInspectOK) GetPayload ¶
func (o *ServiceInspectOK) GetPayload() *models.Service
func (*ServiceInspectOK) IsClientError ¶
func (o *ServiceInspectOK) IsClientError() bool
IsClientError returns true when this service inspect o k response has a 4xx status code
func (*ServiceInspectOK) IsCode ¶
func (o *ServiceInspectOK) IsCode(code int) bool
IsCode returns true when this service inspect o k response a status code equal to that given
func (*ServiceInspectOK) IsRedirect ¶
func (o *ServiceInspectOK) IsRedirect() bool
IsRedirect returns true when this service inspect o k response has a 3xx status code
func (*ServiceInspectOK) IsServerError ¶
func (o *ServiceInspectOK) IsServerError() bool
IsServerError returns true when this service inspect o k response has a 5xx status code
func (*ServiceInspectOK) IsSuccess ¶
func (o *ServiceInspectOK) IsSuccess() bool
IsSuccess returns true when this service inspect o k response has a 2xx status code
func (*ServiceInspectOK) String ¶
func (o *ServiceInspectOK) String() 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 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 NewServiceInspectParamsWithContext ¶
func NewServiceInspectParamsWithContext(ctx context.Context) *ServiceInspectParams
NewServiceInspectParamsWithContext creates a new ServiceInspectParams object with 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 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 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) SetDefaults ¶
func (o *ServiceInspectParams) SetDefaults()
SetDefaults hydrates default values in the service inspect params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *ServiceInspectParams) WithDefaults() *ServiceInspectParams
WithDefaults hydrates default values in the service inspect params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 503, 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
func (*ServiceInspectServiceUnavailable) GetPayload ¶
func (o *ServiceInspectServiceUnavailable) GetPayload() *models.ErrorResponse
func (*ServiceInspectServiceUnavailable) IsClientError ¶
func (o *ServiceInspectServiceUnavailable) IsClientError() bool
IsClientError returns true when this service inspect service unavailable response has a 4xx status code
func (*ServiceInspectServiceUnavailable) IsCode ¶
func (o *ServiceInspectServiceUnavailable) IsCode(code int) bool
IsCode returns true when this service inspect service unavailable response a status code equal to that given
func (*ServiceInspectServiceUnavailable) IsRedirect ¶
func (o *ServiceInspectServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this service inspect service unavailable response has a 3xx status code
func (*ServiceInspectServiceUnavailable) IsServerError ¶
func (o *ServiceInspectServiceUnavailable) IsServerError() bool
IsServerError returns true when this service inspect service unavailable response has a 5xx status code
func (*ServiceInspectServiceUnavailable) IsSuccess ¶
func (o *ServiceInspectServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this service inspect service unavailable response has a 2xx status code
func (*ServiceInspectServiceUnavailable) String ¶
func (o *ServiceInspectServiceUnavailable) String() string
type ServiceListInternalServerError ¶
type ServiceListInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceListInternalServerError describes a response with status code 500, 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
func (*ServiceListInternalServerError) GetPayload ¶
func (o *ServiceListInternalServerError) GetPayload() *models.ErrorResponse
func (*ServiceListInternalServerError) IsClientError ¶
func (o *ServiceListInternalServerError) IsClientError() bool
IsClientError returns true when this service list internal server error response has a 4xx status code
func (*ServiceListInternalServerError) IsCode ¶
func (o *ServiceListInternalServerError) IsCode(code int) bool
IsCode returns true when this service list internal server error response a status code equal to that given
func (*ServiceListInternalServerError) IsRedirect ¶
func (o *ServiceListInternalServerError) IsRedirect() bool
IsRedirect returns true when this service list internal server error response has a 3xx status code
func (*ServiceListInternalServerError) IsServerError ¶
func (o *ServiceListInternalServerError) IsServerError() bool
IsServerError returns true when this service list internal server error response has a 5xx status code
func (*ServiceListInternalServerError) IsSuccess ¶
func (o *ServiceListInternalServerError) IsSuccess() bool
IsSuccess returns true when this service list internal server error response has a 2xx status code
func (*ServiceListInternalServerError) String ¶
func (o *ServiceListInternalServerError) String() string
type ServiceListOK ¶
ServiceListOK describes a response with status code 200, 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
func (*ServiceListOK) GetPayload ¶
func (o *ServiceListOK) GetPayload() []*models.Service
func (*ServiceListOK) IsClientError ¶
func (o *ServiceListOK) IsClientError() bool
IsClientError returns true when this service list o k response has a 4xx status code
func (*ServiceListOK) IsCode ¶
func (o *ServiceListOK) IsCode(code int) bool
IsCode returns true when this service list o k response a status code equal to that given
func (*ServiceListOK) IsRedirect ¶
func (o *ServiceListOK) IsRedirect() bool
IsRedirect returns true when this service list o k response has a 3xx status code
func (*ServiceListOK) IsServerError ¶
func (o *ServiceListOK) IsServerError() bool
IsServerError returns true when this service list o k response has a 5xx status code
func (*ServiceListOK) IsSuccess ¶
func (o *ServiceListOK) IsSuccess() bool
IsSuccess returns true when this service list o k response has a 2xx status code
func (*ServiceListOK) String ¶
func (o *ServiceListOK) String() 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 /* Status. Include service status, with count of running and desired tasks */ Status *bool 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 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 NewServiceListParamsWithContext ¶
func NewServiceListParamsWithContext(ctx context.Context) *ServiceListParams
NewServiceListParamsWithContext creates a new ServiceListParams object with 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 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 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) SetDefaults ¶
func (o *ServiceListParams) SetDefaults()
SetDefaults hydrates default values in the service list params (not the query body).
All values with no default are reset to their zero value.
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) SetStatus ¶
func (o *ServiceListParams) SetStatus(status *bool)
SetStatus adds the status 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) WithDefaults ¶
func (o *ServiceListParams) WithDefaults() *ServiceListParams
WithDefaults hydrates default values in the service list params (not the query body).
All values with no default are reset to their zero value.
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) WithStatus ¶
func (o *ServiceListParams) WithStatus(status *bool) *ServiceListParams
WithStatus adds the status 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 describes a response with status code 503, 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
func (*ServiceListServiceUnavailable) GetPayload ¶
func (o *ServiceListServiceUnavailable) GetPayload() *models.ErrorResponse
func (*ServiceListServiceUnavailable) IsClientError ¶
func (o *ServiceListServiceUnavailable) IsClientError() bool
IsClientError returns true when this service list service unavailable response has a 4xx status code
func (*ServiceListServiceUnavailable) IsCode ¶
func (o *ServiceListServiceUnavailable) IsCode(code int) bool
IsCode returns true when this service list service unavailable response a status code equal to that given
func (*ServiceListServiceUnavailable) IsRedirect ¶
func (o *ServiceListServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this service list service unavailable response has a 3xx status code
func (*ServiceListServiceUnavailable) IsServerError ¶
func (o *ServiceListServiceUnavailable) IsServerError() bool
IsServerError returns true when this service list service unavailable response has a 5xx status code
func (*ServiceListServiceUnavailable) IsSuccess ¶
func (o *ServiceListServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this service list service unavailable response has a 2xx status code
func (*ServiceListServiceUnavailable) String ¶
func (o *ServiceListServiceUnavailable) String() string
type ServiceLogsInternalServerError ¶
type ServiceLogsInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceLogsInternalServerError describes a response with status code 500, 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
func (*ServiceLogsInternalServerError) GetPayload ¶
func (o *ServiceLogsInternalServerError) GetPayload() *models.ErrorResponse
func (*ServiceLogsInternalServerError) IsClientError ¶
func (o *ServiceLogsInternalServerError) IsClientError() bool
IsClientError returns true when this service logs internal server error response has a 4xx status code
func (*ServiceLogsInternalServerError) IsCode ¶
func (o *ServiceLogsInternalServerError) IsCode(code int) bool
IsCode returns true when this service logs internal server error response a status code equal to that given
func (*ServiceLogsInternalServerError) IsRedirect ¶
func (o *ServiceLogsInternalServerError) IsRedirect() bool
IsRedirect returns true when this service logs internal server error response has a 3xx status code
func (*ServiceLogsInternalServerError) IsServerError ¶
func (o *ServiceLogsInternalServerError) IsServerError() bool
IsServerError returns true when this service logs internal server error response has a 5xx status code
func (*ServiceLogsInternalServerError) IsSuccess ¶
func (o *ServiceLogsInternalServerError) IsSuccess() bool
IsSuccess returns true when this service logs internal server error response has a 2xx status code
func (*ServiceLogsInternalServerError) String ¶
func (o *ServiceLogsInternalServerError) String() string
type ServiceLogsNotFound ¶
type ServiceLogsNotFound struct {
Payload *models.ErrorResponse
}
ServiceLogsNotFound describes a response with status code 404, 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
func (*ServiceLogsNotFound) GetPayload ¶
func (o *ServiceLogsNotFound) GetPayload() *models.ErrorResponse
func (*ServiceLogsNotFound) IsClientError ¶
func (o *ServiceLogsNotFound) IsClientError() bool
IsClientError returns true when this service logs not found response has a 4xx status code
func (*ServiceLogsNotFound) IsCode ¶
func (o *ServiceLogsNotFound) IsCode(code int) bool
IsCode returns true when this service logs not found response a status code equal to that given
func (*ServiceLogsNotFound) IsRedirect ¶
func (o *ServiceLogsNotFound) IsRedirect() bool
IsRedirect returns true when this service logs not found response has a 3xx status code
func (*ServiceLogsNotFound) IsServerError ¶
func (o *ServiceLogsNotFound) IsServerError() bool
IsServerError returns true when this service logs not found response has a 5xx status code
func (*ServiceLogsNotFound) IsSuccess ¶
func (o *ServiceLogsNotFound) IsSuccess() bool
IsSuccess returns true when this service logs not found response has a 2xx status code
func (*ServiceLogsNotFound) String ¶
func (o *ServiceLogsNotFound) String() string
type ServiceLogsOK ¶
ServiceLogsOK describes a response with status code 200, with default header values.
logs returned as a stream in response body
func NewServiceLogsOK ¶
func NewServiceLogsOK(writer io.Writer) *ServiceLogsOK
NewServiceLogsOK creates a ServiceLogsOK with default headers values
func (*ServiceLogsOK) Error ¶
func (o *ServiceLogsOK) Error() string
func (*ServiceLogsOK) GetPayload ¶
func (o *ServiceLogsOK) GetPayload() io.Writer
func (*ServiceLogsOK) IsClientError ¶
func (o *ServiceLogsOK) IsClientError() bool
IsClientError returns true when this service logs o k response has a 4xx status code
func (*ServiceLogsOK) IsCode ¶
func (o *ServiceLogsOK) IsCode(code int) bool
IsCode returns true when this service logs o k response a status code equal to that given
func (*ServiceLogsOK) IsRedirect ¶
func (o *ServiceLogsOK) IsRedirect() bool
IsRedirect returns true when this service logs o k response has a 3xx status code
func (*ServiceLogsOK) IsServerError ¶
func (o *ServiceLogsOK) IsServerError() bool
IsServerError returns true when this service logs o k response has a 5xx status code
func (*ServiceLogsOK) IsSuccess ¶
func (o *ServiceLogsOK) IsSuccess() bool
IsSuccess returns true when this service logs o k response has a 2xx status code
func (*ServiceLogsOK) String ¶
func (o *ServiceLogsOK) String() string
type ServiceLogsParams ¶
type ServiceLogsParams struct { /* Details. Show service context and extra details provided to logs. */ Details *bool /* Follow. Keep connection after returning logs. */ 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. Default: "all" */ 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 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 NewServiceLogsParamsWithContext ¶
func NewServiceLogsParamsWithContext(ctx context.Context) *ServiceLogsParams
NewServiceLogsParamsWithContext creates a new ServiceLogsParams object with 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 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 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) SetDefaults ¶
func (o *ServiceLogsParams) SetDefaults()
SetDefaults hydrates default values in the service logs params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *ServiceLogsParams) WithDefaults() *ServiceLogsParams
WithDefaults hydrates default values in the service logs params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 503, 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
func (*ServiceLogsServiceUnavailable) GetPayload ¶
func (o *ServiceLogsServiceUnavailable) GetPayload() *models.ErrorResponse
func (*ServiceLogsServiceUnavailable) IsClientError ¶
func (o *ServiceLogsServiceUnavailable) IsClientError() bool
IsClientError returns true when this service logs service unavailable response has a 4xx status code
func (*ServiceLogsServiceUnavailable) IsCode ¶
func (o *ServiceLogsServiceUnavailable) IsCode(code int) bool
IsCode returns true when this service logs service unavailable response a status code equal to that given
func (*ServiceLogsServiceUnavailable) IsRedirect ¶
func (o *ServiceLogsServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this service logs service unavailable response has a 3xx status code
func (*ServiceLogsServiceUnavailable) IsServerError ¶
func (o *ServiceLogsServiceUnavailable) IsServerError() bool
IsServerError returns true when this service logs service unavailable response has a 5xx status code
func (*ServiceLogsServiceUnavailable) IsSuccess ¶
func (o *ServiceLogsServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this service logs service unavailable response has a 2xx status code
func (*ServiceLogsServiceUnavailable) String ¶
func (o *ServiceLogsServiceUnavailable) String() string
type ServiceUpdateBadRequest ¶
type ServiceUpdateBadRequest struct {
Payload *models.ErrorResponse
}
ServiceUpdateBadRequest describes a response with status code 400, 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
func (*ServiceUpdateBadRequest) GetPayload ¶
func (o *ServiceUpdateBadRequest) GetPayload() *models.ErrorResponse
func (*ServiceUpdateBadRequest) IsClientError ¶
func (o *ServiceUpdateBadRequest) IsClientError() bool
IsClientError returns true when this service update bad request response has a 4xx status code
func (*ServiceUpdateBadRequest) IsCode ¶
func (o *ServiceUpdateBadRequest) IsCode(code int) bool
IsCode returns true when this service update bad request response a status code equal to that given
func (*ServiceUpdateBadRequest) IsRedirect ¶
func (o *ServiceUpdateBadRequest) IsRedirect() bool
IsRedirect returns true when this service update bad request response has a 3xx status code
func (*ServiceUpdateBadRequest) IsServerError ¶
func (o *ServiceUpdateBadRequest) IsServerError() bool
IsServerError returns true when this service update bad request response has a 5xx status code
func (*ServiceUpdateBadRequest) IsSuccess ¶
func (o *ServiceUpdateBadRequest) IsSuccess() bool
IsSuccess returns true when this service update bad request response has a 2xx status code
func (*ServiceUpdateBadRequest) String ¶
func (o *ServiceUpdateBadRequest) String() string
type ServiceUpdateBody ¶
type ServiceUpdateBody struct { models.ServiceSpec ServiceUpdateParamsBodyAllOf1 }
ServiceUpdateBody service update body swagger:model ServiceUpdateBody
func (*ServiceUpdateBody) ContextValidate ¶
ContextValidate validate this service update body based on the context it is used
func (*ServiceUpdateBody) MarshalBinary ¶
func (o *ServiceUpdateBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ServiceUpdateBody) MarshalJSON ¶
func (o ServiceUpdateBody) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*ServiceUpdateBody) UnmarshalBinary ¶
func (o *ServiceUpdateBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ServiceUpdateBody) UnmarshalJSON ¶
func (o *ServiceUpdateBody) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type ServiceUpdateInternalServerError ¶
type ServiceUpdateInternalServerError struct {
Payload *models.ErrorResponse
}
ServiceUpdateInternalServerError describes a response with status code 500, 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
func (*ServiceUpdateInternalServerError) GetPayload ¶
func (o *ServiceUpdateInternalServerError) GetPayload() *models.ErrorResponse
func (*ServiceUpdateInternalServerError) IsClientError ¶
func (o *ServiceUpdateInternalServerError) IsClientError() bool
IsClientError returns true when this service update internal server error response has a 4xx status code
func (*ServiceUpdateInternalServerError) IsCode ¶
func (o *ServiceUpdateInternalServerError) IsCode(code int) bool
IsCode returns true when this service update internal server error response a status code equal to that given
func (*ServiceUpdateInternalServerError) IsRedirect ¶
func (o *ServiceUpdateInternalServerError) IsRedirect() bool
IsRedirect returns true when this service update internal server error response has a 3xx status code
func (*ServiceUpdateInternalServerError) IsServerError ¶
func (o *ServiceUpdateInternalServerError) IsServerError() bool
IsServerError returns true when this service update internal server error response has a 5xx status code
func (*ServiceUpdateInternalServerError) IsSuccess ¶
func (o *ServiceUpdateInternalServerError) IsSuccess() bool
IsSuccess returns true when this service update internal server error response has a 2xx status code
func (*ServiceUpdateInternalServerError) String ¶
func (o *ServiceUpdateInternalServerError) String() string
type ServiceUpdateNotFound ¶
type ServiceUpdateNotFound struct {
Payload *models.ErrorResponse
}
ServiceUpdateNotFound describes a response with status code 404, 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
func (*ServiceUpdateNotFound) GetPayload ¶
func (o *ServiceUpdateNotFound) GetPayload() *models.ErrorResponse
func (*ServiceUpdateNotFound) IsClientError ¶
func (o *ServiceUpdateNotFound) IsClientError() bool
IsClientError returns true when this service update not found response has a 4xx status code
func (*ServiceUpdateNotFound) IsCode ¶
func (o *ServiceUpdateNotFound) IsCode(code int) bool
IsCode returns true when this service update not found response a status code equal to that given
func (*ServiceUpdateNotFound) IsRedirect ¶
func (o *ServiceUpdateNotFound) IsRedirect() bool
IsRedirect returns true when this service update not found response has a 3xx status code
func (*ServiceUpdateNotFound) IsServerError ¶
func (o *ServiceUpdateNotFound) IsServerError() bool
IsServerError returns true when this service update not found response has a 5xx status code
func (*ServiceUpdateNotFound) IsSuccess ¶
func (o *ServiceUpdateNotFound) IsSuccess() bool
IsSuccess returns true when this service update not found response has a 2xx status code
func (*ServiceUpdateNotFound) String ¶
func (o *ServiceUpdateNotFound) String() string
type ServiceUpdateOK ¶
type ServiceUpdateOK struct {
Payload *models.ServiceUpdateResponse
}
ServiceUpdateOK describes a response with status code 200, 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
func (*ServiceUpdateOK) GetPayload ¶
func (o *ServiceUpdateOK) GetPayload() *models.ServiceUpdateResponse
func (*ServiceUpdateOK) IsClientError ¶
func (o *ServiceUpdateOK) IsClientError() bool
IsClientError returns true when this service update o k response has a 4xx status code
func (*ServiceUpdateOK) IsCode ¶
func (o *ServiceUpdateOK) IsCode(code int) bool
IsCode returns true when this service update o k response a status code equal to that given
func (*ServiceUpdateOK) IsRedirect ¶
func (o *ServiceUpdateOK) IsRedirect() bool
IsRedirect returns true when this service update o k response has a 3xx status code
func (*ServiceUpdateOK) IsServerError ¶
func (o *ServiceUpdateOK) IsServerError() bool
IsServerError returns true when this service update o k response has a 5xx status code
func (*ServiceUpdateOK) IsSuccess ¶
func (o *ServiceUpdateOK) IsSuccess() bool
IsSuccess returns true when this service update o k response has a 2xx status code
func (*ServiceUpdateOK) String ¶
func (o *ServiceUpdateOK) String() 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 ServiceUpdateBody /* 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. Default: "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. This version number should be the value as currently set on the service *before* the update. You can find the current version by calling `GET /services/{id}` */ 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 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 NewServiceUpdateParamsWithContext ¶
func NewServiceUpdateParamsWithContext(ctx context.Context) *ServiceUpdateParams
NewServiceUpdateParamsWithContext creates a new ServiceUpdateParams object with 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 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 ability to set a timeout on a request.
func (*ServiceUpdateParams) SetBody ¶
func (o *ServiceUpdateParams) SetBody(body ServiceUpdateBody)
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) SetDefaults ¶
func (o *ServiceUpdateParams) SetDefaults()
SetDefaults hydrates default values in the service update params (not the query body).
All values with no default are reset to their zero value.
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 ServiceUpdateBody) *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) WithDefaults ¶
func (o *ServiceUpdateParams) WithDefaults() *ServiceUpdateParams
WithDefaults hydrates default values in the service update params (not the query body).
All values with no default are reset to their zero value.
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 ServiceUpdateParamsBodyAllOf1 ¶
type ServiceUpdateParamsBodyAllOf1 interface{}
ServiceUpdateParamsBodyAllOf1 service update params body all of1 // Example: {"EndpointSpec":{"Mode":"vip"},"Mode":{"Replicated":{"Replicas":1}},"Name":"top","RollbackConfig":{"Delay":1000000000,"FailureAction":"pause","MaxFailureRatio":0.15,"Monitor":15000000000,"Parallelism":1},"TaskTemplate":{"ContainerSpec":{"Args":["top"],"Image":"busybox"},"ForceUpdate":0,"Placement":{},"Resources":{"Limits":{},"Reservations":{}},"RestartPolicy":{"Condition":"any","MaxAttempts":0}},"UpdateConfig":{"Delay":1000000000,"FailureAction":"pause","MaxFailureRatio":0.15,"Monitor":15000000000,"Parallelism":2}} swagger:model ServiceUpdateParamsBodyAllOf1
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 describes a response with status code 503, 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
func (*ServiceUpdateServiceUnavailable) GetPayload ¶
func (o *ServiceUpdateServiceUnavailable) GetPayload() *models.ErrorResponse
func (*ServiceUpdateServiceUnavailable) IsClientError ¶
func (o *ServiceUpdateServiceUnavailable) IsClientError() bool
IsClientError returns true when this service update service unavailable response has a 4xx status code
func (*ServiceUpdateServiceUnavailable) IsCode ¶
func (o *ServiceUpdateServiceUnavailable) IsCode(code int) bool
IsCode returns true when this service update service unavailable response a status code equal to that given
func (*ServiceUpdateServiceUnavailable) IsRedirect ¶
func (o *ServiceUpdateServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this service update service unavailable response has a 3xx status code
func (*ServiceUpdateServiceUnavailable) IsServerError ¶
func (o *ServiceUpdateServiceUnavailable) IsServerError() bool
IsServerError returns true when this service update service unavailable response has a 5xx status code
func (*ServiceUpdateServiceUnavailable) IsSuccess ¶
func (o *ServiceUpdateServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this service update service unavailable response has a 2xx status code
func (*ServiceUpdateServiceUnavailable) String ¶
func (o *ServiceUpdateServiceUnavailable) String() 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