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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for kv API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new kv API client.

func (*Client) DeleteEntry

func (a *Client) DeleteEntry(params *DeleteEntryParams) (*DeleteEntryNoContent, error)

DeleteEntry delete entry API

func (*Client) FindKeys

func (a *Client) FindKeys(params *FindKeysParams) (*FindKeysOK, error)

FindKeys lists all the keys

func (*Client) GetEntry

func (a *Client) GetEntry(params *GetEntryParams, writer io.Writer) (*GetEntryOK, error)

GetEntry get entry API

func (*Client) PutEntry

func (a *Client) PutEntry(params *PutEntryParams) (*PutEntryCreated, *PutEntryNoContent, error)

PutEntry put entry API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DeleteEntryDefault

type DeleteEntryDefault struct {

	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteEntryDefault handles this case with default header values.

Error

func NewDeleteEntryDefault

func NewDeleteEntryDefault(code int) *DeleteEntryDefault

NewDeleteEntryDefault creates a DeleteEntryDefault with default headers values

func (*DeleteEntryDefault) Code

func (o *DeleteEntryDefault) Code() int

Code gets the status code for the delete entry default response

func (*DeleteEntryDefault) Error

func (o *DeleteEntryDefault) Error() string

type DeleteEntryNoContent

type DeleteEntryNoContent struct {
	/*The request id this is a response to
	 */
	XRequestID string
}

DeleteEntryNoContent handles this case with default header values.

the delete was successful

func NewDeleteEntryNoContent

func NewDeleteEntryNoContent() *DeleteEntryNoContent

NewDeleteEntryNoContent creates a DeleteEntryNoContent with default headers values

func (*DeleteEntryNoContent) Error

func (o *DeleteEntryNoContent) Error() string

type DeleteEntryParams

type DeleteEntryParams struct {

	/*XRequestID
	  A unique UUID for the request

	*/
	XRequestID *string
	/*Key
	  The key for a given entry

	*/
	Key string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteEntryParams contains all the parameters to send to the API endpoint for the delete entry operation typically these are written to a http.Request

func NewDeleteEntryParams

func NewDeleteEntryParams() *DeleteEntryParams

NewDeleteEntryParams creates a new DeleteEntryParams object with the default values initialized.

func NewDeleteEntryParamsWithContext

func NewDeleteEntryParamsWithContext(ctx context.Context) *DeleteEntryParams

NewDeleteEntryParamsWithContext creates a new DeleteEntryParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteEntryParamsWithTimeout

func NewDeleteEntryParamsWithTimeout(timeout time.Duration) *DeleteEntryParams

NewDeleteEntryParamsWithTimeout creates a new DeleteEntryParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteEntryParams) SetContext

func (o *DeleteEntryParams) SetContext(ctx context.Context)

SetContext adds the context to the delete entry params

func (*DeleteEntryParams) SetKey

func (o *DeleteEntryParams) SetKey(key string)

SetKey adds the key to the delete entry params

func (*DeleteEntryParams) SetTimeout

func (o *DeleteEntryParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete entry params

func (*DeleteEntryParams) SetXRequestID

func (o *DeleteEntryParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete entry params

func (*DeleteEntryParams) WithContext

func (o *DeleteEntryParams) WithContext(ctx context.Context) *DeleteEntryParams

WithContext adds the context to the delete entry params

func (*DeleteEntryParams) WithKey

func (o *DeleteEntryParams) WithKey(key string) *DeleteEntryParams

WithKey adds the key to the delete entry params

func (*DeleteEntryParams) WithTimeout

func (o *DeleteEntryParams) WithTimeout(timeout time.Duration) *DeleteEntryParams

WithTimeout adds the timeout to the delete entry params

func (*DeleteEntryParams) WithXRequestID

func (o *DeleteEntryParams) WithXRequestID(xRequestID *string) *DeleteEntryParams

WithXRequestID adds the xRequestID to the delete entry params

func (*DeleteEntryParams) WriteToRequest

func (o *DeleteEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteEntryReader

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

DeleteEntryReader is a Reader for the DeleteEntry structure.

func (*DeleteEntryReader) ReadResponse

func (o *DeleteEntryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type FindKeysDefault

type FindKeysDefault struct {

	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
	// contains filtered or unexported fields
}

FindKeysDefault handles this case with default header values.

Error

func NewFindKeysDefault

func NewFindKeysDefault(code int) *FindKeysDefault

NewFindKeysDefault creates a FindKeysDefault with default headers values

func (*FindKeysDefault) Code

func (o *FindKeysDefault) Code() int

Code gets the status code for the find keys default response

func (*FindKeysDefault) Error

func (o *FindKeysDefault) Error() string

type FindKeysOK

type FindKeysOK struct {
	/*The request id this is a response to
	 */
	XRequestID string

	Payload []string
}

FindKeysOK handles this case with default header values.

list the keys known to this datastore

func NewFindKeysOK

func NewFindKeysOK() *FindKeysOK

NewFindKeysOK creates a FindKeysOK with default headers values

func (*FindKeysOK) Error

func (o *FindKeysOK) Error() string

type FindKeysParams

type FindKeysParams struct {

	/*XRequestID
	  A unique UUID for the request

	*/
	XRequestID *string
	/*Prefix*/
	Prefix *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

FindKeysParams contains all the parameters to send to the API endpoint for the find keys operation typically these are written to a http.Request

func NewFindKeysParams

func NewFindKeysParams() *FindKeysParams

NewFindKeysParams creates a new FindKeysParams object with the default values initialized.

func NewFindKeysParamsWithContext

func NewFindKeysParamsWithContext(ctx context.Context) *FindKeysParams

NewFindKeysParamsWithContext creates a new FindKeysParams object with the default values initialized, and the ability to set a context for a request

func NewFindKeysParamsWithTimeout

func NewFindKeysParamsWithTimeout(timeout time.Duration) *FindKeysParams

NewFindKeysParamsWithTimeout creates a new FindKeysParams object with the default values initialized, and the ability to set a timeout on a request

func (*FindKeysParams) SetContext

func (o *FindKeysParams) SetContext(ctx context.Context)

SetContext adds the context to the find keys params

func (*FindKeysParams) SetPrefix

func (o *FindKeysParams) SetPrefix(prefix *string)

SetPrefix adds the prefix to the find keys params

func (*FindKeysParams) SetTimeout

func (o *FindKeysParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the find keys params

func (*FindKeysParams) SetXRequestID

func (o *FindKeysParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the find keys params

func (*FindKeysParams) WithContext

func (o *FindKeysParams) WithContext(ctx context.Context) *FindKeysParams

WithContext adds the context to the find keys params

func (*FindKeysParams) WithPrefix

func (o *FindKeysParams) WithPrefix(prefix *string) *FindKeysParams

WithPrefix adds the prefix to the find keys params

func (*FindKeysParams) WithTimeout

func (o *FindKeysParams) WithTimeout(timeout time.Duration) *FindKeysParams

WithTimeout adds the timeout to the find keys params

func (*FindKeysParams) WithXRequestID

func (o *FindKeysParams) WithXRequestID(xRequestID *string) *FindKeysParams

WithXRequestID adds the xRequestID to the find keys params

func (*FindKeysParams) WriteToRequest

func (o *FindKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindKeysReader

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

FindKeysReader is a Reader for the FindKeys structure.

func (*FindKeysReader) ReadResponse

func (o *FindKeysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetEntryDefault

type GetEntryDefault struct {

	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetEntryDefault handles this case with default header values.

Error

func NewGetEntryDefault

func NewGetEntryDefault(code int) *GetEntryDefault

NewGetEntryDefault creates a GetEntryDefault with default headers values

func (*GetEntryDefault) Code

func (o *GetEntryDefault) Code() int

Code gets the status code for the get entry default response

func (*GetEntryDefault) Error

func (o *GetEntryDefault) Error() string

type GetEntryNotFound

type GetEntryNotFound struct {
	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
}

GetEntryNotFound handles this case with default header values.

The entry was not found

func NewGetEntryNotFound

func NewGetEntryNotFound() *GetEntryNotFound

NewGetEntryNotFound creates a GetEntryNotFound with default headers values

func (*GetEntryNotFound) Error

func (o *GetEntryNotFound) Error() string

type GetEntryNotModified

type GetEntryNotModified struct {
	/*The version of this entry
	 */
	ETag string
	/*The time this entry was last modified
	 */
	LastModified string
	/*The request id this is a response to
	 */
	XRequestID string
}

GetEntryNotModified handles this case with default header values.

entry was found but not modified

func NewGetEntryNotModified

func NewGetEntryNotModified() *GetEntryNotModified

NewGetEntryNotModified creates a GetEntryNotModified with default headers values

func (*GetEntryNotModified) Error

func (o *GetEntryNotModified) Error() string

type GetEntryOK

type GetEntryOK struct {
	/*The version of this entry
	 */
	ETag string
	/*The time this entry was last modified
	 */
	LastModified string
	/*The request id this is a response to
	 */
	XRequestID string

	Payload io.Writer
}

GetEntryOK handles this case with default header values.

entry was found

func NewGetEntryOK

func NewGetEntryOK(writer io.Writer) *GetEntryOK

NewGetEntryOK creates a GetEntryOK with default headers values

func (*GetEntryOK) Error

func (o *GetEntryOK) Error() string

type GetEntryParams

type GetEntryParams struct {

	/*IfNoneMatch*/
	IfNoneMatch *string
	/*XRequestID
	  A unique UUID for the request

	*/
	XRequestID *string
	/*Key
	  The key for a given entry

	*/
	Key string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetEntryParams contains all the parameters to send to the API endpoint for the get entry operation typically these are written to a http.Request

func NewGetEntryParams

func NewGetEntryParams() *GetEntryParams

NewGetEntryParams creates a new GetEntryParams object with the default values initialized.

func NewGetEntryParamsWithContext

func NewGetEntryParamsWithContext(ctx context.Context) *GetEntryParams

NewGetEntryParamsWithContext creates a new GetEntryParams object with the default values initialized, and the ability to set a context for a request

func NewGetEntryParamsWithTimeout

func NewGetEntryParamsWithTimeout(timeout time.Duration) *GetEntryParams

NewGetEntryParamsWithTimeout creates a new GetEntryParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetEntryParams) SetContext

func (o *GetEntryParams) SetContext(ctx context.Context)

SetContext adds the context to the get entry params

func (*GetEntryParams) SetIfNoneMatch

func (o *GetEntryParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get entry params

func (*GetEntryParams) SetKey

func (o *GetEntryParams) SetKey(key string)

SetKey adds the key to the get entry params

func (*GetEntryParams) SetTimeout

func (o *GetEntryParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get entry params

func (*GetEntryParams) SetXRequestID

func (o *GetEntryParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get entry params

func (*GetEntryParams) WithContext

func (o *GetEntryParams) WithContext(ctx context.Context) *GetEntryParams

WithContext adds the context to the get entry params

func (*GetEntryParams) WithIfNoneMatch

func (o *GetEntryParams) WithIfNoneMatch(ifNoneMatch *string) *GetEntryParams

WithIfNoneMatch adds the ifNoneMatch to the get entry params

func (*GetEntryParams) WithKey

func (o *GetEntryParams) WithKey(key string) *GetEntryParams

WithKey adds the key to the get entry params

func (*GetEntryParams) WithTimeout

func (o *GetEntryParams) WithTimeout(timeout time.Duration) *GetEntryParams

WithTimeout adds the timeout to the get entry params

func (*GetEntryParams) WithXRequestID

func (o *GetEntryParams) WithXRequestID(xRequestID *string) *GetEntryParams

WithXRequestID adds the xRequestID to the get entry params

func (*GetEntryParams) WriteToRequest

func (o *GetEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetEntryReader

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

GetEntryReader is a Reader for the GetEntry structure.

func (*GetEntryReader) ReadResponse

func (o *GetEntryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutEntryConflict

type PutEntryConflict struct {
	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
}

PutEntryConflict handles this case with default header values.

there is a version mismatch for the entry

func NewPutEntryConflict

func NewPutEntryConflict() *PutEntryConflict

NewPutEntryConflict creates a PutEntryConflict with default headers values

func (*PutEntryConflict) Error

func (o *PutEntryConflict) Error() string

type PutEntryCreated

type PutEntryCreated struct {
	/*The version of this entry
	 */
	Etag string
	/*the location to get the newly created entry
	 */
	Location strfmt.URI
	/*The request id this is a response to
	 */
	XRequestID string
}

PutEntryCreated handles this case with default header values.

entry was created

func NewPutEntryCreated

func NewPutEntryCreated() *PutEntryCreated

NewPutEntryCreated creates a PutEntryCreated with default headers values

func (*PutEntryCreated) Error

func (o *PutEntryCreated) Error() string

type PutEntryDefault

type PutEntryDefault struct {

	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
	// contains filtered or unexported fields
}

PutEntryDefault handles this case with default header values.

Error

func NewPutEntryDefault

func NewPutEntryDefault(code int) *PutEntryDefault

NewPutEntryDefault creates a PutEntryDefault with default headers values

func (*PutEntryDefault) Code

func (o *PutEntryDefault) Code() int

Code gets the status code for the put entry default response

func (*PutEntryDefault) Error

func (o *PutEntryDefault) Error() string

type PutEntryGone

type PutEntryGone struct {
	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
}

PutEntryGone handles this case with default header values.

The entry is deleted

func NewPutEntryGone

func NewPutEntryGone() *PutEntryGone

NewPutEntryGone creates a PutEntryGone with default headers values

func (*PutEntryGone) Error

func (o *PutEntryGone) Error() string

type PutEntryNoContent

type PutEntryNoContent struct {
	/*The version of this entry
	 */
	ETag string
	/*The request id this is a response to
	 */
	XRequestID string
}

PutEntryNoContent handles this case with default header values.

entry was updated

func NewPutEntryNoContent

func NewPutEntryNoContent() *PutEntryNoContent

NewPutEntryNoContent creates a PutEntryNoContent with default headers values

func (*PutEntryNoContent) Error

func (o *PutEntryNoContent) Error() string

type PutEntryNotFound

type PutEntryNotFound struct {
	/*The request id this is a response to
	 */
	XRequestID string

	Payload *models.Error
}

PutEntryNotFound handles this case with default header values.

The entry was not found

func NewPutEntryNotFound

func NewPutEntryNotFound() *PutEntryNotFound

NewPutEntryNotFound creates a PutEntryNotFound with default headers values

func (*PutEntryNotFound) Error

func (o *PutEntryNotFound) Error() string

type PutEntryParams

type PutEntryParams struct {

	/*IfMatch
	  when this is an update to an entry, then this field needs to be present

	*/
	IfMatch *string
	/*XRequestID
	  A unique UUID for the request

	*/
	XRequestID *string
	/*Body*/
	Body io.Writer
	/*Key
	  The key for a given entry

	*/
	Key string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutEntryParams contains all the parameters to send to the API endpoint for the put entry operation typically these are written to a http.Request

func NewPutEntryParams

func NewPutEntryParams() *PutEntryParams

NewPutEntryParams creates a new PutEntryParams object with the default values initialized.

func NewPutEntryParamsWithContext

func NewPutEntryParamsWithContext(ctx context.Context) *PutEntryParams

NewPutEntryParamsWithContext creates a new PutEntryParams object with the default values initialized, and the ability to set a context for a request

func NewPutEntryParamsWithTimeout

func NewPutEntryParamsWithTimeout(timeout time.Duration) *PutEntryParams

NewPutEntryParamsWithTimeout creates a new PutEntryParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutEntryParams) SetBody

func (o *PutEntryParams) SetBody(body io.Writer)

SetBody adds the body to the put entry params

func (*PutEntryParams) SetContext

func (o *PutEntryParams) SetContext(ctx context.Context)

SetContext adds the context to the put entry params

func (*PutEntryParams) SetIfMatch

func (o *PutEntryParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the put entry params

func (*PutEntryParams) SetKey

func (o *PutEntryParams) SetKey(key string)

SetKey adds the key to the put entry params

func (*PutEntryParams) SetTimeout

func (o *PutEntryParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put entry params

func (*PutEntryParams) SetXRequestID

func (o *PutEntryParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the put entry params

func (*PutEntryParams) WithBody

func (o *PutEntryParams) WithBody(body io.Writer) *PutEntryParams

WithBody adds the body to the put entry params

func (*PutEntryParams) WithContext

func (o *PutEntryParams) WithContext(ctx context.Context) *PutEntryParams

WithContext adds the context to the put entry params

func (*PutEntryParams) WithIfMatch

func (o *PutEntryParams) WithIfMatch(ifMatch *string) *PutEntryParams

WithIfMatch adds the ifMatch to the put entry params

func (*PutEntryParams) WithKey

func (o *PutEntryParams) WithKey(key string) *PutEntryParams

WithKey adds the key to the put entry params

func (*PutEntryParams) WithTimeout

func (o *PutEntryParams) WithTimeout(timeout time.Duration) *PutEntryParams

WithTimeout adds the timeout to the put entry params

func (*PutEntryParams) WithXRequestID

func (o *PutEntryParams) WithXRequestID(xRequestID *string) *PutEntryParams

WithXRequestID adds the xRequestID to the put entry params

func (*PutEntryParams) WriteToRequest

func (o *PutEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutEntryReader

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

PutEntryReader is a Reader for the PutEntry structure.

func (*PutEntryReader) ReadResponse

func (o *PutEntryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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