service

package
v0.0.0-...-f9bae2f Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceCreateBadRequestCode int = 400

ServiceCreateBadRequestCode is the HTTP code returned for type ServiceCreateBadRequest

View Source
const ServiceCreateConflictCode int = 409

ServiceCreateConflictCode is the HTTP code returned for type ServiceCreateConflict

View Source
const ServiceCreateCreatedCode int = 201

ServiceCreateCreatedCode is the HTTP code returned for type ServiceCreateCreated

View Source
const ServiceCreateForbiddenCode int = 403

ServiceCreateForbiddenCode is the HTTP code returned for type ServiceCreateForbidden

View Source
const ServiceCreateInternalServerErrorCode int = 500

ServiceCreateInternalServerErrorCode is the HTTP code returned for type ServiceCreateInternalServerError

View Source
const ServiceCreateServiceUnavailableCode int = 503

ServiceCreateServiceUnavailableCode is the HTTP code returned for type ServiceCreateServiceUnavailable

View Source
const ServiceDeleteInternalServerErrorCode int = 500

ServiceDeleteInternalServerErrorCode is the HTTP code returned for type ServiceDeleteInternalServerError

View Source
const ServiceDeleteNotFoundCode int = 404

ServiceDeleteNotFoundCode is the HTTP code returned for type ServiceDeleteNotFound

View Source
const ServiceDeleteOKCode int = 200

ServiceDeleteOKCode is the HTTP code returned for type ServiceDeleteOK

View Source
const ServiceDeleteServiceUnavailableCode int = 503

ServiceDeleteServiceUnavailableCode is the HTTP code returned for type ServiceDeleteServiceUnavailable

View Source
const ServiceInspectInternalServerErrorCode int = 500

ServiceInspectInternalServerErrorCode is the HTTP code returned for type ServiceInspectInternalServerError

View Source
const ServiceInspectNotFoundCode int = 404

ServiceInspectNotFoundCode is the HTTP code returned for type ServiceInspectNotFound

View Source
const ServiceInspectOKCode int = 200

ServiceInspectOKCode is the HTTP code returned for type ServiceInspectOK

View Source
const ServiceInspectServiceUnavailableCode int = 503

ServiceInspectServiceUnavailableCode is the HTTP code returned for type ServiceInspectServiceUnavailable

View Source
const ServiceListInternalServerErrorCode int = 500

ServiceListInternalServerErrorCode is the HTTP code returned for type ServiceListInternalServerError

View Source
const ServiceListOKCode int = 200

ServiceListOKCode is the HTTP code returned for type ServiceListOK

View Source
const ServiceListServiceUnavailableCode int = 503

ServiceListServiceUnavailableCode is the HTTP code returned for type ServiceListServiceUnavailable

View Source
const ServiceLogsInternalServerErrorCode int = 500

ServiceLogsInternalServerErrorCode is the HTTP code returned for type ServiceLogsInternalServerError

View Source
const ServiceLogsNotFoundCode int = 404

ServiceLogsNotFoundCode is the HTTP code returned for type ServiceLogsNotFound

View Source
const ServiceLogsOKCode int = 200

ServiceLogsOKCode is the HTTP code returned for type ServiceLogsOK

View Source
const ServiceLogsServiceUnavailableCode int = 503

ServiceLogsServiceUnavailableCode is the HTTP code returned for type ServiceLogsServiceUnavailable

View Source
const ServiceUpdateBadRequestCode int = 400

ServiceUpdateBadRequestCode is the HTTP code returned for type ServiceUpdateBadRequest

View Source
const ServiceUpdateInternalServerErrorCode int = 500

ServiceUpdateInternalServerErrorCode is the HTTP code returned for type ServiceUpdateInternalServerError

View Source
const ServiceUpdateNotFoundCode int = 404

ServiceUpdateNotFoundCode is the HTTP code returned for type ServiceUpdateNotFound

View Source
const ServiceUpdateOKCode int = 200

ServiceUpdateOKCode is the HTTP code returned for type ServiceUpdateOK

View Source
const ServiceUpdateServiceUnavailableCode int = 503

ServiceUpdateServiceUnavailableCode is the HTTP code returned for type ServiceUpdateServiceUnavailable

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceCreate

type ServiceCreate struct {
	Context *middleware.Context
	Handler ServiceCreateHandler
}
ServiceCreate swagger:route POST /services/create Service serviceCreate

Create a service

func NewServiceCreate

func NewServiceCreate(ctx *middleware.Context, handler ServiceCreateHandler) *ServiceCreate

NewServiceCreate creates a new http.Handler for the service create operation

func (*ServiceCreate) ServeHTTP

