config

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigCreateConflictCode int = 409

ConfigCreateConflictCode is the HTTP code returned for type ConfigCreateConflict

View Source
const ConfigCreateCreatedCode int = 201

ConfigCreateCreatedCode is the HTTP code returned for type ConfigCreateCreated

View Source
const ConfigCreateInternalServerErrorCode int = 500

ConfigCreateInternalServerErrorCode is the HTTP code returned for type ConfigCreateInternalServerError

View Source
const ConfigCreateServiceUnavailableCode int = 503

ConfigCreateServiceUnavailableCode is the HTTP code returned for type ConfigCreateServiceUnavailable

View Source
const ConfigDeleteInternalServerErrorCode int = 500

ConfigDeleteInternalServerErrorCode is the HTTP code returned for type ConfigDeleteInternalServerError

View Source
const ConfigDeleteNoContentCode int = 204

ConfigDeleteNoContentCode is the HTTP code returned for type ConfigDeleteNoContent

View Source
const ConfigDeleteNotFoundCode int = 404

ConfigDeleteNotFoundCode is the HTTP code returned for type ConfigDeleteNotFound

View Source
const ConfigDeleteServiceUnavailableCode int = 503

ConfigDeleteServiceUnavailableCode is the HTTP code returned for type ConfigDeleteServiceUnavailable

View Source
const ConfigInspectInternalServerErrorCode int = 500

ConfigInspectInternalServerErrorCode is the HTTP code returned for type ConfigInspectInternalServerError

View Source
const ConfigInspectNotFoundCode int = 404

ConfigInspectNotFoundCode is the HTTP code returned for type ConfigInspectNotFound

View Source
const ConfigInspectOKCode int = 200

ConfigInspectOKCode is the HTTP code returned for type ConfigInspectOK

View Source
const ConfigInspectServiceUnavailableCode int = 503

ConfigInspectServiceUnavailableCode is the HTTP code returned for type ConfigInspectServiceUnavailable

View Source
const ConfigListInternalServerErrorCode int = 500

ConfigListInternalServerErrorCode is the HTTP code returned for type ConfigListInternalServerError

View Source
const ConfigListOKCode int = 200

ConfigListOKCode is the HTTP code returned for type ConfigListOK

View Source
const ConfigListServiceUnavailableCode int = 503

ConfigListServiceUnavailableCode is the HTTP code returned for type ConfigListServiceUnavailable

View Source
const ConfigUpdateBadRequestCode int = 400

ConfigUpdateBadRequestCode is the HTTP code returned for type ConfigUpdateBadRequest

View Source
const ConfigUpdateInternalServerErrorCode int = 500

ConfigUpdateInternalServerErrorCode is the HTTP code returned for type ConfigUpdateInternalServerError

View Source
const ConfigUpdateNotFoundCode int = 404

ConfigUpdateNotFoundCode is the HTTP code returned for type ConfigUpdateNotFound

View Source
const ConfigUpdateOKCode int = 200

ConfigUpdateOKCode is the HTTP code returned for type ConfigUpdateOK

View Source
const ConfigUpdateServiceUnavailableCode int = 503

ConfigUpdateServiceUnavailableCode is the HTTP code returned for type ConfigUpdateServiceUnavailable

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCreate

type ConfigCreate struct {
	Context *middleware.Context
	Handler ConfigCreateHandler
}
ConfigCreate swagger:route POST /configs/create Config configCreate

Create a config

func NewConfigCreate

func NewConfigCreate(ctx *middleware.Context, handler ConfigCreateHandler) *ConfigCreate

NewConfigCreate creates a new http.Handler for the config create operation

func (*ConfigCreate) ServeHTTP

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

type ConfigCreateBody

type ConfigCreateBody struct {
	models.ConfigSpec

	ConfigCreateParamsBodyAllOf1
}

ConfigCreateBody config create body

swagger:model ConfigCreateBody

func (*ConfigCreateBody) ContextValidate

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

ContextValidate validate this config create body based on the context it is used

