Documentation ¶
Index ¶
- type DeleteEntry
- type DeleteEntryDefault
- func (o *DeleteEntryDefault) SetPayload(payload *models.Error)
- func (o *DeleteEntryDefault) SetStatusCode(code int)
- func (o *DeleteEntryDefault) SetXRequestID(xRequestID string)
- func (o *DeleteEntryDefault) WithPayload(payload *models.Error) *DeleteEntryDefault
- func (o *DeleteEntryDefault) WithStatusCode(code int) *DeleteEntryDefault
- func (o *DeleteEntryDefault) WithXRequestID(xRequestID string) *DeleteEntryDefault
- func (o *DeleteEntryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteEntryHandler
- type DeleteEntryHandlerFunc
- type DeleteEntryNoContent
- type DeleteEntryParams
- type DeleteEntryURL
- func (o *DeleteEntryURL) Build() (*url.URL, error)
- func (o *DeleteEntryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteEntryURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteEntryURL) SetBasePath(bp string)
- func (o *DeleteEntryURL) String() string
- func (o *DeleteEntryURL) StringFull(scheme, host string) string
- func (o *DeleteEntryURL) WithBasePath(bp string) *DeleteEntryURL
- type FindKeys
- type FindKeysDefault
- func (o *FindKeysDefault) SetPayload(payload *models.Error)
- func (o *FindKeysDefault) SetStatusCode(code int)
- func (o *FindKeysDefault) SetXRequestID(xRequestID string)
- func (o *FindKeysDefault) WithPayload(payload *models.Error) *FindKeysDefault
- func (o *FindKeysDefault) WithStatusCode(code int) *FindKeysDefault
- func (o *FindKeysDefault) WithXRequestID(xRequestID string) *FindKeysDefault
- func (o *FindKeysDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FindKeysHandler
- type FindKeysHandlerFunc
- type FindKeysOK
- func (o *FindKeysOK) SetPayload(payload []string)
- func (o *FindKeysOK) SetXRequestID(xRequestID string)
- func (o *FindKeysOK) WithPayload(payload []string) *FindKeysOK
- func (o *FindKeysOK) WithXRequestID(xRequestID string) *FindKeysOK
- func (o *FindKeysOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FindKeysParams
- type FindKeysURL
- func (o *FindKeysURL) Build() (*url.URL, error)
- func (o *FindKeysURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FindKeysURL) Must(u *url.URL, err error) *url.URL
- func (o *FindKeysURL) SetBasePath(bp string)
- func (o *FindKeysURL) String() string
- func (o *FindKeysURL) StringFull(scheme, host string) string
- func (o *FindKeysURL) WithBasePath(bp string) *FindKeysURL
- type GetEntry
- type GetEntryDefault
- func (o *GetEntryDefault) SetPayload(payload *models.Error)
- func (o *GetEntryDefault) SetStatusCode(code int)
- func (o *GetEntryDefault) SetXRequestID(xRequestID string)
- func (o *GetEntryDefault) WithPayload(payload *models.Error) *GetEntryDefault
- func (o *GetEntryDefault) WithStatusCode(code int) *GetEntryDefault
- func (o *GetEntryDefault) WithXRequestID(xRequestID string) *GetEntryDefault
- func (o *GetEntryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEntryHandler
- type GetEntryHandlerFunc
- type GetEntryNotFound
- func (o *GetEntryNotFound) SetPayload(payload *models.Error)
- func (o *GetEntryNotFound) SetXRequestID(xRequestID string)
- func (o *GetEntryNotFound) WithPayload(payload *models.Error) *GetEntryNotFound
- func (o *GetEntryNotFound) WithXRequestID(xRequestID string) *GetEntryNotFound
- func (o *GetEntryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEntryNotModified
- func (o *GetEntryNotModified) SetETag(eTag string)
- func (o *GetEntryNotModified) SetLastModified(lastModified string)
- func (o *GetEntryNotModified) SetXRequestID(xRequestID string)
- func (o *GetEntryNotModified) WithETag(eTag string) *GetEntryNotModified
- func (o *GetEntryNotModified) WithLastModified(lastModified string) *GetEntryNotModified
- func (o *GetEntryNotModified) WithXRequestID(xRequestID string) *GetEntryNotModified
- func (o *GetEntryNotModified) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEntryOK
- func (o *GetEntryOK) SetETag(eTag string)
- func (o *GetEntryOK) SetLastModified(lastModified string)
- func (o *GetEntryOK) SetPayload(payload io.ReadCloser)
- func (o *GetEntryOK) SetXRequestID(xRequestID string)
- func (o *GetEntryOK) WithETag(eTag string) *GetEntryOK
- func (o *GetEntryOK) WithLastModified(lastModified string) *GetEntryOK
- func (o *GetEntryOK) WithPayload(payload io.ReadCloser) *GetEntryOK
- func (o *GetEntryOK) WithXRequestID(xRequestID string) *GetEntryOK
- func (o *GetEntryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEntryParams
- type GetEntryURL
- func (o *GetEntryURL) Build() (*url.URL, error)
- func (o *GetEntryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetEntryURL) Must(u *url.URL, err error) *url.URL
- func (o *GetEntryURL) SetBasePath(bp string)
- func (o *GetEntryURL) String() string
- func (o *GetEntryURL) StringFull(scheme, host string) string
- func (o *GetEntryURL) WithBasePath(bp string) *GetEntryURL
- type PutEntry
- type PutEntryConflict
- func (o *PutEntryConflict) SetPayload(payload *models.Error)
- func (o *PutEntryConflict) SetXRequestID(xRequestID string)
- func (o *PutEntryConflict) WithPayload(payload *models.Error) *PutEntryConflict
- func (o *PutEntryConflict) WithXRequestID(xRequestID string) *PutEntryConflict
- func (o *PutEntryConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutEntryCreated
- func (o *PutEntryCreated) SetEtag(etag string)
- func (o *PutEntryCreated) SetLocation(location strfmt.URI)
- func (o *PutEntryCreated) SetXRequestID(xRequestID string)
- func (o *PutEntryCreated) WithEtag(etag string) *PutEntryCreated
- func (o *PutEntryCreated) WithLocation(location strfmt.URI) *PutEntryCreated
- func (o *PutEntryCreated) WithXRequestID(xRequestID string) *PutEntryCreated
- func (o *PutEntryCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutEntryDefault
- func (o *PutEntryDefault) SetPayload(payload *models.Error)
- func (o *PutEntryDefault) SetStatusCode(code int)
- func (o *PutEntryDefault) SetXRequestID(xRequestID string)
- func (o *PutEntryDefault) WithPayload(payload *models.Error) *PutEntryDefault
- func (o *PutEntryDefault) WithStatusCode(code int) *PutEntryDefault
- func (o *PutEntryDefault) WithXRequestID(xRequestID string) *PutEntryDefault
- func (o *PutEntryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutEntryGone
- func (o *PutEntryGone) SetPayload(payload *models.Error)
- func (o *PutEntryGone) SetXRequestID(xRequestID string)
- func (o *PutEntryGone) WithPayload(payload *models.Error) *PutEntryGone
- func (o *PutEntryGone) WithXRequestID(xRequestID string) *PutEntryGone
- func (o *PutEntryGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutEntryHandler
- type PutEntryHandlerFunc
- type PutEntryNoContent
- func (o *PutEntryNoContent) SetETag(eTag string)
- func (o *PutEntryNoContent) SetXRequestID(xRequestID string)
- func (o *PutEntryNoContent) WithETag(eTag string) *PutEntryNoContent
- func (o *PutEntryNoContent) WithXRequestID(xRequestID string) *PutEntryNoContent
- func (o *PutEntryNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutEntryNotFound
- func (o *PutEntryNotFound) SetPayload(payload *models.Error)
- func (o *PutEntryNotFound) SetXRequestID(xRequestID string)
- func (o *PutEntryNotFound) WithPayload(payload *models.Error) *PutEntryNotFound
- func (o *PutEntryNotFound) WithXRequestID(xRequestID string) *PutEntryNotFound
- func (o *PutEntryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutEntryParams
- type PutEntryURL
- func (o *PutEntryURL) Build() (*url.URL, error)
- func (o *PutEntryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutEntryURL) Must(u *url.URL, err error) *url.URL
- func (o *PutEntryURL) SetBasePath(bp string)
- func (o *PutEntryURL) String() string
- func (o *PutEntryURL) StringFull(scheme, host string) string
- func (o *PutEntryURL) WithBasePath(bp string) *PutEntryURL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteEntry ¶
type DeleteEntry struct { Context *middleware.Context Handler DeleteEntryHandler }
DeleteEntry swagger:route DELETE /kv/{key} kv deleteEntry
DeleteEntry delete entry API
func NewDeleteEntry ¶
func NewDeleteEntry(ctx *middleware.Context, handler DeleteEntryHandler) *DeleteEntry
NewDeleteEntry creates a new http.Handler for the delete entry operation
func (*DeleteEntry) ServeHTTP ¶
func (o *DeleteEntry) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteEntryDefault ¶
type DeleteEntryDefault struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteEntryDefault Error
swagger:response deleteEntryDefault
func NewDeleteEntryDefault ¶
func NewDeleteEntryDefault(code int) *DeleteEntryDefault
NewDeleteEntryDefault creates DeleteEntryDefault with default headers values
func (*DeleteEntryDefault) SetPayload ¶
func (o *DeleteEntryDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete entry default response
func (*DeleteEntryDefault) SetStatusCode ¶
func (o *DeleteEntryDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete entry default response
func (*DeleteEntryDefault) SetXRequestID ¶
func (o *DeleteEntryDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete entry default response
func (*DeleteEntryDefault) WithPayload ¶
func (o *DeleteEntryDefault) WithPayload(payload *models.Error) *DeleteEntryDefault
WithPayload adds the payload to the delete entry default response
func (*DeleteEntryDefault) WithStatusCode ¶
func (o *DeleteEntryDefault) WithStatusCode(code int) *DeleteEntryDefault
WithStatusCode adds the status to the delete entry default response
func (*DeleteEntryDefault) WithXRequestID ¶
func (o *DeleteEntryDefault) WithXRequestID(xRequestID string) *DeleteEntryDefault
WithXRequestID adds the xRequestId to the delete entry default response
func (*DeleteEntryDefault) WriteResponse ¶
func (o *DeleteEntryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEntryHandler ¶
type DeleteEntryHandler interface {
Handle(DeleteEntryParams) middleware.Responder
}
DeleteEntryHandler interface for that can handle valid delete entry params
type DeleteEntryHandlerFunc ¶
type DeleteEntryHandlerFunc func(DeleteEntryParams) middleware.Responder
DeleteEntryHandlerFunc turns a function with the right signature into a delete entry handler
func (DeleteEntryHandlerFunc) Handle ¶
func (fn DeleteEntryHandlerFunc) Handle(params DeleteEntryParams) middleware.Responder
Handle executing the request and returning a response
type DeleteEntryNoContent ¶
type DeleteEntryNoContent struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` }
DeleteEntryNoContent the delete was successful
swagger:response deleteEntryNoContent
func NewDeleteEntryNoContent ¶
func NewDeleteEntryNoContent() *DeleteEntryNoContent
NewDeleteEntryNoContent creates DeleteEntryNoContent with default headers values
func (*DeleteEntryNoContent) SetXRequestID ¶
func (o *DeleteEntryNoContent) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the delete entry no content response
func (*DeleteEntryNoContent) WithXRequestID ¶
func (o *DeleteEntryNoContent) WithXRequestID(xRequestID string) *DeleteEntryNoContent
WithXRequestID adds the xRequestId to the delete entry no content response
func (*DeleteEntryNoContent) WriteResponse ¶
func (o *DeleteEntryNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEntryParams ¶
type DeleteEntryParams struct { // HTTP Request Object HTTPRequest *http.Request /*A unique UUID for the request Min Length: 1 In: header */ XRequestID *string /*The key for a given entry Required: true Min Length: 1 In: path */ Key string }
DeleteEntryParams contains all the bound params for the delete entry operation typically these are obtained from a http.Request
swagger:parameters deleteEntry
func NewDeleteEntryParams ¶
func NewDeleteEntryParams() DeleteEntryParams
NewDeleteEntryParams creates a new DeleteEntryParams object with the default values initialized.
func (*DeleteEntryParams) BindRequest ¶
func (o *DeleteEntryParams) 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 DeleteEntryURL ¶
type DeleteEntryURL struct { Key string // contains filtered or unexported fields }
DeleteEntryURL generates an URL for the delete entry operation
func (*DeleteEntryURL) Build ¶
func (o *DeleteEntryURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteEntryURL) BuildFull ¶
func (o *DeleteEntryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteEntryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteEntryURL) SetBasePath ¶
func (o *DeleteEntryURL) 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 (*DeleteEntryURL) String ¶
func (o *DeleteEntryURL) String() string
String returns the string representation of the path with query string
func (*DeleteEntryURL) StringFull ¶
func (o *DeleteEntryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteEntryURL) WithBasePath ¶
func (o *DeleteEntryURL) WithBasePath(bp string) *DeleteEntryURL
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 FindKeys ¶
type FindKeys struct { Context *middleware.Context Handler FindKeysHandler }
FindKeys swagger:route GET /kv kv findKeys
lists all the keys
func NewFindKeys ¶
func NewFindKeys(ctx *middleware.Context, handler FindKeysHandler) *FindKeys
NewFindKeys creates a new http.Handler for the find keys operation
type FindKeysDefault ¶
type FindKeysDefault struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
FindKeysDefault Error
swagger:response findKeysDefault
func NewFindKeysDefault ¶
func NewFindKeysDefault(code int) *FindKeysDefault
NewFindKeysDefault creates FindKeysDefault with default headers values
func (*FindKeysDefault) SetPayload ¶
func (o *FindKeysDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the find keys default response
func (*FindKeysDefault) SetStatusCode ¶
func (o *FindKeysDefault) SetStatusCode(code int)
SetStatusCode sets the status to the find keys default response
func (*FindKeysDefault) SetXRequestID ¶
func (o *FindKeysDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the find keys default response
func (*FindKeysDefault) WithPayload ¶
func (o *FindKeysDefault) WithPayload(payload *models.Error) *FindKeysDefault
WithPayload adds the payload to the find keys default response
func (*FindKeysDefault) WithStatusCode ¶
func (o *FindKeysDefault) WithStatusCode(code int) *FindKeysDefault
WithStatusCode adds the status to the find keys default response
func (*FindKeysDefault) WithXRequestID ¶
func (o *FindKeysDefault) WithXRequestID(xRequestID string) *FindKeysDefault
WithXRequestID adds the xRequestId to the find keys default response
func (*FindKeysDefault) WriteResponse ¶
func (o *FindKeysDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindKeysHandler ¶
type FindKeysHandler interface {
Handle(FindKeysParams) middleware.Responder
}
FindKeysHandler interface for that can handle valid find keys params
type FindKeysHandlerFunc ¶
type FindKeysHandlerFunc func(FindKeysParams) middleware.Responder
FindKeysHandlerFunc turns a function with the right signature into a find keys handler
func (FindKeysHandlerFunc) Handle ¶
func (fn FindKeysHandlerFunc) Handle(params FindKeysParams) middleware.Responder
Handle executing the request and returning a response
type FindKeysOK ¶
type FindKeysOK struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload []string `json:"body,omitempty"` }
FindKeysOK list the keys known to this datastore
swagger:response findKeysOK
func NewFindKeysOK ¶
func NewFindKeysOK() *FindKeysOK
NewFindKeysOK creates FindKeysOK with default headers values
func (*FindKeysOK) SetPayload ¶
func (o *FindKeysOK) SetPayload(payload []string)
SetPayload sets the payload to the find keys o k response
func (*FindKeysOK) SetXRequestID ¶
func (o *FindKeysOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the find keys o k response
func (*FindKeysOK) WithPayload ¶
func (o *FindKeysOK) WithPayload(payload []string) *FindKeysOK
WithPayload adds the payload to the find keys o k response
func (*FindKeysOK) WithXRequestID ¶
func (o *FindKeysOK) WithXRequestID(xRequestID string) *FindKeysOK
WithXRequestID adds the xRequestId to the find keys o k response
func (*FindKeysOK) WriteResponse ¶
func (o *FindKeysOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FindKeysParams ¶
type FindKeysParams struct { // HTTP Request Object HTTPRequest *http.Request /*A unique UUID for the request Min Length: 1 In: header */ XRequestID *string /* In: query */ Prefix *string }
FindKeysParams contains all the bound params for the find keys operation typically these are obtained from a http.Request
swagger:parameters findKeys
func NewFindKeysParams ¶
func NewFindKeysParams() FindKeysParams
NewFindKeysParams creates a new FindKeysParams object with the default values initialized.
func (*FindKeysParams) BindRequest ¶
func (o *FindKeysParams) 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 FindKeysURL ¶
type FindKeysURL struct { Prefix *string // contains filtered or unexported fields }
FindKeysURL generates an URL for the find keys operation
func (*FindKeysURL) Build ¶
func (o *FindKeysURL) Build() (*url.URL, error)
Build a url path and query string
func (*FindKeysURL) BuildFull ¶
func (o *FindKeysURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*FindKeysURL) SetBasePath ¶
func (o *FindKeysURL) 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 (*FindKeysURL) String ¶
func (o *FindKeysURL) String() string
String returns the string representation of the path with query string
func (*FindKeysURL) StringFull ¶
func (o *FindKeysURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*FindKeysURL) WithBasePath ¶
func (o *FindKeysURL) WithBasePath(bp string) *FindKeysURL
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 GetEntry ¶
type GetEntry struct { Context *middleware.Context Handler GetEntryHandler }
GetEntry swagger:route GET /kv/{key} kv getEntry
GetEntry get entry API
func NewGetEntry ¶
func NewGetEntry(ctx *middleware.Context, handler GetEntryHandler) *GetEntry
NewGetEntry creates a new http.Handler for the get entry operation
type GetEntryDefault ¶
type GetEntryDefault struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetEntryDefault Error
swagger:response getEntryDefault
func NewGetEntryDefault ¶
func NewGetEntryDefault(code int) *GetEntryDefault
NewGetEntryDefault creates GetEntryDefault with default headers values
func (*GetEntryDefault) SetPayload ¶
func (o *GetEntryDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get entry default response
func (*GetEntryDefault) SetStatusCode ¶
func (o *GetEntryDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get entry default response
func (*GetEntryDefault) SetXRequestID ¶
func (o *GetEntryDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get entry default response
func (*GetEntryDefault) WithPayload ¶
func (o *GetEntryDefault) WithPayload(payload *models.Error) *GetEntryDefault
WithPayload adds the payload to the get entry default response
func (*GetEntryDefault) WithStatusCode ¶
func (o *GetEntryDefault) WithStatusCode(code int) *GetEntryDefault
WithStatusCode adds the status to the get entry default response
func (*GetEntryDefault) WithXRequestID ¶
func (o *GetEntryDefault) WithXRequestID(xRequestID string) *GetEntryDefault
WithXRequestID adds the xRequestId to the get entry default response
func (*GetEntryDefault) WriteResponse ¶
func (o *GetEntryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntryHandler ¶
type GetEntryHandler interface {
Handle(GetEntryParams) middleware.Responder
}
GetEntryHandler interface for that can handle valid get entry params
type GetEntryHandlerFunc ¶
type GetEntryHandlerFunc func(GetEntryParams) middleware.Responder
GetEntryHandlerFunc turns a function with the right signature into a get entry handler
func (GetEntryHandlerFunc) Handle ¶
func (fn GetEntryHandlerFunc) Handle(params GetEntryParams) middleware.Responder
Handle executing the request and returning a response
type GetEntryNotFound ¶
type GetEntryNotFound struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetEntryNotFound The entry was not found
swagger:response getEntryNotFound
func NewGetEntryNotFound ¶
func NewGetEntryNotFound() *GetEntryNotFound
NewGetEntryNotFound creates GetEntryNotFound with default headers values
func (*GetEntryNotFound) SetPayload ¶
func (o *GetEntryNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get entry not found response
func (*GetEntryNotFound) SetXRequestID ¶
func (o *GetEntryNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get entry not found response
func (*GetEntryNotFound) WithPayload ¶
func (o *GetEntryNotFound) WithPayload(payload *models.Error) *GetEntryNotFound
WithPayload adds the payload to the get entry not found response
func (*GetEntryNotFound) WithXRequestID ¶
func (o *GetEntryNotFound) WithXRequestID(xRequestID string) *GetEntryNotFound
WithXRequestID adds the xRequestId to the get entry not found response
func (*GetEntryNotFound) WriteResponse ¶
func (o *GetEntryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntryNotModified ¶
type GetEntryNotModified struct { /*The version of this entry Required: true */ ETag string `json:"ETag"` /*The time this entry was last modified Required: true */ LastModified string `json:"Last-Modified"` /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` }
GetEntryNotModified entry was found but not modified
swagger:response getEntryNotModified
func NewGetEntryNotModified ¶
func NewGetEntryNotModified() *GetEntryNotModified
NewGetEntryNotModified creates GetEntryNotModified with default headers values
func (*GetEntryNotModified) SetETag ¶
func (o *GetEntryNotModified) SetETag(eTag string)
SetETag sets the eTag to the get entry not modified response
func (*GetEntryNotModified) SetLastModified ¶
func (o *GetEntryNotModified) SetLastModified(lastModified string)
SetLastModified sets the lastModified to the get entry not modified response
func (*GetEntryNotModified) SetXRequestID ¶
func (o *GetEntryNotModified) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get entry not modified response
func (*GetEntryNotModified) WithETag ¶
func (o *GetEntryNotModified) WithETag(eTag string) *GetEntryNotModified
WithETag adds the eTag to the get entry not modified response
func (*GetEntryNotModified) WithLastModified ¶
func (o *GetEntryNotModified) WithLastModified(lastModified string) *GetEntryNotModified
WithLastModified adds the lastModified to the get entry not modified response
func (*GetEntryNotModified) WithXRequestID ¶
func (o *GetEntryNotModified) WithXRequestID(xRequestID string) *GetEntryNotModified
WithXRequestID adds the xRequestId to the get entry not modified response
func (*GetEntryNotModified) WriteResponse ¶
func (o *GetEntryNotModified) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntryOK ¶
type GetEntryOK struct { /*The version of this entry Required: true */ ETag string `json:"ETag"` /*The time this entry was last modified Required: true */ LastModified string `json:"Last-Modified"` /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
GetEntryOK entry was found
swagger:response getEntryOK
func NewGetEntryOK ¶
func NewGetEntryOK() *GetEntryOK
NewGetEntryOK creates GetEntryOK with default headers values
func (*GetEntryOK) SetETag ¶
func (o *GetEntryOK) SetETag(eTag string)
SetETag sets the eTag to the get entry o k response
func (*GetEntryOK) SetLastModified ¶
func (o *GetEntryOK) SetLastModified(lastModified string)
SetLastModified sets the lastModified to the get entry o k response
func (*GetEntryOK) SetPayload ¶
func (o *GetEntryOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the get entry o k response
func (*GetEntryOK) SetXRequestID ¶
func (o *GetEntryOK) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get entry o k response
func (*GetEntryOK) WithETag ¶
func (o *GetEntryOK) WithETag(eTag string) *GetEntryOK
WithETag adds the eTag to the get entry o k response
func (*GetEntryOK) WithLastModified ¶
func (o *GetEntryOK) WithLastModified(lastModified string) *GetEntryOK
WithLastModified adds the lastModified to the get entry o k response
func (*GetEntryOK) WithPayload ¶
func (o *GetEntryOK) WithPayload(payload io.ReadCloser) *GetEntryOK
WithPayload adds the payload to the get entry o k response
func (*GetEntryOK) WithXRequestID ¶
func (o *GetEntryOK) WithXRequestID(xRequestID string) *GetEntryOK
WithXRequestID adds the xRequestId to the get entry o k response
func (*GetEntryOK) WriteResponse ¶
func (o *GetEntryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntryParams ¶
type GetEntryParams struct { // HTTP Request Object HTTPRequest *http.Request /* In: header */ IfNoneMatch *string /*A unique UUID for the request Min Length: 1 In: header */ XRequestID *string /*The key for a given entry Required: true Min Length: 1 In: path */ Key string }
GetEntryParams contains all the bound params for the get entry operation typically these are obtained from a http.Request
swagger:parameters getEntry
func NewGetEntryParams ¶
func NewGetEntryParams() GetEntryParams
NewGetEntryParams creates a new GetEntryParams object with the default values initialized.
func (*GetEntryParams) BindRequest ¶
func (o *GetEntryParams) 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 GetEntryURL ¶
type GetEntryURL struct { Key string // contains filtered or unexported fields }
GetEntryURL generates an URL for the get entry operation
func (*GetEntryURL) Build ¶
func (o *GetEntryURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetEntryURL) BuildFull ¶
func (o *GetEntryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetEntryURL) SetBasePath ¶
func (o *GetEntryURL) 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 (*GetEntryURL) String ¶
func (o *GetEntryURL) String() string
String returns the string representation of the path with query string
func (*GetEntryURL) StringFull ¶
func (o *GetEntryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetEntryURL) WithBasePath ¶
func (o *GetEntryURL) WithBasePath(bp string) *GetEntryURL
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 PutEntry ¶
type PutEntry struct { Context *middleware.Context Handler PutEntryHandler }
PutEntry swagger:route PUT /kv/{key} kv putEntry
PutEntry put entry API
func NewPutEntry ¶
func NewPutEntry(ctx *middleware.Context, handler PutEntryHandler) *PutEntry
NewPutEntry creates a new http.Handler for the put entry operation
type PutEntryConflict ¶
type PutEntryConflict struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PutEntryConflict there is a version mismatch for the entry
swagger:response putEntryConflict
func NewPutEntryConflict ¶
func NewPutEntryConflict() *PutEntryConflict
NewPutEntryConflict creates PutEntryConflict with default headers values
func (*PutEntryConflict) SetPayload ¶
func (o *PutEntryConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the put entry conflict response
func (*PutEntryConflict) SetXRequestID ¶
func (o *PutEntryConflict) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the put entry conflict response
func (*PutEntryConflict) WithPayload ¶
func (o *PutEntryConflict) WithPayload(payload *models.Error) *PutEntryConflict
WithPayload adds the payload to the put entry conflict response
func (*PutEntryConflict) WithXRequestID ¶
func (o *PutEntryConflict) WithXRequestID(xRequestID string) *PutEntryConflict
WithXRequestID adds the xRequestId to the put entry conflict response
func (*PutEntryConflict) WriteResponse ¶
func (o *PutEntryConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntryCreated ¶
type PutEntryCreated struct { /*The version of this entry Required: true */ Etag string `json:"Etag"` /*the location to get the newly created entry Required: true */ Location strfmt.URI `json:"Location"` /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` }
PutEntryCreated entry was created
swagger:response putEntryCreated
func NewPutEntryCreated ¶
func NewPutEntryCreated() *PutEntryCreated
NewPutEntryCreated creates PutEntryCreated with default headers values
func (*PutEntryCreated) SetEtag ¶
func (o *PutEntryCreated) SetEtag(etag string)
SetEtag sets the etag to the put entry created response
func (*PutEntryCreated) SetLocation ¶
func (o *PutEntryCreated) SetLocation(location strfmt.URI)
SetLocation sets the location to the put entry created response
func (*PutEntryCreated) SetXRequestID ¶
func (o *PutEntryCreated) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the put entry created response
func (*PutEntryCreated) WithEtag ¶
func (o *PutEntryCreated) WithEtag(etag string) *PutEntryCreated
WithEtag adds the etag to the put entry created response
func (*PutEntryCreated) WithLocation ¶
func (o *PutEntryCreated) WithLocation(location strfmt.URI) *PutEntryCreated
WithLocation adds the location to the put entry created response
func (*PutEntryCreated) WithXRequestID ¶
func (o *PutEntryCreated) WithXRequestID(xRequestID string) *PutEntryCreated
WithXRequestID adds the xRequestId to the put entry created response
func (*PutEntryCreated) WriteResponse ¶
func (o *PutEntryCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntryDefault ¶
type PutEntryDefault struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PutEntryDefault Error
swagger:response putEntryDefault
func NewPutEntryDefault ¶
func NewPutEntryDefault(code int) *PutEntryDefault
NewPutEntryDefault creates PutEntryDefault with default headers values
func (*PutEntryDefault) SetPayload ¶
func (o *PutEntryDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put entry default response
func (*PutEntryDefault) SetStatusCode ¶
func (o *PutEntryDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put entry default response
func (*PutEntryDefault) SetXRequestID ¶
func (o *PutEntryDefault) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the put entry default response
func (*PutEntryDefault) WithPayload ¶
func (o *PutEntryDefault) WithPayload(payload *models.Error) *PutEntryDefault
WithPayload adds the payload to the put entry default response
func (*PutEntryDefault) WithStatusCode ¶
func (o *PutEntryDefault) WithStatusCode(code int) *PutEntryDefault
WithStatusCode adds the status to the put entry default response
func (*PutEntryDefault) WithXRequestID ¶
func (o *PutEntryDefault) WithXRequestID(xRequestID string) *PutEntryDefault
WithXRequestID adds the xRequestId to the put entry default response
func (*PutEntryDefault) WriteResponse ¶
func (o *PutEntryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntryGone ¶
type PutEntryGone struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PutEntryGone The entry is deleted
swagger:response putEntryGone
func NewPutEntryGone ¶
func NewPutEntryGone() *PutEntryGone
NewPutEntryGone creates PutEntryGone with default headers values
func (*PutEntryGone) SetPayload ¶
func (o *PutEntryGone) SetPayload(payload *models.Error)
SetPayload sets the payload to the put entry gone response
func (*PutEntryGone) SetXRequestID ¶
func (o *PutEntryGone) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the put entry gone response
func (*PutEntryGone) WithPayload ¶
func (o *PutEntryGone) WithPayload(payload *models.Error) *PutEntryGone
WithPayload adds the payload to the put entry gone response
func (*PutEntryGone) WithXRequestID ¶
func (o *PutEntryGone) WithXRequestID(xRequestID string) *PutEntryGone
WithXRequestID adds the xRequestId to the put entry gone response
func (*PutEntryGone) WriteResponse ¶
func (o *PutEntryGone) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntryHandler ¶
type PutEntryHandler interface {
Handle(PutEntryParams) middleware.Responder
}
PutEntryHandler interface for that can handle valid put entry params
type PutEntryHandlerFunc ¶
type PutEntryHandlerFunc func(PutEntryParams) middleware.Responder
PutEntryHandlerFunc turns a function with the right signature into a put entry handler
func (PutEntryHandlerFunc) Handle ¶
func (fn PutEntryHandlerFunc) Handle(params PutEntryParams) middleware.Responder
Handle executing the request and returning a response
type PutEntryNoContent ¶
type PutEntryNoContent struct { /*The version of this entry Required: true */ ETag string `json:"ETag"` /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` }
PutEntryNoContent entry was updated
swagger:response putEntryNoContent
func NewPutEntryNoContent ¶
func NewPutEntryNoContent() *PutEntryNoContent
NewPutEntryNoContent creates PutEntryNoContent with default headers values
func (*PutEntryNoContent) SetETag ¶
func (o *PutEntryNoContent) SetETag(eTag string)
SetETag sets the eTag to the put entry no content response
func (*PutEntryNoContent) SetXRequestID ¶
func (o *PutEntryNoContent) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the put entry no content response
func (*PutEntryNoContent) WithETag ¶
func (o *PutEntryNoContent) WithETag(eTag string) *PutEntryNoContent
WithETag adds the eTag to the put entry no content response
func (*PutEntryNoContent) WithXRequestID ¶
func (o *PutEntryNoContent) WithXRequestID(xRequestID string) *PutEntryNoContent
WithXRequestID adds the xRequestId to the put entry no content response
func (*PutEntryNoContent) WriteResponse ¶
func (o *PutEntryNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntryNotFound ¶
type PutEntryNotFound struct { /*The request id this is a response to Required: true */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PutEntryNotFound The entry was not found
swagger:response putEntryNotFound
func NewPutEntryNotFound ¶
func NewPutEntryNotFound() *PutEntryNotFound
NewPutEntryNotFound creates PutEntryNotFound with default headers values
func (*PutEntryNotFound) SetPayload ¶
func (o *PutEntryNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the put entry not found response
func (*PutEntryNotFound) SetXRequestID ¶
func (o *PutEntryNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the put entry not found response
func (*PutEntryNotFound) WithPayload ¶
func (o *PutEntryNotFound) WithPayload(payload *models.Error) *PutEntryNotFound
WithPayload adds the payload to the put entry not found response
func (*PutEntryNotFound) WithXRequestID ¶
func (o *PutEntryNotFound) WithXRequestID(xRequestID string) *PutEntryNotFound
WithXRequestID adds the xRequestId to the put entry not found response
func (*PutEntryNotFound) WriteResponse ¶
func (o *PutEntryNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntryParams ¶
type PutEntryParams struct { // HTTP Request Object HTTPRequest *http.Request /*when this is an update to an entry, then this field needs to be present Pattern: [0-9]* In: header */ IfMatch *string /*A unique UUID for the request Min Length: 1 In: header */ XRequestID *string /* Required: true Max Length: 536870912 In: body */ Body io.ReadCloser /*The key for a given entry Required: true Min Length: 1 In: path */ Key string }
PutEntryParams contains all the bound params for the put entry operation typically these are obtained from a http.Request
swagger:parameters putEntry
func NewPutEntryParams ¶
func NewPutEntryParams() PutEntryParams
NewPutEntryParams creates a new PutEntryParams object with the default values initialized.
func (*PutEntryParams) BindRequest ¶
func (o *PutEntryParams) 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 PutEntryURL ¶
type PutEntryURL struct { Key string // contains filtered or unexported fields }
PutEntryURL generates an URL for the put entry operation
func (*PutEntryURL) Build ¶
func (o *PutEntryURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutEntryURL) BuildFull ¶
func (o *PutEntryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutEntryURL) SetBasePath ¶
func (o *PutEntryURL) 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 (*PutEntryURL) String ¶
func (o *PutEntryURL) String() string
String returns the string representation of the path with query string
func (*PutEntryURL) StringFull ¶
func (o *PutEntryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutEntryURL) WithBasePath ¶
func (o *PutEntryURL) WithBasePath(bp string) *PutEntryURL
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 ¶
- delete_entry.go
- delete_entry_parameters.go
- delete_entry_responses.go
- delete_entry_urlbuilder.go
- find_keys.go
- find_keys_parameters.go
- find_keys_responses.go
- find_keys_urlbuilder.go
- get_entry.go
- get_entry_parameters.go
- get_entry_responses.go
- get_entry_urlbuilder.go
- put_entry.go
- put_entry_parameters.go
- put_entry_responses.go
- put_entry_urlbuilder.go