Documentation ¶
Index ¶
- Constants
- type SecretCreate
- type SecretCreateBody
- func (o *SecretCreateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *SecretCreateBody) MarshalBinary() ([]byte, error)
- func (o SecretCreateBody) MarshalJSON() ([]byte, error)
- func (o *SecretCreateBody) UnmarshalBinary(b []byte) error
- func (o *SecretCreateBody) UnmarshalJSON(raw []byte) error
- func (o *SecretCreateBody) Validate(formats strfmt.Registry) error
- type SecretCreateConflict
- type SecretCreateCreated
- type SecretCreateHandler
- type SecretCreateHandlerFunc
- type SecretCreateInternalServerError
- func (o *SecretCreateInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SecretCreateInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretCreateInternalServerError
- func (o *SecretCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretCreateParams
- type SecretCreateParamsBodyAllOf1
- type SecretCreateServiceUnavailable
- func (o *SecretCreateServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SecretCreateServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretCreateServiceUnavailable
- func (o *SecretCreateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretCreateURL
- func (o *SecretCreateURL) Build() (*url.URL, error)
- func (o *SecretCreateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SecretCreateURL) Must(u *url.URL, err error) *url.URL
- func (o *SecretCreateURL) SetBasePath(bp string)
- func (o *SecretCreateURL) String() string
- func (o *SecretCreateURL) StringFull(scheme, host string) string
- func (o *SecretCreateURL) WithBasePath(bp string) *SecretCreateURL
- type SecretDelete
- type SecretDeleteHandler
- type SecretDeleteHandlerFunc
- type SecretDeleteInternalServerError
- func (o *SecretDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SecretDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretDeleteInternalServerError
- func (o *SecretDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretDeleteNoContent
- type SecretDeleteNotFound
- type SecretDeleteParams
- type SecretDeleteServiceUnavailable
- func (o *SecretDeleteServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SecretDeleteServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretDeleteServiceUnavailable
- func (o *SecretDeleteServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretDeleteURL
- func (o *SecretDeleteURL) Build() (*url.URL, error)
- func (o *SecretDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SecretDeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *SecretDeleteURL) SetBasePath(bp string)
- func (o *SecretDeleteURL) String() string
- func (o *SecretDeleteURL) StringFull(scheme, host string) string
- func (o *SecretDeleteURL) WithBasePath(bp string) *SecretDeleteURL
- type SecretInspect
- type SecretInspectHandler
- type SecretInspectHandlerFunc
- type SecretInspectInternalServerError
- func (o *SecretInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SecretInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretInspectInternalServerError
- func (o *SecretInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretInspectNotFound
- type SecretInspectOK
- type SecretInspectParams
- type SecretInspectServiceUnavailable
- func (o *SecretInspectServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SecretInspectServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretInspectServiceUnavailable
- func (o *SecretInspectServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretInspectURL
- func (o *SecretInspectURL) Build() (*url.URL, error)
- func (o *SecretInspectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SecretInspectURL) Must(u *url.URL, err error) *url.URL
- func (o *SecretInspectURL) SetBasePath(bp string)
- func (o *SecretInspectURL) String() string
- func (o *SecretInspectURL) StringFull(scheme, host string) string
- func (o *SecretInspectURL) WithBasePath(bp string) *SecretInspectURL
- type SecretList
- type SecretListHandler
- type SecretListHandlerFunc
- type SecretListInternalServerError
- func (o *SecretListInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SecretListInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretListInternalServerError
- func (o *SecretListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretListOK
- type SecretListParams
- type SecretListServiceUnavailable
- type SecretListURL
- func (o *SecretListURL) Build() (*url.URL, error)
- func (o *SecretListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SecretListURL) Must(u *url.URL, err error) *url.URL
- func (o *SecretListURL) SetBasePath(bp string)
- func (o *SecretListURL) String() string
- func (o *SecretListURL) StringFull(scheme, host string) string
- func (o *SecretListURL) WithBasePath(bp string) *SecretListURL
- type SecretUpdate
- type SecretUpdateBadRequest
- type SecretUpdateHandler
- type SecretUpdateHandlerFunc
- type SecretUpdateInternalServerError
- func (o *SecretUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *SecretUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretUpdateInternalServerError
- func (o *SecretUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretUpdateNotFound
- type SecretUpdateOK
- type SecretUpdateParams
- type SecretUpdateServiceUnavailable
- func (o *SecretUpdateServiceUnavailable) SetPayload(payload *models.ErrorResponse)
- func (o *SecretUpdateServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretUpdateServiceUnavailable
- func (o *SecretUpdateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SecretUpdateURL
- func (o *SecretUpdateURL) Build() (*url.URL, error)
- func (o *SecretUpdateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SecretUpdateURL) Must(u *url.URL, err error) *url.URL
- func (o *SecretUpdateURL) SetBasePath(bp string)
- func (o *SecretUpdateURL) String() string
- func (o *SecretUpdateURL) StringFull(scheme, host string) string
- func (o *SecretUpdateURL) WithBasePath(bp string) *SecretUpdateURL
Constants ¶
const SecretCreateConflictCode int = 409
SecretCreateConflictCode is the HTTP code returned for type SecretCreateConflict
const SecretCreateCreatedCode int = 201
SecretCreateCreatedCode is the HTTP code returned for type SecretCreateCreated
const SecretCreateInternalServerErrorCode int = 500
SecretCreateInternalServerErrorCode is the HTTP code returned for type SecretCreateInternalServerError
SecretCreateServiceUnavailableCode is the HTTP code returned for type SecretCreateServiceUnavailable
const SecretDeleteInternalServerErrorCode int = 500
SecretDeleteInternalServerErrorCode is the HTTP code returned for type SecretDeleteInternalServerError
const SecretDeleteNoContentCode int = 204
SecretDeleteNoContentCode is the HTTP code returned for type SecretDeleteNoContent
const SecretDeleteNotFoundCode int = 404
SecretDeleteNotFoundCode is the HTTP code returned for type SecretDeleteNotFound
SecretDeleteServiceUnavailableCode is the HTTP code returned for type SecretDeleteServiceUnavailable
const SecretInspectInternalServerErrorCode int = 500
SecretInspectInternalServerErrorCode is the HTTP code returned for type SecretInspectInternalServerError
const SecretInspectNotFoundCode int = 404
SecretInspectNotFoundCode is the HTTP code returned for type SecretInspectNotFound
const SecretInspectOKCode int = 200
SecretInspectOKCode is the HTTP code returned for type SecretInspectOK
SecretInspectServiceUnavailableCode is the HTTP code returned for type SecretInspectServiceUnavailable
const SecretListInternalServerErrorCode int = 500
SecretListInternalServerErrorCode is the HTTP code returned for type SecretListInternalServerError
const SecretListOKCode int = 200
SecretListOKCode is the HTTP code returned for type SecretListOK
SecretListServiceUnavailableCode is the HTTP code returned for type SecretListServiceUnavailable
const SecretUpdateBadRequestCode int = 400
SecretUpdateBadRequestCode is the HTTP code returned for type SecretUpdateBadRequest
const SecretUpdateInternalServerErrorCode int = 500
SecretUpdateInternalServerErrorCode is the HTTP code returned for type SecretUpdateInternalServerError
const SecretUpdateNotFoundCode int = 404
SecretUpdateNotFoundCode is the HTTP code returned for type SecretUpdateNotFound
const SecretUpdateOKCode int = 200
SecretUpdateOKCode is the HTTP code returned for type SecretUpdateOK
SecretUpdateServiceUnavailableCode is the HTTP code returned for type SecretUpdateServiceUnavailable
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretCreate ¶
type SecretCreate struct { Context *middleware.Context Handler SecretCreateHandler }
SecretCreate swagger:route POST /secrets/create Secret secretCreate
Create a secret
func NewSecretCreate ¶
func NewSecretCreate(ctx *middleware.Context, handler SecretCreateHandler) *SecretCreate
NewSecretCreate creates a new http.Handler for the secret create operation
func (*SecretCreate) ServeHTTP ¶
func (o *SecretCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SecretCreateBody ¶
type SecretCreateBody struct { models.SecretSpec SecretCreateParamsBodyAllOf1 }
SecretCreateBody secret create body
swagger:model SecretCreateBody
func (*SecretCreateBody) ContextValidate ¶
ContextValidate validate this secret create body based on the context it is used
func (*SecretCreateBody) MarshalBinary ¶
func (o *SecretCreateBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SecretCreateBody) MarshalJSON ¶
func (o SecretCreateBody) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*SecretCreateBody) UnmarshalBinary ¶
func (o *SecretCreateBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SecretCreateBody) UnmarshalJSON ¶
func (o *SecretCreateBody) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type SecretCreateConflict ¶
type SecretCreateConflict struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretCreateConflict name conflicts with an existing object
swagger:response secretCreateConflict
func NewSecretCreateConflict ¶
func NewSecretCreateConflict() *SecretCreateConflict
NewSecretCreateConflict creates SecretCreateConflict with default headers values
func (*SecretCreateConflict) SetPayload ¶
func (o *SecretCreateConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret create conflict response
func (*SecretCreateConflict) WithPayload ¶
func (o *SecretCreateConflict) WithPayload(payload *models.ErrorResponse) *SecretCreateConflict
WithPayload adds the payload to the secret create conflict response
func (*SecretCreateConflict) WriteResponse ¶
func (o *SecretCreateConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretCreateCreated ¶
type SecretCreateCreated struct { /* In: Body */ Payload *models.IDResponse `json:"body,omitempty"` }
SecretCreateCreated no error
swagger:response secretCreateCreated
func NewSecretCreateCreated ¶
func NewSecretCreateCreated() *SecretCreateCreated
NewSecretCreateCreated creates SecretCreateCreated with default headers values
func (*SecretCreateCreated) SetPayload ¶
func (o *SecretCreateCreated) SetPayload(payload *models.IDResponse)
SetPayload sets the payload to the secret create created response
func (*SecretCreateCreated) WithPayload ¶
func (o *SecretCreateCreated) WithPayload(payload *models.IDResponse) *SecretCreateCreated
WithPayload adds the payload to the secret create created response
func (*SecretCreateCreated) WriteResponse ¶
func (o *SecretCreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretCreateHandler ¶
type SecretCreateHandler interface {
Handle(SecretCreateParams) middleware.Responder
}
SecretCreateHandler interface for that can handle valid secret create params
type SecretCreateHandlerFunc ¶
type SecretCreateHandlerFunc func(SecretCreateParams) middleware.Responder
SecretCreateHandlerFunc turns a function with the right signature into a secret create handler
func (SecretCreateHandlerFunc) Handle ¶
func (fn SecretCreateHandlerFunc) Handle(params SecretCreateParams) middleware.Responder
Handle executing the request and returning a response
type SecretCreateInternalServerError ¶
type SecretCreateInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretCreateInternalServerError server error
swagger:response secretCreateInternalServerError
func NewSecretCreateInternalServerError ¶
func NewSecretCreateInternalServerError() *SecretCreateInternalServerError
NewSecretCreateInternalServerError creates SecretCreateInternalServerError with default headers values
func (*SecretCreateInternalServerError) SetPayload ¶
func (o *SecretCreateInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret create internal server error response
func (*SecretCreateInternalServerError) WithPayload ¶
func (o *SecretCreateInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretCreateInternalServerError
WithPayload adds the payload to the secret create internal server error response
func (*SecretCreateInternalServerError) WriteResponse ¶
func (o *SecretCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretCreateParams ¶
type SecretCreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body SecretCreateBody }
SecretCreateParams contains all the bound params for the secret create operation typically these are obtained from a http.Request
swagger:parameters SecretCreate
func NewSecretCreateParams ¶
func NewSecretCreateParams() SecretCreateParams
NewSecretCreateParams creates a new SecretCreateParams object
There are no default values defined in the spec.
func (*SecretCreateParams) BindRequest ¶
func (o *SecretCreateParams) 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 NewSecretCreateParams() beforehand.
type SecretCreateParamsBodyAllOf1 ¶
type SecretCreateParamsBodyAllOf1 interface{}
SecretCreateParamsBodyAllOf1 secret create params body all of1 Example: {"Data":"VEhJUyBJUyBOT1QgQSBSRUFMIENFUlRJRklDQVRFCg==","Driver":{"Name":"secret-bucket","Options":{"OptionA":"value for driver option A","OptionB":"value for driver option B"}},"Labels":{"foo":"bar"},"Name":"app-key.crt"}
swagger:model SecretCreateParamsBodyAllOf1
type SecretCreateServiceUnavailable ¶
type SecretCreateServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
SecretCreateServiceUnavailable node is not part of a swarm
swagger:response secretCreateServiceUnavailable
func NewSecretCreateServiceUnavailable ¶
func NewSecretCreateServiceUnavailable() *SecretCreateServiceUnavailable
NewSecretCreateServiceUnavailable creates SecretCreateServiceUnavailable with default headers values
func (*SecretCreateServiceUnavailable) SetPayload ¶
func (o *SecretCreateServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret create service unavailable response
func (*SecretCreateServiceUnavailable) WithPayload ¶
func (o *SecretCreateServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretCreateServiceUnavailable
WithPayload adds the payload to the secret create service unavailable response
func (*SecretCreateServiceUnavailable) WriteResponse ¶
func (o *SecretCreateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretCreateURL ¶
type SecretCreateURL struct {
// contains filtered or unexported fields
}
SecretCreateURL generates an URL for the secret create operation
func (*SecretCreateURL) Build ¶
func (o *SecretCreateURL) Build() (*url.URL, error)
Build a url path and query string
func (*SecretCreateURL) BuildFull ¶
func (o *SecretCreateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SecretCreateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SecretCreateURL) SetBasePath ¶
func (o *SecretCreateURL) 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 (*SecretCreateURL) String ¶
func (o *SecretCreateURL) String() string
String returns the string representation of the path with query string
func (*SecretCreateURL) StringFull ¶
func (o *SecretCreateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SecretCreateURL) WithBasePath ¶
func (o *SecretCreateURL) WithBasePath(bp string) *SecretCreateURL
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 SecretDelete ¶
type SecretDelete struct { Context *middleware.Context Handler SecretDeleteHandler }
SecretDelete swagger:route DELETE /secrets/{id} Secret secretDelete
Delete a secret
func NewSecretDelete ¶
func NewSecretDelete(ctx *middleware.Context, handler SecretDeleteHandler) *SecretDelete
NewSecretDelete creates a new http.Handler for the secret delete operation
func (*SecretDelete) ServeHTTP ¶
func (o *SecretDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SecretDeleteHandler ¶
type SecretDeleteHandler interface {
Handle(SecretDeleteParams) middleware.Responder
}
SecretDeleteHandler interface for that can handle valid secret delete params
type SecretDeleteHandlerFunc ¶
type SecretDeleteHandlerFunc func(SecretDeleteParams) middleware.Responder
SecretDeleteHandlerFunc turns a function with the right signature into a secret delete handler
func (SecretDeleteHandlerFunc) Handle ¶
func (fn SecretDeleteHandlerFunc) Handle(params SecretDeleteParams) middleware.Responder
Handle executing the request and returning a response
type SecretDeleteInternalServerError ¶
type SecretDeleteInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretDeleteInternalServerError server error
swagger:response secretDeleteInternalServerError
func NewSecretDeleteInternalServerError ¶
func NewSecretDeleteInternalServerError() *SecretDeleteInternalServerError
NewSecretDeleteInternalServerError creates SecretDeleteInternalServerError with default headers values
func (*SecretDeleteInternalServerError) SetPayload ¶
func (o *SecretDeleteInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret delete internal server error response
func (*SecretDeleteInternalServerError) WithPayload ¶
func (o *SecretDeleteInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretDeleteInternalServerError
WithPayload adds the payload to the secret delete internal server error response
func (*SecretDeleteInternalServerError) WriteResponse ¶
func (o *SecretDeleteInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretDeleteNoContent ¶
type SecretDeleteNoContent struct { }
SecretDeleteNoContent no error
swagger:response secretDeleteNoContent
func NewSecretDeleteNoContent ¶
func NewSecretDeleteNoContent() *SecretDeleteNoContent
NewSecretDeleteNoContent creates SecretDeleteNoContent with default headers values
func (*SecretDeleteNoContent) WriteResponse ¶
func (o *SecretDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretDeleteNotFound ¶
type SecretDeleteNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretDeleteNotFound secret not found
swagger:response secretDeleteNotFound
func NewSecretDeleteNotFound ¶
func NewSecretDeleteNotFound() *SecretDeleteNotFound
NewSecretDeleteNotFound creates SecretDeleteNotFound with default headers values
func (*SecretDeleteNotFound) SetPayload ¶
func (o *SecretDeleteNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret delete not found response
func (*SecretDeleteNotFound) WithPayload ¶
func (o *SecretDeleteNotFound) WithPayload(payload *models.ErrorResponse) *SecretDeleteNotFound
WithPayload adds the payload to the secret delete not found response
func (*SecretDeleteNotFound) WriteResponse ¶
func (o *SecretDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretDeleteParams ¶
type SecretDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the secret Required: true In: path */ ID string }
SecretDeleteParams contains all the bound params for the secret delete operation typically these are obtained from a http.Request
swagger:parameters SecretDelete
func NewSecretDeleteParams ¶
func NewSecretDeleteParams() SecretDeleteParams
NewSecretDeleteParams creates a new SecretDeleteParams object
There are no default values defined in the spec.
func (*SecretDeleteParams) BindRequest ¶
func (o *SecretDeleteParams) 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 NewSecretDeleteParams() beforehand.
type SecretDeleteServiceUnavailable ¶
type SecretDeleteServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
SecretDeleteServiceUnavailable node is not part of a swarm
swagger:response secretDeleteServiceUnavailable
func NewSecretDeleteServiceUnavailable ¶
func NewSecretDeleteServiceUnavailable() *SecretDeleteServiceUnavailable
NewSecretDeleteServiceUnavailable creates SecretDeleteServiceUnavailable with default headers values
func (*SecretDeleteServiceUnavailable) SetPayload ¶
func (o *SecretDeleteServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret delete service unavailable response
func (*SecretDeleteServiceUnavailable) WithPayload ¶
func (o *SecretDeleteServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretDeleteServiceUnavailable
WithPayload adds the payload to the secret delete service unavailable response
func (*SecretDeleteServiceUnavailable) WriteResponse ¶
func (o *SecretDeleteServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretDeleteURL ¶
type SecretDeleteURL struct { ID string // contains filtered or unexported fields }
SecretDeleteURL generates an URL for the secret delete operation
func (*SecretDeleteURL) Build ¶
func (o *SecretDeleteURL) Build() (*url.URL, error)
Build a url path and query string
func (*SecretDeleteURL) BuildFull ¶
func (o *SecretDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SecretDeleteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SecretDeleteURL) SetBasePath ¶
func (o *SecretDeleteURL) 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 (*SecretDeleteURL) String ¶
func (o *SecretDeleteURL) String() string
String returns the string representation of the path with query string
func (*SecretDeleteURL) StringFull ¶
func (o *SecretDeleteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SecretDeleteURL) WithBasePath ¶
func (o *SecretDeleteURL) WithBasePath(bp string) *SecretDeleteURL
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 SecretInspect ¶
type SecretInspect struct { Context *middleware.Context Handler SecretInspectHandler }
SecretInspect swagger:route GET /secrets/{id} Secret secretInspect
Inspect a secret
func NewSecretInspect ¶
func NewSecretInspect(ctx *middleware.Context, handler SecretInspectHandler) *SecretInspect
NewSecretInspect creates a new http.Handler for the secret inspect operation
func (*SecretInspect) ServeHTTP ¶
func (o *SecretInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SecretInspectHandler ¶
type SecretInspectHandler interface {
Handle(SecretInspectParams) middleware.Responder
}
SecretInspectHandler interface for that can handle valid secret inspect params
type SecretInspectHandlerFunc ¶
type SecretInspectHandlerFunc func(SecretInspectParams) middleware.Responder
SecretInspectHandlerFunc turns a function with the right signature into a secret inspect handler
func (SecretInspectHandlerFunc) Handle ¶
func (fn SecretInspectHandlerFunc) Handle(params SecretInspectParams) middleware.Responder
Handle executing the request and returning a response
type SecretInspectInternalServerError ¶
type SecretInspectInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretInspectInternalServerError server error
swagger:response secretInspectInternalServerError
func NewSecretInspectInternalServerError ¶
func NewSecretInspectInternalServerError() *SecretInspectInternalServerError
NewSecretInspectInternalServerError creates SecretInspectInternalServerError with default headers values
func (*SecretInspectInternalServerError) SetPayload ¶
func (o *SecretInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret inspect internal server error response
func (*SecretInspectInternalServerError) WithPayload ¶
func (o *SecretInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretInspectInternalServerError
WithPayload adds the payload to the secret inspect internal server error response
func (*SecretInspectInternalServerError) WriteResponse ¶
func (o *SecretInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretInspectNotFound ¶
type SecretInspectNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretInspectNotFound secret not found
swagger:response secretInspectNotFound
func NewSecretInspectNotFound ¶
func NewSecretInspectNotFound() *SecretInspectNotFound
NewSecretInspectNotFound creates SecretInspectNotFound with default headers values
func (*SecretInspectNotFound) SetPayload ¶
func (o *SecretInspectNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret inspect not found response
func (*SecretInspectNotFound) WithPayload ¶
func (o *SecretInspectNotFound) WithPayload(payload *models.ErrorResponse) *SecretInspectNotFound
WithPayload adds the payload to the secret inspect not found response
func (*SecretInspectNotFound) WriteResponse ¶
func (o *SecretInspectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretInspectOK ¶
SecretInspectOK no error
swagger:response secretInspectOK
func NewSecretInspectOK ¶
func NewSecretInspectOK() *SecretInspectOK
NewSecretInspectOK creates SecretInspectOK with default headers values
func (*SecretInspectOK) SetPayload ¶
func (o *SecretInspectOK) SetPayload(payload *models.Secret)
SetPayload sets the payload to the secret inspect o k response
func (*SecretInspectOK) WithPayload ¶
func (o *SecretInspectOK) WithPayload(payload *models.Secret) *SecretInspectOK
WithPayload adds the payload to the secret inspect o k response
func (*SecretInspectOK) WriteResponse ¶
func (o *SecretInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretInspectParams ¶
type SecretInspectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the secret Required: true In: path */ ID string }
SecretInspectParams contains all the bound params for the secret inspect operation typically these are obtained from a http.Request
swagger:parameters SecretInspect
func NewSecretInspectParams ¶
func NewSecretInspectParams() SecretInspectParams
NewSecretInspectParams creates a new SecretInspectParams object
There are no default values defined in the spec.
func (*SecretInspectParams) BindRequest ¶
func (o *SecretInspectParams) 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 NewSecretInspectParams() beforehand.
type SecretInspectServiceUnavailable ¶
type SecretInspectServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
SecretInspectServiceUnavailable node is not part of a swarm
swagger:response secretInspectServiceUnavailable
func NewSecretInspectServiceUnavailable ¶
func NewSecretInspectServiceUnavailable() *SecretInspectServiceUnavailable
NewSecretInspectServiceUnavailable creates SecretInspectServiceUnavailable with default headers values
func (*SecretInspectServiceUnavailable) SetPayload ¶
func (o *SecretInspectServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret inspect service unavailable response
func (*SecretInspectServiceUnavailable) WithPayload ¶
func (o *SecretInspectServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretInspectServiceUnavailable
WithPayload adds the payload to the secret inspect service unavailable response
func (*SecretInspectServiceUnavailable) WriteResponse ¶
func (o *SecretInspectServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretInspectURL ¶
type SecretInspectURL struct { ID string // contains filtered or unexported fields }
SecretInspectURL generates an URL for the secret inspect operation
func (*SecretInspectURL) Build ¶
func (o *SecretInspectURL) Build() (*url.URL, error)
Build a url path and query string
func (*SecretInspectURL) BuildFull ¶
func (o *SecretInspectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SecretInspectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SecretInspectURL) SetBasePath ¶
func (o *SecretInspectURL) 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 (*SecretInspectURL) String ¶
func (o *SecretInspectURL) String() string
String returns the string representation of the path with query string
func (*SecretInspectURL) StringFull ¶
func (o *SecretInspectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SecretInspectURL) WithBasePath ¶
func (o *SecretInspectURL) WithBasePath(bp string) *SecretInspectURL
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 SecretList ¶
type SecretList struct { Context *middleware.Context Handler SecretListHandler }
SecretList swagger:route GET /secrets Secret secretList
List secrets
func NewSecretList ¶
func NewSecretList(ctx *middleware.Context, handler SecretListHandler) *SecretList
NewSecretList creates a new http.Handler for the secret list operation
func (*SecretList) ServeHTTP ¶
func (o *SecretList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SecretListHandler ¶
type SecretListHandler interface {
Handle(SecretListParams) middleware.Responder
}
SecretListHandler interface for that can handle valid secret list params
type SecretListHandlerFunc ¶
type SecretListHandlerFunc func(SecretListParams) middleware.Responder
SecretListHandlerFunc turns a function with the right signature into a secret list handler
func (SecretListHandlerFunc) Handle ¶
func (fn SecretListHandlerFunc) Handle(params SecretListParams) middleware.Responder
Handle executing the request and returning a response
type SecretListInternalServerError ¶
type SecretListInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretListInternalServerError server error
swagger:response secretListInternalServerError
func NewSecretListInternalServerError ¶
func NewSecretListInternalServerError() *SecretListInternalServerError
NewSecretListInternalServerError creates SecretListInternalServerError with default headers values
func (*SecretListInternalServerError) SetPayload ¶
func (o *SecretListInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret list internal server error response
func (*SecretListInternalServerError) WithPayload ¶
func (o *SecretListInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretListInternalServerError
WithPayload adds the payload to the secret list internal server error response
func (*SecretListInternalServerError) WriteResponse ¶
func (o *SecretListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretListOK ¶
SecretListOK no error
swagger:response secretListOK
func NewSecretListOK ¶
func NewSecretListOK() *SecretListOK
NewSecretListOK creates SecretListOK with default headers values
func (*SecretListOK) SetPayload ¶
func (o *SecretListOK) SetPayload(payload []*models.Secret)
SetPayload sets the payload to the secret list o k response
func (*SecretListOK) WithPayload ¶
func (o *SecretListOK) WithPayload(payload []*models.Secret) *SecretListOK
WithPayload adds the payload to the secret list o k response
func (*SecretListOK) WriteResponse ¶
func (o *SecretListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretListParams ¶
type SecretListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Available filters: - `id=<secret id>` - `label=<key> or label=<key>=value` - `name=<secret name>` - `names=<secret name>` In: query */ Filters *string }
SecretListParams contains all the bound params for the secret list operation typically these are obtained from a http.Request
swagger:parameters SecretList
func NewSecretListParams ¶
func NewSecretListParams() SecretListParams
NewSecretListParams creates a new SecretListParams object
There are no default values defined in the spec.
func (*SecretListParams) BindRequest ¶
func (o *SecretListParams) 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 NewSecretListParams() beforehand.
type SecretListServiceUnavailable ¶
type SecretListServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
SecretListServiceUnavailable node is not part of a swarm
swagger:response secretListServiceUnavailable
func NewSecretListServiceUnavailable ¶
func NewSecretListServiceUnavailable() *SecretListServiceUnavailable
NewSecretListServiceUnavailable creates SecretListServiceUnavailable with default headers values
func (*SecretListServiceUnavailable) SetPayload ¶
func (o *SecretListServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret list service unavailable response
func (*SecretListServiceUnavailable) WithPayload ¶
func (o *SecretListServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretListServiceUnavailable
WithPayload adds the payload to the secret list service unavailable response
func (*SecretListServiceUnavailable) WriteResponse ¶
func (o *SecretListServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretListURL ¶
type SecretListURL struct { Filters *string // contains filtered or unexported fields }
SecretListURL generates an URL for the secret list operation
func (*SecretListURL) Build ¶
func (o *SecretListURL) Build() (*url.URL, error)
Build a url path and query string
func (*SecretListURL) BuildFull ¶
func (o *SecretListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SecretListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SecretListURL) SetBasePath ¶
func (o *SecretListURL) 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 (*SecretListURL) String ¶
func (o *SecretListURL) String() string
String returns the string representation of the path with query string
func (*SecretListURL) StringFull ¶
func (o *SecretListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SecretListURL) WithBasePath ¶
func (o *SecretListURL) WithBasePath(bp string) *SecretListURL
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 SecretUpdate ¶
type SecretUpdate struct { Context *middleware.Context Handler SecretUpdateHandler }
SecretUpdate swagger:route POST /secrets/{id}/update Secret secretUpdate
Update a Secret
func NewSecretUpdate ¶
func NewSecretUpdate(ctx *middleware.Context, handler SecretUpdateHandler) *SecretUpdate
NewSecretUpdate creates a new http.Handler for the secret update operation
func (*SecretUpdate) ServeHTTP ¶
func (o *SecretUpdate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SecretUpdateBadRequest ¶
type SecretUpdateBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretUpdateBadRequest bad parameter
swagger:response secretUpdateBadRequest
func NewSecretUpdateBadRequest ¶
func NewSecretUpdateBadRequest() *SecretUpdateBadRequest
NewSecretUpdateBadRequest creates SecretUpdateBadRequest with default headers values
func (*SecretUpdateBadRequest) SetPayload ¶
func (o *SecretUpdateBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret update bad request response
func (*SecretUpdateBadRequest) WithPayload ¶
func (o *SecretUpdateBadRequest) WithPayload(payload *models.ErrorResponse) *SecretUpdateBadRequest
WithPayload adds the payload to the secret update bad request response
func (*SecretUpdateBadRequest) WriteResponse ¶
func (o *SecretUpdateBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretUpdateHandler ¶
type SecretUpdateHandler interface {
Handle(SecretUpdateParams) middleware.Responder
}
SecretUpdateHandler interface for that can handle valid secret update params
type SecretUpdateHandlerFunc ¶
type SecretUpdateHandlerFunc func(SecretUpdateParams) middleware.Responder
SecretUpdateHandlerFunc turns a function with the right signature into a secret update handler
func (SecretUpdateHandlerFunc) Handle ¶
func (fn SecretUpdateHandlerFunc) Handle(params SecretUpdateParams) middleware.Responder
Handle executing the request and returning a response
type SecretUpdateInternalServerError ¶
type SecretUpdateInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretUpdateInternalServerError server error
swagger:response secretUpdateInternalServerError
func NewSecretUpdateInternalServerError ¶
func NewSecretUpdateInternalServerError() *SecretUpdateInternalServerError
NewSecretUpdateInternalServerError creates SecretUpdateInternalServerError with default headers values
func (*SecretUpdateInternalServerError) SetPayload ¶
func (o *SecretUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret update internal server error response
func (*SecretUpdateInternalServerError) WithPayload ¶
func (o *SecretUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *SecretUpdateInternalServerError
WithPayload adds the payload to the secret update internal server error response
func (*SecretUpdateInternalServerError) WriteResponse ¶
func (o *SecretUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretUpdateNotFound ¶
type SecretUpdateNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
SecretUpdateNotFound no such secret
swagger:response secretUpdateNotFound
func NewSecretUpdateNotFound ¶
func NewSecretUpdateNotFound() *SecretUpdateNotFound
NewSecretUpdateNotFound creates SecretUpdateNotFound with default headers values
func (*SecretUpdateNotFound) SetPayload ¶
func (o *SecretUpdateNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret update not found response
func (*SecretUpdateNotFound) WithPayload ¶
func (o *SecretUpdateNotFound) WithPayload(payload *models.ErrorResponse) *SecretUpdateNotFound
WithPayload adds the payload to the secret update not found response
func (*SecretUpdateNotFound) WriteResponse ¶
func (o *SecretUpdateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretUpdateOK ¶
type SecretUpdateOK struct { }
SecretUpdateOK no error
swagger:response secretUpdateOK
func NewSecretUpdateOK ¶
func NewSecretUpdateOK() *SecretUpdateOK
NewSecretUpdateOK creates SecretUpdateOK with default headers values
func (*SecretUpdateOK) WriteResponse ¶
func (o *SecretUpdateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretUpdateParams ¶
type SecretUpdateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The spec of the secret to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the [SecretInspect endpoint](#operation/SecretInspect) response values. In: body */ Body *models.SecretSpec /*The ID or name of the secret Required: true In: path */ ID string /*The version number of the secret object being updated. This is required to avoid conflicting writes. Required: true In: query */ Version int64 }
SecretUpdateParams contains all the bound params for the secret update operation typically these are obtained from a http.Request
swagger:parameters SecretUpdate
func NewSecretUpdateParams ¶
func NewSecretUpdateParams() SecretUpdateParams
NewSecretUpdateParams creates a new SecretUpdateParams object
There are no default values defined in the spec.
func (*SecretUpdateParams) BindRequest ¶
func (o *SecretUpdateParams) 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 NewSecretUpdateParams() beforehand.
type SecretUpdateServiceUnavailable ¶
type SecretUpdateServiceUnavailable struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
SecretUpdateServiceUnavailable node is not part of a swarm
swagger:response secretUpdateServiceUnavailable
func NewSecretUpdateServiceUnavailable ¶
func NewSecretUpdateServiceUnavailable() *SecretUpdateServiceUnavailable
NewSecretUpdateServiceUnavailable creates SecretUpdateServiceUnavailable with default headers values
func (*SecretUpdateServiceUnavailable) SetPayload ¶
func (o *SecretUpdateServiceUnavailable) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the secret update service unavailable response
func (*SecretUpdateServiceUnavailable) WithPayload ¶
func (o *SecretUpdateServiceUnavailable) WithPayload(payload *models.ErrorResponse) *SecretUpdateServiceUnavailable
WithPayload adds the payload to the secret update service unavailable response
func (*SecretUpdateServiceUnavailable) WriteResponse ¶
func (o *SecretUpdateServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SecretUpdateURL ¶
SecretUpdateURL generates an URL for the secret update operation
func (*SecretUpdateURL) Build ¶
func (o *SecretUpdateURL) Build() (*url.URL, error)
Build a url path and query string
func (*SecretUpdateURL) BuildFull ¶
func (o *SecretUpdateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SecretUpdateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SecretUpdateURL) SetBasePath ¶
func (o *SecretUpdateURL) 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 (*SecretUpdateURL) String ¶
func (o *SecretUpdateURL) String() string
String returns the string representation of the path with query string
func (*SecretUpdateURL) StringFull ¶
func (o *SecretUpdateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SecretUpdateURL) WithBasePath ¶
func (o *SecretUpdateURL) WithBasePath(bp string) *SecretUpdateURL
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
Source Files ¶
- secret_create.go
- secret_create_parameters.go
- secret_create_responses.go
- secret_create_urlbuilder.go
- secret_delete.go
- secret_delete_parameters.go
- secret_delete_responses.go
- secret_delete_urlbuilder.go
- secret_inspect.go
- secret_inspect_parameters.go
- secret_inspect_responses.go
- secret_inspect_urlbuilder.go
- secret_list.go
- secret_list_parameters.go
- secret_list_responses.go
- secret_list_urlbuilder.go
- secret_update.go
- secret_update_parameters.go
- secret_update_responses.go
- secret_update_urlbuilder.go