secret

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AddSecretCreatedCode int = 201

AddSecretCreatedCode is the HTTP code returned for type AddSecretCreated

View Source
const DeleteSecretNoContentCode int = 204

DeleteSecretNoContentCode is the HTTP code returned for type DeleteSecretNoContent

View Source
const DeleteSecretNotFoundCode int = 404

DeleteSecretNotFoundCode is the HTTP code returned for type DeleteSecretNotFound

View Source
const GetSecretNotFoundCode int = 404

GetSecretNotFoundCode is the HTTP code returned for type GetSecretNotFound

View Source
const GetSecretOKCode int = 200

GetSecretOKCode is the HTTP code returned for type GetSecretOK

View Source
const GetSecretsOKCode int = 200

GetSecretsOKCode is the HTTP code returned for type GetSecretsOK

View Source
const UpdateSecretCreatedCode int = 201

UpdateSecretCreatedCode is the HTTP code returned for type UpdateSecretCreated

View Source
const UpdateSecretNotFoundCode int = 404

UpdateSecretNotFoundCode is the HTTP code returned for type UpdateSecretNotFound

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSecret

type AddSecret struct {
	Context *middleware.Context
	Handler AddSecretHandler
}

AddSecret swagger:route POST / secret addSecret

AddSecret add secret API

func NewAddSecret

func NewAddSecret(ctx *middleware.Context, handler AddSecretHandler) *AddSecret

NewAddSecret creates a new http.Handler for the add secret operation

func (*AddSecret) ServeHTTP

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

type AddSecretCreated

