kv

package
v0.0.0-...-d5918fb Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

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

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

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

func (*FindKeys) ServeHTTP

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

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

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) Must

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

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

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

func (*GetEntry) ServeHTTP

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

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

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) Must

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

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

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

func (*PutEntry) ServeHTTP

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

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

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) Must

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

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

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

Jump to

Keyboard shortcuts

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