service

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

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

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

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

func (*ServiceCreateBody) Validate

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

Validate validates this service create body

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 (*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

func (*ServiceCreateCreatedBody) Validate

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

Validate validates this service create created body

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 (*ServiceCreateInternalServerError) GetPayload

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

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

WithBody adds the body to the service create params

func (*ServiceCreateParams) WithContext

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 {
	Payload *models.ErrorResponse
}
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 (*ServiceCreateServiceUnavailable) GetPayload

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

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 (*ServiceDeleteInternalServerError) GetPayload

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

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

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

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 {
	Payload *models.ErrorResponse
}
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 (*ServiceDeleteServiceUnavailable) GetPayload

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

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 (*ServiceInspectInternalServerError) GetPayload

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

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

type ServiceInspectOK struct {
	Payload *models.Service
}
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

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

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 {
	Payload *models.ErrorResponse
}
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 (*ServiceInspectServiceUnavailable) GetPayload

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

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 (*ServiceListInternalServerError) GetPayload

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

type ServiceListOK

type ServiceListOK struct {
	Payload []*models.Service
}
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 {
	Payload *models.ErrorResponse
}
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 (*ServiceListServiceUnavailable) GetPayload

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

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 (*ServiceLogsInternalServerError) GetPayload

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

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

type ServiceLogsOK struct {
	Payload io.Writer
}
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

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 {
	Payload *models.ErrorResponse
}
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 (*ServiceLogsServiceUnavailable) GetPayload

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

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

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

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

func (*ServiceUpdateBody) Validate

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

Validate validates this service update body

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 (*ServiceUpdateInternalServerError) GetPayload

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

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

WithBody adds the body to the service update params

func (*ServiceUpdateParams) WithContext

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

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 {
	Payload *models.ErrorResponse
}
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 (*ServiceUpdateServiceUnavailable) GetPayload

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

Jump to

Keyboard shortcuts

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