type AddSecretCreated struct {

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

AddSecretCreated The created secret.

swagger:response addSecretCreated

func NewAddSecretCreated

func NewAddSecretCreated() *AddSecretCreated

NewAddSecretCreated creates AddSecretCreated with default headers values

func (*AddSecretCreated) SetPayload

func (o *AddSecretCreated) SetPayload(payload *models.Secret)

SetPayload sets the payload to the add secret created response

func (*AddSecretCreated) WithPayload

func (o *AddSecretCreated) WithPayload(payload *models.Secret) *AddSecretCreated

WithPayload adds the payload to the add secret created response

func (*AddSecretCreated) WriteResponse

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

WriteResponse to the client

type AddSecretDefault

type AddSecretDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddSecretDefault Standard error

swagger:response addSecretDefault

func NewAddSecretDefault

func NewAddSecretDefault(code int) *AddSecretDefault

NewAddSecretDefault creates AddSecretDefault with default headers values

func (*AddSecretDefault) SetPayload

func (o *AddSecretDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the add secret default response

func (*AddSecretDefault) SetStatusCode

func (o *AddSecretDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add secret default response

func (*AddSecretDefault) WithPayload

func (o *AddSecretDefault) WithPayload(payload *models.Error) *AddSecretDefault

WithPayload adds the payload to the add secret default response

func (*AddSecretDefault) WithStatusCode

func (o *AddSecretDefault) WithStatusCode(code int) *AddSecretDefault

WithStatusCode adds the status to the add secret default response

func (*AddSecretDefault) WriteResponse

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

WriteResponse to the client

type AddSecretHandler

type AddSecretHandler interface {
	Handle(AddSecretParams, interface{}) middleware.Responder
}

AddSecretHandler interface for that can handle valid add secret params

type AddSecretHandlerFunc

type AddSecretHandlerFunc func(AddSecretParams, interface{}) middleware.Responder

AddSecretHandlerFunc turns a function with the right signature into a add secret handler

func (AddSecretHandlerFunc) Handle

func (fn AddSecretHandlerFunc) Handle(params AddSecretParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddSecretParams

type AddSecretParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  In: body
	*/
	Secret *models.Secret
}

AddSecretParams contains all the bound params for the add secret operation typically these are obtained from a http.Request

swagger:parameters addSecret

func NewAddSecretParams

func NewAddSecretParams() AddSecretParams

NewAddSecretParams creates a new AddSecretParams object with the default values initialized.

func (*AddSecretParams) BindRequest

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

type AddSecretURL

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

AddSecretURL generates an URL for the add secret operation

func (*AddSecretURL) Build

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

Build a url path and query string

func (*AddSecretURL) BuildFull

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

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

func (*AddSecretURL) Must

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

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

func (*AddSecretURL) SetBasePath

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

func (o *AddSecretURL) String() string

String returns the string representation of the path with query string

func (*AddSecretURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddSecretURL) WithBasePath

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

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 DeleteSecret

type DeleteSecret struct {
	Context *middleware.Context
	Handler DeleteSecretHandler
}

DeleteSecret swagger:route DELETE /{secretName} secret deleteSecret

DeleteSecret delete secret API

func NewDeleteSecret

func NewDeleteSecret(ctx *middleware.Context, handler DeleteSecretHandler) *DeleteSecret

NewDeleteSecret creates a new http.Handler for the delete secret operation

func (*DeleteSecret) ServeHTTP

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

type DeleteSecretDefault

type DeleteSecretDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteSecretDefault generic error

swagger:response deleteSecretDefault

func NewDeleteSecretDefault

func NewDeleteSecretDefault(code int) *DeleteSecretDefault

NewDeleteSecretDefault creates DeleteSecretDefault with default headers values

func (*DeleteSecretDefault) SetPayload

func (o *DeleteSecretDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete secret default response

func (*DeleteSecretDefault) SetStatusCode

func (o *DeleteSecretDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete secret default response

func (*DeleteSecretDefault) WithPayload

func (o *DeleteSecretDefault) WithPayload(payload *models.Error) *DeleteSecretDefault

WithPayload adds the payload to the delete secret default response

func (*DeleteSecretDefault) WithStatusCode

func (o *DeleteSecretDefault) WithStatusCode(code int) *DeleteSecretDefault

WithStatusCode adds the status to the delete secret default response

func (*DeleteSecretDefault) WriteResponse

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

WriteResponse to the client

type DeleteSecretHandler

type DeleteSecretHandler interface {
	Handle(DeleteSecretParams, interface{}) middleware.Responder
}

DeleteSecretHandler interface for that can handle valid delete secret params

type DeleteSecretHandlerFunc

type DeleteSecretHandlerFunc func(DeleteSecretParams, interface{}) middleware.Responder

DeleteSecretHandlerFunc turns a function with the right signature into a delete secret handler

func (DeleteSecretHandlerFunc) Handle

func (fn DeleteSecretHandlerFunc) Handle(params DeleteSecretParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteSecretNoContent

type DeleteSecretNoContent struct {
}

DeleteSecretNoContent Successful deletion

swagger:response deleteSecretNoContent

func NewDeleteSecretNoContent

func NewDeleteSecretNoContent() *DeleteSecretNoContent

NewDeleteSecretNoContent creates DeleteSecretNoContent with default headers values

func (*DeleteSecretNoContent) WriteResponse

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

WriteResponse to the client

type DeleteSecretNotFound

type DeleteSecretNotFound struct {

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

DeleteSecretNotFound Resource Not Found if no secret exists with the given name

swagger:response deleteSecretNotFound

func NewDeleteSecretNotFound

func NewDeleteSecretNotFound() *DeleteSecretNotFound

NewDeleteSecretNotFound creates DeleteSecretNotFound with default headers values

func (*DeleteSecretNotFound) SetPayload

func (o *DeleteSecretNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete secret not found response

func (*DeleteSecretNotFound) WithPayload

func (o *DeleteSecretNotFound) WithPayload(payload *models.Error) *DeleteSecretNotFound

WithPayload adds the payload to the delete secret not found response

func (*DeleteSecretNotFound) WriteResponse

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

WriteResponse to the client

type DeleteSecretParams

type DeleteSecretParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SecretName string
}

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

swagger:parameters deleteSecret

func NewDeleteSecretParams

func NewDeleteSecretParams() DeleteSecretParams

NewDeleteSecretParams creates a new DeleteSecretParams object with the default values initialized.

func (*DeleteSecretParams) BindRequest

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

type DeleteSecretURL

type DeleteSecretURL struct {
	SecretName string
	// contains filtered or unexported fields
}

DeleteSecretURL generates an URL for the delete secret operation

func (*DeleteSecretURL) Build

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

Build a url path and query string

func (*DeleteSecretURL) BuildFull

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

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

func (*DeleteSecretURL) Must

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

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

func (*DeleteSecretURL) SetBasePath

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

func (o *DeleteSecretURL) String() string

String returns the string representation of the path with query string

func (*DeleteSecretURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteSecretURL) WithBasePath

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

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 GetSecret

type GetSecret struct {
	Context *middleware.Context
	Handler GetSecretHandler
}

GetSecret swagger:route GET /{secretName} secret getSecret

GetSecret get secret API

func NewGetSecret

func NewGetSecret(ctx *middleware.Context, handler GetSecretHandler) *GetSecret

NewGetSecret creates a new http.Handler for the get secret operation

func (*GetSecret) ServeHTTP

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

type GetSecretDefault

type GetSecretDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSecretDefault Standard error

swagger:response getSecretDefault

func NewGetSecretDefault

func NewGetSecretDefault(code int) *GetSecretDefault

NewGetSecretDefault creates GetSecretDefault with default headers values

func (*GetSecretDefault) SetPayload

func (o *GetSecretDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get secret default response

func (*GetSecretDefault) SetStatusCode

func (o *GetSecretDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get secret default response

func (*GetSecretDefault) WithPayload

func (o *GetSecretDefault) WithPayload(payload *models.Error) *GetSecretDefault

WithPayload adds the payload to the get secret default response

func (*GetSecretDefault) WithStatusCode

func (o *GetSecretDefault) WithStatusCode(code int) *GetSecretDefault

WithStatusCode adds the status to the get secret default response

func (*GetSecretDefault) WriteResponse

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

WriteResponse to the client

type GetSecretHandler

type GetSecretHandler interface {
	Handle(GetSecretParams, interface{}) middleware.Responder
}

GetSecretHandler interface for that can handle valid get secret params

type GetSecretHandlerFunc

type GetSecretHandlerFunc func(GetSecretParams, interface{}) middleware.Responder

GetSecretHandlerFunc turns a function with the right signature into a get secret handler

func (GetSecretHandlerFunc) Handle

func (fn GetSecretHandlerFunc) Handle(params GetSecretParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSecretNotFound

type GetSecretNotFound struct {

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

GetSecretNotFound Resource Not Found if no secret exists with the given name

swagger:response getSecretNotFound

func NewGetSecretNotFound

func NewGetSecretNotFound() *GetSecretNotFound

NewGetSecretNotFound creates GetSecretNotFound with default headers values

func (*GetSecretNotFound) SetPayload

func (o *GetSecretNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the get secret not found response

func (*GetSecretNotFound) WithPayload

func (o *GetSecretNotFound) WithPayload(payload *models.Error) *GetSecretNotFound

WithPayload adds the payload to the get secret not found response

func (*GetSecretNotFound) WriteResponse

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

WriteResponse to the client

type GetSecretOK

type GetSecretOK struct {

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

GetSecretOK The secret identified by the secretName

swagger:response getSecretOK

func NewGetSecretOK

func NewGetSecretOK() *GetSecretOK

NewGetSecretOK creates GetSecretOK with default headers values

func (*GetSecretOK) SetPayload

func (o *GetSecretOK) SetPayload(payload *models.Secret)

SetPayload sets the payload to the get secret o k response

func (*GetSecretOK) WithPayload

func (o *GetSecretOK) WithPayload(payload *models.Secret) *GetSecretOK

WithPayload adds the payload to the get secret o k response

func (*GetSecretOK) WriteResponse

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

WriteResponse to the client

type GetSecretParams

type GetSecretParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*name of the secret to operate on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SecretName string
}

GetSecretParams contains all the bound params for the get secret operation typically these are obtained from a http.Request

swagger:parameters getSecret

func NewGetSecretParams

func NewGetSecretParams() GetSecretParams

NewGetSecretParams creates a new GetSecretParams object with the default values initialized.

func (*GetSecretParams) BindRequest

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

type GetSecretURL

type GetSecretURL struct {
	SecretName string
	// contains filtered or unexported fields
}

GetSecretURL generates an URL for the get secret operation

func (*GetSecretURL) Build

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

Build a url path and query string

func (*GetSecretURL) BuildFull

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

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

func (*GetSecretURL) Must

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

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

func (*GetSecretURL) SetBasePath

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

func (o *GetSecretURL) String() string

String returns the string representation of the path with query string

func (*GetSecretURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSecretURL) WithBasePath

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

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 GetSecrets

type GetSecrets struct {
	Context *middleware.Context
	Handler GetSecretsHandler
}

GetSecrets swagger:route GET / secret getSecrets

GetSecrets get secrets API

func NewGetSecrets

func NewGetSecrets(ctx *middleware.Context, handler GetSecretsHandler) *GetSecrets

NewGetSecrets creates a new http.Handler for the get secrets operation

func (*GetSecrets) ServeHTTP

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

type GetSecretsDefault

type GetSecretsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetSecretsDefault Standard error

swagger:response getSecretsDefault

func NewGetSecretsDefault

func NewGetSecretsDefault(code int) *GetSecretsDefault

NewGetSecretsDefault creates GetSecretsDefault with default headers values

func (*GetSecretsDefault) SetPayload

func (o *GetSecretsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get secrets default response

func (*GetSecretsDefault) SetStatusCode

func (o *GetSecretsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get secrets default response

func (*GetSecretsDefault) WithPayload

func (o *GetSecretsDefault) WithPayload(payload *models.Error) *GetSecretsDefault

WithPayload adds the payload to the get secrets default response

func (*GetSecretsDefault) WithStatusCode

func (o *GetSecretsDefault) WithStatusCode(code int) *GetSecretsDefault

WithStatusCode adds the status to the get secrets default response

func (*GetSecretsDefault) WriteResponse

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

WriteResponse to the client

type GetSecretsHandler

type GetSecretsHandler interface {
	Handle(GetSecretsParams, interface{}) middleware.Responder
}

GetSecretsHandler interface for that can handle valid get secrets params

type GetSecretsHandlerFunc

type GetSecretsHandlerFunc func(GetSecretsParams, interface{}) middleware.Responder

GetSecretsHandlerFunc turns a function with the right signature into a get secrets handler

func (GetSecretsHandlerFunc) Handle

func (fn GetSecretsHandlerFunc) Handle(params GetSecretsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSecretsOK

type GetSecretsOK struct {

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

GetSecretsOK An array of registered secrets

swagger:response getSecretsOK

func NewGetSecretsOK

func NewGetSecretsOK() *GetSecretsOK

NewGetSecretsOK creates GetSecretsOK with default headers values

func (*GetSecretsOK) SetPayload

func (o *GetSecretsOK) SetPayload(payload models.GetSecretsOKBody)

SetPayload sets the payload to the get secrets o k response

func (*GetSecretsOK) WithPayload

func (o *GetSecretsOK) WithPayload(payload models.GetSecretsOKBody) *GetSecretsOK

WithPayload adds the payload to the get secrets o k response

func (*GetSecretsOK) WriteResponse

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

WriteResponse to the client

type GetSecretsParams

type GetSecretsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetSecretsParams contains all the bound params for the get secrets operation typically these are obtained from a http.Request

swagger:parameters getSecrets

func NewGetSecretsParams

func NewGetSecretsParams() GetSecretsParams

NewGetSecretsParams creates a new GetSecretsParams object with the default values initialized.

func (*GetSecretsParams) BindRequest

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

type GetSecretsURL

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

GetSecretsURL generates an URL for the get secrets operation

func (*GetSecretsURL) Build

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

Build a url path and query string

func (*GetSecretsURL) BuildFull

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

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

func (*GetSecretsURL) Must

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

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

func (*GetSecretsURL) SetBasePath

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

func (o *GetSecretsURL) String() string

String returns the string representation of the path with query string

func (*GetSecretsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSecretsURL) WithBasePath

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

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 UpdateSecret

type UpdateSecret struct {
	Context *middleware.Context
	Handler UpdateSecretHandler
}

UpdateSecret swagger:route PUT /{secretName} secret updateSecret

UpdateSecret update secret API

func NewUpdateSecret

func NewUpdateSecret(ctx *middleware.Context, handler UpdateSecretHandler) *UpdateSecret

NewUpdateSecret creates a new http.Handler for the update secret operation

func (*UpdateSecret) ServeHTTP

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

type UpdateSecretCreated

type UpdateSecretCreated struct {

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

UpdateSecretCreated The updated secret

swagger:response updateSecretCreated

func NewUpdateSecretCreated

func NewUpdateSecretCreated() *UpdateSecretCreated

NewUpdateSecretCreated creates UpdateSecretCreated with default headers values

func (*UpdateSecretCreated) SetPayload

func (o *UpdateSecretCreated) SetPayload(payload *models.Secret)

SetPayload sets the payload to the update secret created response

func (*UpdateSecretCreated) WithPayload

func (o *UpdateSecretCreated) WithPayload(payload *models.Secret) *UpdateSecretCreated

WithPayload adds the payload to the update secret created response

func (*UpdateSecretCreated) WriteResponse

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

WriteResponse to the client

type UpdateSecretDefault

type UpdateSecretDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateSecretDefault generic error

swagger:response updateSecretDefault

func NewUpdateSecretDefault

func NewUpdateSecretDefault(code int) *UpdateSecretDefault

NewUpdateSecretDefault creates UpdateSecretDefault with default headers values

func (*UpdateSecretDefault) SetPayload

func (o *UpdateSecretDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update secret default response

func (*UpdateSecretDefault) SetStatusCode

func (o *UpdateSecretDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update secret default response

func (*UpdateSecretDefault) WithPayload

func (o *UpdateSecretDefault) WithPayload(payload *models.Error) *UpdateSecretDefault

WithPayload adds the payload to the update secret default response

func (*UpdateSecretDefault) WithStatusCode

func (o *UpdateSecretDefault) WithStatusCode(code int) *UpdateSecretDefault

WithStatusCode adds the status to the update secret default response

func (*UpdateSecretDefault) WriteResponse

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

WriteResponse to the client

type UpdateSecretHandler

type UpdateSecretHandler interface {
	Handle(UpdateSecretParams, interface{}) middleware.Responder
}

UpdateSecretHandler interface for that can handle valid update secret params

type UpdateSecretHandlerFunc

type UpdateSecretHandlerFunc func(UpdateSecretParams, interface{}) middleware.Responder

UpdateSecretHandlerFunc turns a function with the right signature into a update secret handler

func (UpdateSecretHandlerFunc) Handle

func (fn UpdateSecretHandlerFunc) Handle(params UpdateSecretParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateSecretNotFound

type UpdateSecretNotFound struct {

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

UpdateSecretNotFound Resource Not Found if no secret exists with the given name

swagger:response updateSecretNotFound

func NewUpdateSecretNotFound

func NewUpdateSecretNotFound() *UpdateSecretNotFound

NewUpdateSecretNotFound creates UpdateSecretNotFound with default headers values

func (*UpdateSecretNotFound) SetPayload

func (o *UpdateSecretNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the update secret not found response

func (*UpdateSecretNotFound) WithPayload

func (o *UpdateSecretNotFound) WithPayload(payload *models.Error) *UpdateSecretNotFound

WithPayload adds the payload to the update secret not found response

func (*UpdateSecretNotFound) WriteResponse

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

WriteResponse to the client

type UpdateSecretParams

type UpdateSecretParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  In: body
	*/
	Secret *models.Secret
	/*
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SecretName string
}

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

swagger:parameters updateSecret

func NewUpdateSecretParams

func NewUpdateSecretParams() UpdateSecretParams

NewUpdateSecretParams creates a new UpdateSecretParams object with the default values initialized.

func (*UpdateSecretParams) BindRequest

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

type UpdateSecretURL

type UpdateSecretURL struct {
	SecretName string
	// contains filtered or unexported fields
}

UpdateSecretURL generates an URL for the update secret operation

func (*UpdateSecretURL) Build

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

Build a url path and query string

func (*UpdateSecretURL) BuildFull

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

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

func (*UpdateSecretURL) Must

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

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

func (*UpdateSecretURL) SetBasePath

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

func (o *UpdateSecretURL) String() string

String returns the string representation of the path with query string

func (*UpdateSecretURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateSecretURL) WithBasePath

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

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