secret

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 SecretCreateConflictCode int = 409

SecretCreateConflictCode is the HTTP code returned for type SecretCreateConflict

View Source
const SecretCreateCreatedCode int = 201

SecretCreateCreatedCode is the HTTP code returned for type SecretCreateCreated

View Source
const SecretCreateInternalServerErrorCode int = 500

SecretCreateInternalServerErrorCode is the HTTP code returned for type SecretCreateInternalServerError

View Source
const SecretCreateServiceUnavailableCode int = 503

SecretCreateServiceUnavailableCode is the HTTP code returned for type SecretCreateServiceUnavailable

View Source
const SecretDeleteInternalServerErrorCode int = 500

SecretDeleteInternalServerErrorCode is the HTTP code returned for type SecretDeleteInternalServerError

View Source
const SecretDeleteNoContentCode int = 204

SecretDeleteNoContentCode is the HTTP code returned for type SecretDeleteNoContent

View Source
const SecretDeleteNotFoundCode int = 404

SecretDeleteNotFoundCode is the HTTP code returned for type SecretDeleteNotFound

View Source
const SecretDeleteServiceUnavailableCode int = 503

SecretDeleteServiceUnavailableCode is the HTTP code returned for type SecretDeleteServiceUnavailable

View Source
const SecretInspectInternalServerErrorCode int = 500

SecretInspectInternalServerErrorCode is the HTTP code returned for type SecretInspectInternalServerError

View Source
const SecretInspectNotFoundCode int = 404

SecretInspectNotFoundCode is the HTTP code returned for type SecretInspectNotFound

View Source
const SecretInspectOKCode int = 200

SecretInspectOKCode is the HTTP code returned for type SecretInspectOK

View Source
const SecretInspectServiceUnavailableCode int = 503

SecretInspectServiceUnavailableCode is the HTTP code returned for type SecretInspectServiceUnavailable

View Source
const SecretListInternalServerErrorCode int = 500

SecretListInternalServerErrorCode is the HTTP code returned for type SecretListInternalServerError

View Source
const SecretListOKCode int = 200

SecretListOKCode is the HTTP code returned for type SecretListOK

View Source
const SecretListServiceUnavailableCode int = 503

SecretListServiceUnavailableCode is the HTTP code returned for type SecretListServiceUnavailable

View Source
const SecretUpdateBadRequestCode int = 400

SecretUpdateBadRequestCode is the HTTP code returned for type SecretUpdateBadRequest

View Source
const SecretUpdateInternalServerErrorCode int = 500

SecretUpdateInternalServerErrorCode is the HTTP code returned for type SecretUpdateInternalServerError

View Source
const SecretUpdateNotFoundCode int = 404

SecretUpdateNotFoundCode is the HTTP code returned for type SecretUpdateNotFound

View Source
const SecretUpdateOKCode int = 200

SecretUpdateOKCode is the HTTP code returned for type SecretUpdateOK

View Source
const SecretUpdateServiceUnavailableCode int = 503

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

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

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

func (*SecretCreateBody) Validate

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

Validate validates this secret create body

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

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

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

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 {

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

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

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

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

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

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

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

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 {

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

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

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

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

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

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

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

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

type SecretInspectOK struct {

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

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 {

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

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

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

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

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

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

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

type SecretListOK struct {

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

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 {

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

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

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

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

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

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

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

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

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 {

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

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

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

type SecretUpdateURL struct {
	ID string

	Version int64
	// contains filtered or unexported fields
}

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

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

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

Jump to

Keyboard shortcuts

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