func (*ConfigCreateBody) MarshalBinary

func (o *ConfigCreateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ConfigCreateBody) MarshalJSON

func (o ConfigCreateBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ConfigCreateBody) UnmarshalBinary

func (o *ConfigCreateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigCreateBody) UnmarshalJSON

func (o *ConfigCreateBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ConfigCreateBody) Validate

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

Validate validates this config create body

type ConfigCreateConflict

type ConfigCreateConflict struct {

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

ConfigCreateConflict name conflicts with an existing object

swagger:response configCreateConflict

func NewConfigCreateConflict

func NewConfigCreateConflict() *ConfigCreateConflict

NewConfigCreateConflict creates ConfigCreateConflict with default headers values

func (*ConfigCreateConflict) SetPayload

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

SetPayload sets the payload to the config create conflict response

func (*ConfigCreateConflict) WithPayload

WithPayload adds the payload to the config create conflict response

func (*ConfigCreateConflict) WriteResponse

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

WriteResponse to the client

type ConfigCreateCreated

type ConfigCreateCreated struct {

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

ConfigCreateCreated no error

swagger:response configCreateCreated

func NewConfigCreateCreated

func NewConfigCreateCreated() *ConfigCreateCreated

NewConfigCreateCreated creates ConfigCreateCreated with default headers values

func (*ConfigCreateCreated) SetPayload

func (o *ConfigCreateCreated) SetPayload(payload *models.IDResponse)

SetPayload sets the payload to the config create created response

func (*ConfigCreateCreated) WithPayload

func (o *ConfigCreateCreated) WithPayload(payload *models.IDResponse) *ConfigCreateCreated

WithPayload adds the payload to the config create created response

func (*ConfigCreateCreated) WriteResponse

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

WriteResponse to the client

type ConfigCreateHandler

type ConfigCreateHandler interface {
	Handle(ConfigCreateParams) middleware.Responder
}

ConfigCreateHandler interface for that can handle valid config create params

type ConfigCreateHandlerFunc

type ConfigCreateHandlerFunc func(ConfigCreateParams) middleware.Responder

ConfigCreateHandlerFunc turns a function with the right signature into a config create handler

func (ConfigCreateHandlerFunc) Handle

Handle executing the request and returning a response

type ConfigCreateInternalServerError

type ConfigCreateInternalServerError struct {

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

ConfigCreateInternalServerError server error

swagger:response configCreateInternalServerError

func NewConfigCreateInternalServerError

func NewConfigCreateInternalServerError() *ConfigCreateInternalServerError

NewConfigCreateInternalServerError creates ConfigCreateInternalServerError with default headers values

func (*ConfigCreateInternalServerError) SetPayload

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

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

func (*ConfigCreateInternalServerError) WithPayload

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

func (*ConfigCreateInternalServerError) WriteResponse

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

WriteResponse to the client

type ConfigCreateParams

type ConfigCreateParams struct {

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

	/*
	  In: body
	*/
	Body ConfigCreateBody
}

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

swagger:parameters ConfigCreate

func NewConfigCreateParams

func NewConfigCreateParams() ConfigCreateParams

NewConfigCreateParams creates a new ConfigCreateParams object

There are no default values defined in the spec.

func (*ConfigCreateParams) BindRequest

func (o *ConfigCreateParams) 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 NewConfigCreateParams() beforehand.

type ConfigCreateParamsBodyAllOf1

type ConfigCreateParamsBodyAllOf1 interface{}

ConfigCreateParamsBodyAllOf1 config create params body all of1 Example: {"Data":"VEhJUyBJUyBOT1QgQSBSRUFMIENFUlRJRklDQVRFCg==","Labels":{"foo":"bar"},"Name":"server.conf"}

swagger:model ConfigCreateParamsBodyAllOf1

type ConfigCreateServiceUnavailable

type ConfigCreateServiceUnavailable struct {

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

ConfigCreateServiceUnavailable node is not part of a swarm

swagger:response configCreateServiceUnavailable

func NewConfigCreateServiceUnavailable

func NewConfigCreateServiceUnavailable() *ConfigCreateServiceUnavailable

NewConfigCreateServiceUnavailable creates ConfigCreateServiceUnavailable with default headers values

func (*ConfigCreateServiceUnavailable) SetPayload

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

SetPayload sets the payload to the config create service unavailable response

func (*ConfigCreateServiceUnavailable) WithPayload

WithPayload adds the payload to the config create service unavailable response

func (*ConfigCreateServiceUnavailable) WriteResponse

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

WriteResponse to the client

type ConfigCreateURL

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

ConfigCreateURL generates an URL for the config create operation

func (*ConfigCreateURL) Build

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

Build a url path and query string

func (*ConfigCreateURL) BuildFull

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

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

func (*ConfigCreateURL) Must

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

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

func (*ConfigCreateURL) SetBasePath

func (o *ConfigCreateURL) 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 (*ConfigCreateURL) String

func (o *ConfigCreateURL) String() string

String returns the string representation of the path with query string

func (*ConfigCreateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ConfigCreateURL) WithBasePath

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

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 ConfigDelete

type ConfigDelete struct {
	Context *middleware.Context
	Handler ConfigDeleteHandler
}
ConfigDelete swagger:route DELETE /configs/{id} Config configDelete

Delete a config

func NewConfigDelete

func NewConfigDelete(ctx *middleware.Context, handler ConfigDeleteHandler) *ConfigDelete

NewConfigDelete creates a new http.Handler for the config delete operation

func (*ConfigDelete) ServeHTTP

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

type ConfigDeleteHandler

type ConfigDeleteHandler interface {
	Handle(ConfigDeleteParams) middleware.Responder
}

ConfigDeleteHandler interface for that can handle valid config delete params

type ConfigDeleteHandlerFunc

type ConfigDeleteHandlerFunc func(ConfigDeleteParams) middleware.Responder

ConfigDeleteHandlerFunc turns a function with the right signature into a config delete handler

func (ConfigDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type ConfigDeleteInternalServerError

type ConfigDeleteInternalServerError struct {

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

ConfigDeleteInternalServerError server error

swagger:response configDeleteInternalServerError

func NewConfigDeleteInternalServerError

func NewConfigDeleteInternalServerError() *ConfigDeleteInternalServerError

NewConfigDeleteInternalServerError creates ConfigDeleteInternalServerError with default headers values

func (*ConfigDeleteInternalServerError) SetPayload

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

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

func (*ConfigDeleteInternalServerError) WithPayload

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

func (*ConfigDeleteInternalServerError) WriteResponse

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

WriteResponse to the client

type ConfigDeleteNoContent

type ConfigDeleteNoContent struct {
}

ConfigDeleteNoContent no error

swagger:response configDeleteNoContent

func NewConfigDeleteNoContent

func NewConfigDeleteNoContent() *ConfigDeleteNoContent

NewConfigDeleteNoContent creates ConfigDeleteNoContent with default headers values

func (*ConfigDeleteNoContent) WriteResponse

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

WriteResponse to the client

type ConfigDeleteNotFound

type ConfigDeleteNotFound struct {

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

ConfigDeleteNotFound config not found

swagger:response configDeleteNotFound

func NewConfigDeleteNotFound

func NewConfigDeleteNotFound() *ConfigDeleteNotFound

NewConfigDeleteNotFound creates ConfigDeleteNotFound with default headers values

func (*ConfigDeleteNotFound) SetPayload

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

SetPayload sets the payload to the config delete not found response

func (*ConfigDeleteNotFound) WithPayload

WithPayload adds the payload to the config delete not found response

func (*ConfigDeleteNotFound) WriteResponse

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

WriteResponse to the client

type ConfigDeleteParams

type ConfigDeleteParams struct {

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

	/*ID of the config
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters ConfigDelete

func NewConfigDeleteParams

func NewConfigDeleteParams() ConfigDeleteParams

NewConfigDeleteParams creates a new ConfigDeleteParams object

There are no default values defined in the spec.

func (*ConfigDeleteParams) BindRequest

func (o *ConfigDeleteParams) 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 NewConfigDeleteParams() beforehand.

type ConfigDeleteServiceUnavailable

type ConfigDeleteServiceUnavailable struct {

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

ConfigDeleteServiceUnavailable node is not part of a swarm

swagger:response configDeleteServiceUnavailable

func NewConfigDeleteServiceUnavailable

func NewConfigDeleteServiceUnavailable() *ConfigDeleteServiceUnavailable

NewConfigDeleteServiceUnavailable creates ConfigDeleteServiceUnavailable with default headers values

func (*ConfigDeleteServiceUnavailable) SetPayload

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

SetPayload sets the payload to the config delete service unavailable response

func (*ConfigDeleteServiceUnavailable) WithPayload

WithPayload adds the payload to the config delete service unavailable response

func (*ConfigDeleteServiceUnavailable) WriteResponse

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

WriteResponse to the client

type ConfigDeleteURL

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

ConfigDeleteURL generates an URL for the config delete operation

func (*ConfigDeleteURL) Build

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

Build a url path and query string

func (*ConfigDeleteURL) BuildFull

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

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

func (*ConfigDeleteURL) Must

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

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

func (*ConfigDeleteURL) SetBasePath

func (o *ConfigDeleteURL) 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 (*ConfigDeleteURL) String

func (o *ConfigDeleteURL) String() string

String returns the string representation of the path with query string

func (*ConfigDeleteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ConfigDeleteURL) WithBasePath

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

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 ConfigInspect

type ConfigInspect struct {
	Context *middleware.Context
	Handler ConfigInspectHandler
}
ConfigInspect swagger:route GET /configs/{id} Config configInspect

Inspect a config

func NewConfigInspect

func NewConfigInspect(ctx *middleware.Context, handler ConfigInspectHandler) *ConfigInspect

NewConfigInspect creates a new http.Handler for the config inspect operation

func (*ConfigInspect) ServeHTTP

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

type ConfigInspectHandler

type ConfigInspectHandler interface {
	Handle(ConfigInspectParams) middleware.Responder
}

ConfigInspectHandler interface for that can handle valid config inspect params

type ConfigInspectHandlerFunc

type ConfigInspectHandlerFunc func(ConfigInspectParams) middleware.Responder

ConfigInspectHandlerFunc turns a function with the right signature into a config inspect handler

func (ConfigInspectHandlerFunc) Handle

Handle executing the request and returning a response

type ConfigInspectInternalServerError

type ConfigInspectInternalServerError struct {

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

ConfigInspectInternalServerError server error

swagger:response configInspectInternalServerError

func NewConfigInspectInternalServerError

func NewConfigInspectInternalServerError() *ConfigInspectInternalServerError

NewConfigInspectInternalServerError creates ConfigInspectInternalServerError with default headers values

func (*ConfigInspectInternalServerError) SetPayload

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

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

func (*ConfigInspectInternalServerError) WithPayload

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

func (*ConfigInspectInternalServerError) WriteResponse

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

WriteResponse to the client

type ConfigInspectNotFound

type ConfigInspectNotFound struct {

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

ConfigInspectNotFound config not found

swagger:response configInspectNotFound

func NewConfigInspectNotFound

func NewConfigInspectNotFound() *ConfigInspectNotFound

NewConfigInspectNotFound creates ConfigInspectNotFound with default headers values

func (*ConfigInspectNotFound) SetPayload

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

SetPayload sets the payload to the config inspect not found response

func (*ConfigInspectNotFound) WithPayload

WithPayload adds the payload to the config inspect not found response

func (*ConfigInspectNotFound) WriteResponse

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

WriteResponse to the client

type ConfigInspectOK

type ConfigInspectOK struct {

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

ConfigInspectOK no error

swagger:response configInspectOK

func NewConfigInspectOK

func NewConfigInspectOK() *ConfigInspectOK

NewConfigInspectOK creates ConfigInspectOK with default headers values

func (*ConfigInspectOK) SetPayload

func (o *ConfigInspectOK) SetPayload(payload *models.Config)

SetPayload sets the payload to the config inspect o k response

func (*ConfigInspectOK) WithPayload

func (o *ConfigInspectOK) WithPayload(payload *models.Config) *ConfigInspectOK

WithPayload adds the payload to the config inspect o k response

func (*ConfigInspectOK) WriteResponse

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

WriteResponse to the client

type ConfigInspectParams

type ConfigInspectParams struct {

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

	/*ID of the config
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters ConfigInspect

func NewConfigInspectParams

func NewConfigInspectParams() ConfigInspectParams

NewConfigInspectParams creates a new ConfigInspectParams object

There are no default values defined in the spec.

func (*ConfigInspectParams) BindRequest

func (o *ConfigInspectParams) 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 NewConfigInspectParams() beforehand.

type ConfigInspectServiceUnavailable

type ConfigInspectServiceUnavailable struct {

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

ConfigInspectServiceUnavailable node is not part of a swarm

swagger:response configInspectServiceUnavailable

func NewConfigInspectServiceUnavailable

func NewConfigInspectServiceUnavailable() *ConfigInspectServiceUnavailable

NewConfigInspectServiceUnavailable creates ConfigInspectServiceUnavailable with default headers values

func (*ConfigInspectServiceUnavailable) SetPayload

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

SetPayload sets the payload to the config inspect service unavailable response

func (*ConfigInspectServiceUnavailable) WithPayload

WithPayload adds the payload to the config inspect service unavailable response

func (*ConfigInspectServiceUnavailable) WriteResponse

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

WriteResponse to the client

type ConfigInspectURL

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

ConfigInspectURL generates an URL for the config inspect operation

func (*ConfigInspectURL) Build

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

Build a url path and query string

func (*ConfigInspectURL) BuildFull

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

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

func (*ConfigInspectURL) Must

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

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

func (*ConfigInspectURL) SetBasePath

func (o *ConfigInspectURL) 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 (*ConfigInspectURL) String

func (o *ConfigInspectURL) String() string

String returns the string representation of the path with query string

func (*ConfigInspectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ConfigInspectURL) WithBasePath

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

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 ConfigList

type ConfigList struct {
	Context *middleware.Context
	Handler ConfigListHandler
}
ConfigList swagger:route GET /configs Config configList

List configs

func NewConfigList

func NewConfigList(ctx *middleware.Context, handler ConfigListHandler) *ConfigList

NewConfigList creates a new http.Handler for the config list operation

func (*ConfigList) ServeHTTP

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

type ConfigListHandler

type ConfigListHandler interface {
	Handle(ConfigListParams) middleware.Responder
}

ConfigListHandler interface for that can handle valid config list params

type ConfigListHandlerFunc

type ConfigListHandlerFunc func(ConfigListParams) middleware.Responder

ConfigListHandlerFunc turns a function with the right signature into a config list handler

func (ConfigListHandlerFunc) Handle

Handle executing the request and returning a response

type ConfigListInternalServerError

type ConfigListInternalServerError struct {

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

ConfigListInternalServerError server error

swagger:response configListInternalServerError

func NewConfigListInternalServerError

func NewConfigListInternalServerError() *ConfigListInternalServerError

NewConfigListInternalServerError creates ConfigListInternalServerError with default headers values

func (*ConfigListInternalServerError) SetPayload

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

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

func (*ConfigListInternalServerError) WithPayload

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

func (*ConfigListInternalServerError) WriteResponse

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

WriteResponse to the client

type ConfigListOK

type ConfigListOK struct {

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

ConfigListOK no error

swagger:response configListOK

func NewConfigListOK

func NewConfigListOK() *ConfigListOK

NewConfigListOK creates ConfigListOK with default headers values

func (*ConfigListOK) SetPayload

func (o *ConfigListOK) SetPayload(payload []*models.Config)

SetPayload sets the payload to the config list o k response

func (*ConfigListOK) WithPayload

func (o *ConfigListOK) WithPayload(payload []*models.Config) *ConfigListOK

WithPayload adds the payload to the config list o k response

func (*ConfigListOK) WriteResponse

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

WriteResponse to the client

type ConfigListParams

type ConfigListParams struct {

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

	/*A JSON encoded value of the filters (a `map[string][]string`) to
	process on the configs list.

	Available filters:

	- `id=<config id>`
	- `label=<key> or label=<key>=value`
	- `name=<config name>`
	- `names=<config name>`

	  In: query
	*/
	Filters *string
}

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

swagger:parameters ConfigList

func NewConfigListParams

func NewConfigListParams() ConfigListParams

NewConfigListParams creates a new ConfigListParams object

There are no default values defined in the spec.

func (*ConfigListParams) BindRequest

func (o *ConfigListParams) 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 NewConfigListParams() beforehand.

type ConfigListServiceUnavailable

type ConfigListServiceUnavailable struct {

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

ConfigListServiceUnavailable node is not part of a swarm

swagger:response configListServiceUnavailable

func NewConfigListServiceUnavailable

func NewConfigListServiceUnavailable() *ConfigListServiceUnavailable

NewConfigListServiceUnavailable creates ConfigListServiceUnavailable with default headers values

func (*ConfigListServiceUnavailable) SetPayload

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

SetPayload sets the payload to the config list service unavailable response

func (*ConfigListServiceUnavailable) WithPayload

WithPayload adds the payload to the config list service unavailable response

func (*ConfigListServiceUnavailable) WriteResponse

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

WriteResponse to the client

type ConfigListURL

type ConfigListURL struct {
	Filters *string
	// contains filtered or unexported fields
}

ConfigListURL generates an URL for the config list operation

func (*ConfigListURL) Build

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

Build a url path and query string

func (*ConfigListURL) BuildFull

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

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

func (*ConfigListURL) Must

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

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

func (*ConfigListURL) SetBasePath

func (o *ConfigListURL) 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 (*ConfigListURL) String

func (o *ConfigListURL) String() string

String returns the string representation of the path with query string

func (*ConfigListURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ConfigListURL) WithBasePath

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

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 ConfigUpdate

type ConfigUpdate struct {
	Context *middleware.Context
	Handler ConfigUpdateHandler
}
ConfigUpdate swagger:route POST /configs/{id}/update Config configUpdate

Update a Config

func NewConfigUpdate

func NewConfigUpdate(ctx *middleware.Context, handler ConfigUpdateHandler) *ConfigUpdate

NewConfigUpdate creates a new http.Handler for the config update operation

func (*ConfigUpdate) ServeHTTP

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

type ConfigUpdateBadRequest

type ConfigUpdateBadRequest struct {

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

ConfigUpdateBadRequest bad parameter

swagger:response configUpdateBadRequest

func NewConfigUpdateBadRequest

func NewConfigUpdateBadRequest() *ConfigUpdateBadRequest

NewConfigUpdateBadRequest creates ConfigUpdateBadRequest with default headers values

func (*ConfigUpdateBadRequest) SetPayload

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

SetPayload sets the payload to the config update bad request response

func (*ConfigUpdateBadRequest) WithPayload

WithPayload adds the payload to the config update bad request response

func (*ConfigUpdateBadRequest) WriteResponse

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

WriteResponse to the client

type ConfigUpdateHandler

type ConfigUpdateHandler interface {
	Handle(ConfigUpdateParams) middleware.Responder
}

ConfigUpdateHandler interface for that can handle valid config update params

type ConfigUpdateHandlerFunc

type ConfigUpdateHandlerFunc func(ConfigUpdateParams) middleware.Responder

ConfigUpdateHandlerFunc turns a function with the right signature into a config update handler

func (ConfigUpdateHandlerFunc) Handle

Handle executing the request and returning a response

type ConfigUpdateInternalServerError

type ConfigUpdateInternalServerError struct {

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

ConfigUpdateInternalServerError server error

swagger:response configUpdateInternalServerError

func NewConfigUpdateInternalServerError

func NewConfigUpdateInternalServerError() *ConfigUpdateInternalServerError

NewConfigUpdateInternalServerError creates ConfigUpdateInternalServerError with default headers values

func (*ConfigUpdateInternalServerError) SetPayload

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

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

func (*ConfigUpdateInternalServerError) WithPayload

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

func (*ConfigUpdateInternalServerError) WriteResponse

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

WriteResponse to the client

type ConfigUpdateNotFound

type ConfigUpdateNotFound struct {

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

ConfigUpdateNotFound no such config

swagger:response configUpdateNotFound

func NewConfigUpdateNotFound

func NewConfigUpdateNotFound() *ConfigUpdateNotFound

NewConfigUpdateNotFound creates ConfigUpdateNotFound with default headers values

func (*ConfigUpdateNotFound) SetPayload

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

SetPayload sets the payload to the config update not found response

func (*ConfigUpdateNotFound) WithPayload

WithPayload adds the payload to the config update not found response

func (*ConfigUpdateNotFound) WriteResponse

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

WriteResponse to the client

type ConfigUpdateOK

type ConfigUpdateOK struct {
}

ConfigUpdateOK no error

swagger:response configUpdateOK

func NewConfigUpdateOK

func NewConfigUpdateOK() *ConfigUpdateOK

NewConfigUpdateOK creates ConfigUpdateOK with default headers values

func (*ConfigUpdateOK) WriteResponse

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

WriteResponse to the client

type ConfigUpdateParams

type ConfigUpdateParams struct {

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

	/*The spec of the config to update. Currently, only the Labels field
	can be updated. All other fields must remain unchanged from the
	[ConfigInspect endpoint](#operation/ConfigInspect) response values.

	  In: body
	*/
	Body *models.ConfigSpec
	/*The ID or name of the config
	  Required: true
	  In: path
	*/
	ID string
	/*The version number of the config object being updated. This is
	required to avoid conflicting writes.

	  Required: true
	  In: query
	*/
	Version int64
}

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

swagger:parameters ConfigUpdate

func NewConfigUpdateParams

func NewConfigUpdateParams() ConfigUpdateParams

NewConfigUpdateParams creates a new ConfigUpdateParams object

There are no default values defined in the spec.

func (*ConfigUpdateParams) BindRequest

func (o *ConfigUpdateParams) 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 NewConfigUpdateParams() beforehand.

type ConfigUpdateServiceUnavailable

type ConfigUpdateServiceUnavailable struct {

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

ConfigUpdateServiceUnavailable node is not part of a swarm

swagger:response configUpdateServiceUnavailable

func NewConfigUpdateServiceUnavailable

func NewConfigUpdateServiceUnavailable() *ConfigUpdateServiceUnavailable

NewConfigUpdateServiceUnavailable creates ConfigUpdateServiceUnavailable with default headers values

func (*ConfigUpdateServiceUnavailable) SetPayload

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

SetPayload sets the payload to the config update service unavailable response

func (*ConfigUpdateServiceUnavailable) WithPayload

WithPayload adds the payload to the config update service unavailable response

func (*ConfigUpdateServiceUnavailable) WriteResponse

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

WriteResponse to the client

type ConfigUpdateURL

type ConfigUpdateURL struct {
	ID string

	Version int64
	// contains filtered or unexported fields
}

ConfigUpdateURL generates an URL for the config update operation

func (*ConfigUpdateURL) Build

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

Build a url path and query string

func (*ConfigUpdateURL) BuildFull

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

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

func (*ConfigUpdateURL) Must

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

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

func (*ConfigUpdateURL) SetBasePath

func (o *ConfigUpdateURL) 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 (*ConfigUpdateURL) String

func (o *ConfigUpdateURL) String() string

String returns the string representation of the path with query string

func (*ConfigUpdateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ConfigUpdateURL) WithBasePath

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

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