func (o *ServiceCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ServiceCreateBadRequest

type ServiceCreateBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceCreateBadRequest bad parameter

swagger:response serviceCreateBadRequest

func NewServiceCreateBadRequest

func NewServiceCreateBadRequest() *ServiceCreateBadRequest

NewServiceCreateBadRequest creates ServiceCreateBadRequest with default headers values

func (*ServiceCreateBadRequest) SetPayload

func (o *ServiceCreateBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service create bad request response

func (*ServiceCreateBadRequest) WithPayload

WithPayload adds the payload to the service create bad request response

func (*ServiceCreateBadRequest) WriteResponse

func (o *ServiceCreateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceCreateConflict name conflicts with an existing service

swagger:response serviceCreateConflict

func NewServiceCreateConflict

func NewServiceCreateConflict() *ServiceCreateConflict

NewServiceCreateConflict creates ServiceCreateConflict with default headers values

func (*ServiceCreateConflict) SetPayload

func (o *ServiceCreateConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service create conflict response

func (*ServiceCreateConflict) WithPayload

WithPayload adds the payload to the service create conflict response

func (*ServiceCreateConflict) WriteResponse

func (o *ServiceCreateConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceCreateCreated

type ServiceCreateCreated struct {

	/*
	  In: Body
	*/
	Payload *ServiceCreateCreatedBody `json:"body,omitempty"`
}

ServiceCreateCreated no error

swagger:response serviceCreateCreated

func NewServiceCreateCreated

func NewServiceCreateCreated() *ServiceCreateCreated

NewServiceCreateCreated creates ServiceCreateCreated with default headers values

func (*ServiceCreateCreated) SetPayload

func (o *ServiceCreateCreated) SetPayload(payload *ServiceCreateCreatedBody)

SetPayload sets the payload to the service create created response

func (*ServiceCreateCreated) WithPayload

WithPayload adds the payload to the service create created response

func (*ServiceCreateCreated) WriteResponse

func (o *ServiceCreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceCreateForbidden network is not eligible for services

swagger:response serviceCreateForbidden

func NewServiceCreateForbidden

func NewServiceCreateForbidden() *ServiceCreateForbidden

NewServiceCreateForbidden creates ServiceCreateForbidden with default headers values

func (*ServiceCreateForbidden) SetPayload

func (o *ServiceCreateForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service create forbidden response

func (*ServiceCreateForbidden) WithPayload

WithPayload adds the payload to the service create forbidden response

func (*ServiceCreateForbidden) WriteResponse

func (o *ServiceCreateForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceCreateHandler

type ServiceCreateHandler interface {
	Handle(ServiceCreateParams) middleware.Responder
}

ServiceCreateHandler interface for that can handle valid service create params

type ServiceCreateHandlerFunc

type ServiceCreateHandlerFunc func(ServiceCreateParams) middleware.Responder

ServiceCreateHandlerFunc turns a function with the right signature into a service create handler

func (ServiceCreateHandlerFunc) Handle

Handle executing the request and returning a response

type ServiceCreateInternalServerError

type ServiceCreateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceCreateInternalServerError server error

swagger:response serviceCreateInternalServerError

func NewServiceCreateInternalServerError

func NewServiceCreateInternalServerError() *ServiceCreateInternalServerError

NewServiceCreateInternalServerError creates ServiceCreateInternalServerError with default headers values

func (*ServiceCreateInternalServerError) SetPayload

func (o *ServiceCreateInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service create internal server error response

func (*ServiceCreateInternalServerError) WithPayload

WithPayload adds the payload to the service create internal server error response

func (*ServiceCreateInternalServerError) WriteResponse

func (o *ServiceCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceCreateParams

type ServiceCreateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A base64url-encoded auth configuration for pulling from private
	registries.

	Refer to the [authentication section](#section/Authentication) for
	details.

	  In: header
	*/
	XRegistryAuth *string
	/*
	  Required: true
	  In: body
	*/
	Body ServiceCreateBody
}

ServiceCreateParams contains all the bound params for the service create operation typically these are obtained from a http.Request

swagger:parameters ServiceCreate

func NewServiceCreateParams

func NewServiceCreateParams() ServiceCreateParams

NewServiceCreateParams creates a new ServiceCreateParams object

There are no default values defined in the spec.

func (*ServiceCreateParams) BindRequest

func (o *ServiceCreateParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewServiceCreateParams() beforehand.

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 ServiceCreateServiceUnavailable

type ServiceCreateServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceCreateServiceUnavailable node is not part of a swarm

swagger:response serviceCreateServiceUnavailable

func NewServiceCreateServiceUnavailable

func NewServiceCreateServiceUnavailable() *ServiceCreateServiceUnavailable

NewServiceCreateServiceUnavailable creates ServiceCreateServiceUnavailable with default headers values

func (*ServiceCreateServiceUnavailable) SetPayload

func (o *ServiceCreateServiceUnavailable) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service create service unavailable response

func (*ServiceCreateServiceUnavailable) WithPayload

WithPayload adds the payload to the service create service unavailable response

func (*ServiceCreateServiceUnavailable) WriteResponse

func (o *ServiceCreateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceCreateURL

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

ServiceCreateURL generates an URL for the service create operation

func (*ServiceCreateURL) Build

func (o *ServiceCreateURL) Build() (*url.URL, error)

Build a url path and query string

func (*ServiceCreateURL) BuildFull

func (o *ServiceCreateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ServiceCreateURL) Must

func (o *ServiceCreateURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ServiceCreateURL) SetBasePath

func (o *ServiceCreateURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ServiceCreateURL) String

func (o *ServiceCreateURL) String() string

String returns the string representation of the path with query string

func (*ServiceCreateURL) StringFull

func (o *ServiceCreateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ServiceCreateURL) WithBasePath

func (o *ServiceCreateURL) WithBasePath(bp string) *ServiceCreateURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ServiceDelete

type ServiceDelete struct {
	Context *middleware.Context
	Handler ServiceDeleteHandler
}
ServiceDelete swagger:route DELETE /services/{id} Service serviceDelete

Delete a service

func NewServiceDelete

func NewServiceDelete(ctx *middleware.Context, handler ServiceDeleteHandler) *ServiceDelete

NewServiceDelete creates a new http.Handler for the service delete operation

func (*ServiceDelete) ServeHTTP

func (o *ServiceDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ServiceDeleteHandler

type ServiceDeleteHandler interface {
	Handle(ServiceDeleteParams) middleware.Responder
}

ServiceDeleteHandler interface for that can handle valid service delete params

type ServiceDeleteHandlerFunc

type ServiceDeleteHandlerFunc func(ServiceDeleteParams) middleware.Responder

ServiceDeleteHandlerFunc turns a function with the right signature into a service delete handler

func (ServiceDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type ServiceDeleteInternalServerError

type ServiceDeleteInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceDeleteInternalServerError server error

swagger:response serviceDeleteInternalServerError

func NewServiceDeleteInternalServerError

func NewServiceDeleteInternalServerError() *ServiceDeleteInternalServerError

NewServiceDeleteInternalServerError creates ServiceDeleteInternalServerError with default headers values

func (*ServiceDeleteInternalServerError) SetPayload

func (o *ServiceDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service delete internal server error response

func (*ServiceDeleteInternalServerError) WithPayload

WithPayload adds the payload to the service delete internal server error response

func (*ServiceDeleteInternalServerError) WriteResponse

func (o *ServiceDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceDeleteNotFound

type ServiceDeleteNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceDeleteNotFound no such service

swagger:response serviceDeleteNotFound

func NewServiceDeleteNotFound

func NewServiceDeleteNotFound() *ServiceDeleteNotFound

NewServiceDeleteNotFound creates ServiceDeleteNotFound with default headers values

func (*ServiceDeleteNotFound) SetPayload

func (o *ServiceDeleteNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service delete not found response

func (*ServiceDeleteNotFound) WithPayload

WithPayload adds the payload to the service delete not found response

func (*ServiceDeleteNotFound) WriteResponse

func (o *ServiceDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceDeleteOK

type ServiceDeleteOK struct {
}

ServiceDeleteOK no error

swagger:response serviceDeleteOK

func NewServiceDeleteOK

func NewServiceDeleteOK() *ServiceDeleteOK

NewServiceDeleteOK creates ServiceDeleteOK with default headers values

func (*ServiceDeleteOK) WriteResponse

func (o *ServiceDeleteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceDeleteParams

type ServiceDeleteParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of service.
	  Required: true
	  In: path
	*/
	ID string
}

ServiceDeleteParams contains all the bound params for the service delete operation typically these are obtained from a http.Request

swagger:parameters ServiceDelete

func NewServiceDeleteParams

func NewServiceDeleteParams() ServiceDeleteParams

NewServiceDeleteParams creates a new ServiceDeleteParams object

There are no default values defined in the spec.

func (*ServiceDeleteParams) BindRequest

func (o *ServiceDeleteParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewServiceDeleteParams() beforehand.

type ServiceDeleteServiceUnavailable

type ServiceDeleteServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceDeleteServiceUnavailable node is not part of a swarm

swagger:response serviceDeleteServiceUnavailable

func NewServiceDeleteServiceUnavailable

func NewServiceDeleteServiceUnavailable() *ServiceDeleteServiceUnavailable

NewServiceDeleteServiceUnavailable creates ServiceDeleteServiceUnavailable with default headers values

func (*ServiceDeleteServiceUnavailable) SetPayload

func (o *ServiceDeleteServiceUnavailable) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service delete service unavailable response

func (*ServiceDeleteServiceUnavailable) WithPayload

WithPayload adds the payload to the service delete service unavailable response

func (*ServiceDeleteServiceUnavailable) WriteResponse

func (o *ServiceDeleteServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceDeleteURL

type ServiceDeleteURL struct {
	ID string
	// contains filtered or unexported fields
}

ServiceDeleteURL generates an URL for the service delete operation

func (*ServiceDeleteURL) Build

func (o *ServiceDeleteURL) Build() (*url.URL, error)

Build a url path and query string

func (*ServiceDeleteURL) BuildFull

func (o *ServiceDeleteURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ServiceDeleteURL) Must

func (o *ServiceDeleteURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ServiceDeleteURL) SetBasePath

func (o *ServiceDeleteURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ServiceDeleteURL) String

func (o *ServiceDeleteURL) String() string

String returns the string representation of the path with query string

func (*ServiceDeleteURL) StringFull

func (o *ServiceDeleteURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ServiceDeleteURL) WithBasePath

func (o *ServiceDeleteURL) WithBasePath(bp string) *ServiceDeleteURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ServiceInspect

type ServiceInspect struct {
	Context *middleware.Context
	Handler ServiceInspectHandler
}
ServiceInspect swagger:route GET /services/{id} Service serviceInspect

Inspect a service

func NewServiceInspect

func NewServiceInspect(ctx *middleware.Context, handler ServiceInspectHandler) *ServiceInspect

NewServiceInspect creates a new http.Handler for the service inspect operation

func (*ServiceInspect) ServeHTTP

func (o *ServiceInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ServiceInspectHandler

type ServiceInspectHandler interface {
	Handle(ServiceInspectParams) middleware.Responder
}

ServiceInspectHandler interface for that can handle valid service inspect params

type ServiceInspectHandlerFunc

type ServiceInspectHandlerFunc func(ServiceInspectParams) middleware.Responder

ServiceInspectHandlerFunc turns a function with the right signature into a service inspect handler

func (ServiceInspectHandlerFunc) Handle

Handle executing the request and returning a response

type ServiceInspectInternalServerError

type ServiceInspectInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceInspectInternalServerError server error

swagger:response serviceInspectInternalServerError

func NewServiceInspectInternalServerError

func NewServiceInspectInternalServerError() *ServiceInspectInternalServerError

NewServiceInspectInternalServerError creates ServiceInspectInternalServerError with default headers values

func (*ServiceInspectInternalServerError) SetPayload

func (o *ServiceInspectInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service inspect internal server error response

func (*ServiceInspectInternalServerError) WithPayload

WithPayload adds the payload to the service inspect internal server error response

func (*ServiceInspectInternalServerError) WriteResponse

func (o *ServiceInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceInspectNotFound

type ServiceInspectNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceInspectNotFound no such service

swagger:response serviceInspectNotFound

func NewServiceInspectNotFound

func NewServiceInspectNotFound() *ServiceInspectNotFound

NewServiceInspectNotFound creates ServiceInspectNotFound with default headers values

func (*ServiceInspectNotFound) SetPayload

func (o *ServiceInspectNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service inspect not found response

func (*ServiceInspectNotFound) WithPayload

WithPayload adds the payload to the service inspect not found response

func (*ServiceInspectNotFound) WriteResponse

func (o *ServiceInspectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceInspectOK

type ServiceInspectOK struct {

	/*
	  In: Body
	*/
	Payload *models.Service `json:"body,omitempty"`
}

ServiceInspectOK no error

swagger:response serviceInspectOK

func NewServiceInspectOK

func NewServiceInspectOK() *ServiceInspectOK

NewServiceInspectOK creates ServiceInspectOK with default headers values

func (*ServiceInspectOK) SetPayload

func (o *ServiceInspectOK) SetPayload(payload *models.Service)

SetPayload sets the payload to the service inspect o k response

func (*ServiceInspectOK) WithPayload

func (o *ServiceInspectOK) WithPayload(payload *models.Service) *ServiceInspectOK

WithPayload adds the payload to the service inspect o k response

func (*ServiceInspectOK) WriteResponse

func (o *ServiceInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceInspectParams

type ServiceInspectParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID or name of service.
	  Required: true
	  In: path
	*/
	ID string
	/*Fill empty fields with default values.
	  In: query
	  Default: false
	*/
	InsertDefaults *bool
}

ServiceInspectParams contains all the bound params for the service inspect operation typically these are obtained from a http.Request

swagger:parameters ServiceInspect

func NewServiceInspectParams

func NewServiceInspectParams() ServiceInspectParams

NewServiceInspectParams creates a new ServiceInspectParams object with the default values initialized.

func (*ServiceInspectParams) BindRequest

func (o *ServiceInspectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewServiceInspectParams() beforehand.

type ServiceInspectServiceUnavailable

type ServiceInspectServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceInspectServiceUnavailable node is not part of a swarm

swagger:response serviceInspectServiceUnavailable

func NewServiceInspectServiceUnavailable

func NewServiceInspectServiceUnavailable() *ServiceInspectServiceUnavailable

NewServiceInspectServiceUnavailable creates ServiceInspectServiceUnavailable with default headers values

func (*ServiceInspectServiceUnavailable) SetPayload

func (o *ServiceInspectServiceUnavailable) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service inspect service unavailable response

func (*ServiceInspectServiceUnavailable) WithPayload

WithPayload adds the payload to the service inspect service unavailable response

func (*ServiceInspectServiceUnavailable) WriteResponse

func (o *ServiceInspectServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceInspectURL

type ServiceInspectURL struct {
	ID string

	InsertDefaults *bool
	// contains filtered or unexported fields
}

ServiceInspectURL generates an URL for the service inspect operation

func (*ServiceInspectURL) Build

func (o *ServiceInspectURL) Build() (*url.URL, error)

Build a url path and query string

func (*ServiceInspectURL) BuildFull

func (o *ServiceInspectURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ServiceInspectURL) Must

func (o *ServiceInspectURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ServiceInspectURL) SetBasePath

func (o *ServiceInspectURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ServiceInspectURL) String

func (o *ServiceInspectURL) String() string

String returns the string representation of the path with query string

func (*ServiceInspectURL) StringFull

func (o *ServiceInspectURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ServiceInspectURL) WithBasePath

func (o *ServiceInspectURL) WithBasePath(bp string) *ServiceInspectURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ServiceList

type ServiceList struct {
	Context *middleware.Context
	Handler ServiceListHandler
}
ServiceList swagger:route GET /services Service serviceList

List services

func NewServiceList

func NewServiceList(ctx *middleware.Context, handler ServiceListHandler) *ServiceList

NewServiceList creates a new http.Handler for the service list operation

func (*ServiceList) ServeHTTP

func (o *ServiceList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ServiceListHandler

type ServiceListHandler interface {
	Handle(ServiceListParams) middleware.Responder
}

ServiceListHandler interface for that can handle valid service list params

type ServiceListHandlerFunc

type ServiceListHandlerFunc func(ServiceListParams) middleware.Responder

ServiceListHandlerFunc turns a function with the right signature into a service list handler

func (ServiceListHandlerFunc) Handle

Handle executing the request and returning a response

type ServiceListInternalServerError

type ServiceListInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceListInternalServerError server error

swagger:response serviceListInternalServerError

func NewServiceListInternalServerError

func NewServiceListInternalServerError() *ServiceListInternalServerError

NewServiceListInternalServerError creates ServiceListInternalServerError with default headers values

func (*ServiceListInternalServerError) SetPayload

func (o *ServiceListInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service list internal server error response

func (*ServiceListInternalServerError) WithPayload

WithPayload adds the payload to the service list internal server error response

func (*ServiceListInternalServerError) WriteResponse

func (o *ServiceListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceListOK

type ServiceListOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Service `json:"body,omitempty"`
}

ServiceListOK no error

swagger:response serviceListOK

func NewServiceListOK

func NewServiceListOK() *ServiceListOK

NewServiceListOK creates ServiceListOK with default headers values

func (*ServiceListOK) SetPayload

func (o *ServiceListOK) SetPayload(payload []*models.Service)

SetPayload sets the payload to the service list o k response

func (*ServiceListOK) WithPayload

func (o *ServiceListOK) WithPayload(payload []*models.Service) *ServiceListOK

WithPayload adds the payload to the service list o k response

func (*ServiceListOK) WriteResponse

func (o *ServiceListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceListParams

type ServiceListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*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>`

	  In: query
	*/
	Filters *string
	/*Include service status, with count of running and desired tasks.

	  In: query
	*/
	Status *bool
}

ServiceListParams contains all the bound params for the service list operation typically these are obtained from a http.Request

swagger:parameters ServiceList

func NewServiceListParams

func NewServiceListParams() ServiceListParams

NewServiceListParams creates a new ServiceListParams object

There are no default values defined in the spec.

func (*ServiceListParams) BindRequest

func (o *ServiceListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewServiceListParams() beforehand.

type ServiceListServiceUnavailable

type ServiceListServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceListServiceUnavailable node is not part of a swarm

swagger:response serviceListServiceUnavailable

func NewServiceListServiceUnavailable

func NewServiceListServiceUnavailable() *ServiceListServiceUnavailable

NewServiceListServiceUnavailable creates ServiceListServiceUnavailable with default headers values

func (*ServiceListServiceUnavailable) SetPayload

func (o *ServiceListServiceUnavailable) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service list service unavailable response

func (*ServiceListServiceUnavailable) WithPayload

WithPayload adds the payload to the service list service unavailable response

func (*ServiceListServiceUnavailable) WriteResponse

func (o *ServiceListServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceListURL

type ServiceListURL struct {
	Filters *string
	Status  *bool
	// contains filtered or unexported fields
}

ServiceListURL generates an URL for the service list operation

func (*ServiceListURL) Build

func (o *ServiceListURL) Build() (*url.URL, error)

Build a url path and query string

func (*ServiceListURL) BuildFull

func (o *ServiceListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ServiceListURL) Must

func (o *ServiceListURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ServiceListURL) SetBasePath

func (o *ServiceListURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ServiceListURL) String

func (o *ServiceListURL) String() string

String returns the string representation of the path with query string

func (*ServiceListURL) StringFull

func (o *ServiceListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ServiceListURL) WithBasePath

func (o *ServiceListURL) WithBasePath(bp string) *ServiceListURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ServiceLogs

type ServiceLogs struct {
	Context *middleware.Context
	Handler ServiceLogsHandler
}
ServiceLogs swagger:route GET /services/{id}/logs Service serviceLogs

Get 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 NewServiceLogs

func NewServiceLogs(ctx *middleware.Context, handler ServiceLogsHandler) *ServiceLogs

NewServiceLogs creates a new http.Handler for the service logs operation

func (*ServiceLogs) ServeHTTP

func (o *ServiceLogs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ServiceLogsHandler

type ServiceLogsHandler interface {
	Handle(ServiceLogsParams) middleware.Responder
}

ServiceLogsHandler interface for that can handle valid service logs params

type ServiceLogsHandlerFunc

type ServiceLogsHandlerFunc func(ServiceLogsParams) middleware.Responder

ServiceLogsHandlerFunc turns a function with the right signature into a service logs handler

func (ServiceLogsHandlerFunc) Handle

Handle executing the request and returning a response

type ServiceLogsInternalServerError

type ServiceLogsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceLogsInternalServerError server error

swagger:response serviceLogsInternalServerError

func NewServiceLogsInternalServerError

func NewServiceLogsInternalServerError() *ServiceLogsInternalServerError

NewServiceLogsInternalServerError creates ServiceLogsInternalServerError with default headers values

func (*ServiceLogsInternalServerError) SetPayload

func (o *ServiceLogsInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service logs internal server error response

func (*ServiceLogsInternalServerError) WithPayload

WithPayload adds the payload to the service logs internal server error response

func (*ServiceLogsInternalServerError) WriteResponse

func (o *ServiceLogsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceLogsNotFound

type ServiceLogsNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceLogsNotFound no such service

swagger:response serviceLogsNotFound

func NewServiceLogsNotFound

func NewServiceLogsNotFound() *ServiceLogsNotFound

NewServiceLogsNotFound creates ServiceLogsNotFound with default headers values

func (*ServiceLogsNotFound) SetPayload

func (o *ServiceLogsNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service logs not found response

func (*ServiceLogsNotFound) WithPayload

func (o *ServiceLogsNotFound) WithPayload(payload *models.ErrorResponse) *ServiceLogsNotFound

WithPayload adds the payload to the service logs not found response

func (*ServiceLogsNotFound) WriteResponse

func (o *ServiceLogsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceLogsOK

type ServiceLogsOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

ServiceLogsOK logs returned as a stream in response body

swagger:response serviceLogsOK

func NewServiceLogsOK

func NewServiceLogsOK() *ServiceLogsOK

NewServiceLogsOK creates ServiceLogsOK with default headers values

func (*ServiceLogsOK) SetPayload

func (o *ServiceLogsOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the service logs o k response

func (*ServiceLogsOK) WithPayload

func (o *ServiceLogsOK) WithPayload(payload io.ReadCloser) *ServiceLogsOK

WithPayload adds the payload to the service logs o k response

func (*ServiceLogsOK) WriteResponse

func (o *ServiceLogsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceLogsParams

type ServiceLogsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Show service context and extra details provided to logs.
	  In: query
	  Default: false
	*/
	Details *bool
	/*Keep connection after returning logs.
	  In: query
	  Default: false
	*/
	Follow *bool
	/*ID or name of the service
	  Required: true
	  In: path
	*/
	ID string
	/*Only return logs since this time, as a UNIX timestamp
	  In: query
	  Default: 0
	*/
	Since *int64
	/*Return logs from `stderr`
	  In: query
	  Default: false
	*/
	Stderr *bool
	/*Return logs from `stdout`
	  In: query
	  Default: false
	*/
	Stdout *bool
	/*Only return this number of log lines from the end of the logs.
	Specify as an integer or `all` to output all log lines.

	  In: query
	  Default: "all"
	*/
	Tail *string
	/*Add timestamps to every log line
	  In: query
	  Default: false
	*/
	Timestamps *bool
}

ServiceLogsParams contains all the bound params for the service logs operation typically these are obtained from a http.Request

swagger:parameters ServiceLogs

func NewServiceLogsParams

func NewServiceLogsParams() ServiceLogsParams

NewServiceLogsParams creates a new ServiceLogsParams object with the default values initialized.

func (*ServiceLogsParams) BindRequest

func (o *ServiceLogsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewServiceLogsParams() beforehand.

type ServiceLogsServiceUnavailable

type ServiceLogsServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceLogsServiceUnavailable node is not part of a swarm

swagger:response serviceLogsServiceUnavailable

func NewServiceLogsServiceUnavailable

func NewServiceLogsServiceUnavailable() *ServiceLogsServiceUnavailable

NewServiceLogsServiceUnavailable creates ServiceLogsServiceUnavailable with default headers values

func (*ServiceLogsServiceUnavailable) SetPayload

func (o *ServiceLogsServiceUnavailable) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service logs service unavailable response

func (*ServiceLogsServiceUnavailable) WithPayload

WithPayload adds the payload to the service logs service unavailable response

func (*ServiceLogsServiceUnavailable) WriteResponse

func (o *ServiceLogsServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceLogsURL

type ServiceLogsURL struct {
	ID string

	Details    *bool
	Follow     *bool
	Since      *int64
	Stderr     *bool
	Stdout     *bool
	Tail       *string
	Timestamps *bool
	// contains filtered or unexported fields
}

ServiceLogsURL generates an URL for the service logs operation

func (*ServiceLogsURL) Build

func (o *ServiceLogsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ServiceLogsURL) BuildFull

func (o *ServiceLogsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ServiceLogsURL) Must

func (o *ServiceLogsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ServiceLogsURL) SetBasePath

func (o *ServiceLogsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ServiceLogsURL) String

func (o *ServiceLogsURL) String() string

String returns the string representation of the path with query string

func (*ServiceLogsURL) StringFull

func (o *ServiceLogsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ServiceLogsURL) WithBasePath

func (o *ServiceLogsURL) WithBasePath(bp string) *ServiceLogsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ServiceUpdate

type ServiceUpdate struct {
	Context *middleware.Context
	Handler ServiceUpdateHandler
}
ServiceUpdate swagger:route POST /services/{id}/update Service serviceUpdate

Update a service

func NewServiceUpdate

func NewServiceUpdate(ctx *middleware.Context, handler ServiceUpdateHandler) *ServiceUpdate

NewServiceUpdate creates a new http.Handler for the service update operation

func (*ServiceUpdate) ServeHTTP

func (o *ServiceUpdate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ServiceUpdateBadRequest

type ServiceUpdateBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceUpdateBadRequest bad parameter

swagger:response serviceUpdateBadRequest

func NewServiceUpdateBadRequest

func NewServiceUpdateBadRequest() *ServiceUpdateBadRequest

NewServiceUpdateBadRequest creates ServiceUpdateBadRequest with default headers values

func (*ServiceUpdateBadRequest) SetPayload

func (o *ServiceUpdateBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service update bad request response

func (*ServiceUpdateBadRequest) WithPayload

WithPayload adds the payload to the service update bad request response

func (*ServiceUpdateBadRequest) WriteResponse

func (o *ServiceUpdateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

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 ServiceUpdateHandler

type ServiceUpdateHandler interface {
	Handle(ServiceUpdateParams) middleware.Responder
}

ServiceUpdateHandler interface for that can handle valid service update params

type ServiceUpdateHandlerFunc

type ServiceUpdateHandlerFunc func(ServiceUpdateParams) middleware.Responder

ServiceUpdateHandlerFunc turns a function with the right signature into a service update handler

func (ServiceUpdateHandlerFunc) Handle

Handle executing the request and returning a response

type ServiceUpdateInternalServerError

type ServiceUpdateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceUpdateInternalServerError server error

swagger:response serviceUpdateInternalServerError

func NewServiceUpdateInternalServerError

func NewServiceUpdateInternalServerError() *ServiceUpdateInternalServerError

NewServiceUpdateInternalServerError creates ServiceUpdateInternalServerError with default headers values

func (*ServiceUpdateInternalServerError) SetPayload

func (o *ServiceUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service update internal server error response

func (*ServiceUpdateInternalServerError) WithPayload

WithPayload adds the payload to the service update internal server error response

func (*ServiceUpdateInternalServerError) WriteResponse

func (o *ServiceUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceUpdateNotFound

type ServiceUpdateNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceUpdateNotFound no such service

swagger:response serviceUpdateNotFound

func NewServiceUpdateNotFound

func NewServiceUpdateNotFound() *ServiceUpdateNotFound

NewServiceUpdateNotFound creates ServiceUpdateNotFound with default headers values

func (*ServiceUpdateNotFound) SetPayload

func (o *ServiceUpdateNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service update not found response

func (*ServiceUpdateNotFound) WithPayload

WithPayload adds the payload to the service update not found response

func (*ServiceUpdateNotFound) WriteResponse

func (o *ServiceUpdateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceUpdateOK

type ServiceUpdateOK struct {

	/*
	  In: Body
	*/
	Payload *models.ServiceUpdateResponse `json:"body,omitempty"`
}

ServiceUpdateOK no error

swagger:response serviceUpdateOK

func NewServiceUpdateOK

func NewServiceUpdateOK() *ServiceUpdateOK

NewServiceUpdateOK creates ServiceUpdateOK with default headers values

func (*ServiceUpdateOK) SetPayload

func (o *ServiceUpdateOK) SetPayload(payload *models.ServiceUpdateResponse)

SetPayload sets the payload to the service update o k response

func (*ServiceUpdateOK) WithPayload

func (o *ServiceUpdateOK) WithPayload(payload *models.ServiceUpdateResponse) *ServiceUpdateOK

WithPayload adds the payload to the service update o k response

func (*ServiceUpdateOK) WriteResponse

func (o *ServiceUpdateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceUpdateParams

type ServiceUpdateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A base64url-encoded auth configuration for pulling from private
	registries.

	Refer to the [authentication section](#section/Authentication) for
	details.

	  In: header
	*/
	XRegistryAuth *string
	/*
	  Required: true
	  In: body
	*/
	Body ServiceUpdateBody
	/*ID or name of service.
	  Required: true
	  In: path
	*/
	ID string
	/*If the `X-Registry-Auth` header is not specified, this parameter
	indicates where to find registry authorization credentials.

	  In: query
	  Default: "spec"
	*/
	RegistryAuthFrom *string
	/*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.

	  In: query
	*/
	Rollback *string
	/*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}`

	  Required: true
	  In: query
	*/
	Version int64
}

ServiceUpdateParams contains all the bound params for the service update operation typically these are obtained from a http.Request

swagger:parameters ServiceUpdate

func NewServiceUpdateParams

func NewServiceUpdateParams() ServiceUpdateParams

NewServiceUpdateParams creates a new ServiceUpdateParams object with the default values initialized.

func (*ServiceUpdateParams) BindRequest

func (o *ServiceUpdateParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewServiceUpdateParams() beforehand.

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 ServiceUpdateServiceUnavailable

type ServiceUpdateServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

ServiceUpdateServiceUnavailable node is not part of a swarm

swagger:response serviceUpdateServiceUnavailable

func NewServiceUpdateServiceUnavailable

func NewServiceUpdateServiceUnavailable() *ServiceUpdateServiceUnavailable

NewServiceUpdateServiceUnavailable creates ServiceUpdateServiceUnavailable with default headers values

func (*ServiceUpdateServiceUnavailable) SetPayload

func (o *ServiceUpdateServiceUnavailable) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the service update service unavailable response

func (*ServiceUpdateServiceUnavailable) WithPayload

WithPayload adds the payload to the service update service unavailable response

func (*ServiceUpdateServiceUnavailable) WriteResponse

func (o *ServiceUpdateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ServiceUpdateURL

type ServiceUpdateURL struct {
	ID string

	RegistryAuthFrom *string
	Rollback         *string
	Version          int64
	// contains filtered or unexported fields
}

ServiceUpdateURL generates an URL for the service update operation

func (*ServiceUpdateURL) Build

func (o *ServiceUpdateURL) Build() (*url.URL, error)

Build a url path and query string

func (*ServiceUpdateURL) BuildFull

func (o *ServiceUpdateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ServiceUpdateURL) Must

func (o *ServiceUpdateURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ServiceUpdateURL) SetBasePath

func (o *ServiceUpdateURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ServiceUpdateURL) String

func (o *ServiceUpdateURL) String() string

String returns the string representation of the path with query string

func (*ServiceUpdateURL) StringFull

func (o *ServiceUpdateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ServiceUpdateURL) WithBasePath

func (o *ServiceUpdateURL) WithBasePath(bp string) *ServiceUpdateURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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