kvstore
github.com/fastly/compute-sdk-go/kvstore
Package kvstore provides access to Fastly KV stores.
KV stores provide durable storage of key/value data that is readable and writable at the edge and synchronized globally.
See the Fastly KV store documentation for details.
Structs
| Entry | Entry represents a KV store value. |
| InsertConfig | |
| ListConfig | ListConfig holds the option for the List operation. |
| ListIter | ListIter is an iterator over pages of List results. |
| ListMetadata | ListMetadata is the metadata for a particular page of list results.[ |
| ListPage | |
| Store | Store represents a Fastly KV store |
Functions
| Open | Open returns a handle to the named kv store |
Constants
Default: fastly.KVInsertModeAdd
Default: fastly.KVInsertModeAppend
Default: fastly.KVInsertModeOverwrite
Default: fastly.KVInsertModePrepend
Default: fastly.KVListModeEventual
Default: fastly.KVListModeStrong
Variables
Default: errors.New("kvstore: bad request")
ErrBadRequest indicates the KV Store request was bad.
Default: errors.New("kvstore: invalid key")
ErrInvalidKey indicates that the given key is invalid.
Default: errors.New("kvstore: invalid options")
ErrInvalidOptions indicates the options provided for this operation were invalid.
Default: errors.New("kvstore: key not found")
ErrKeyNotFound indicates that the named key doesn't exist in this KV store.
Default: errors.New("kvstore: payload too large")
ErrPayloadTooLarge indicates the item exceeded the payload limit.
Default: errors.New("kvstore: precondition failed")
ErrPreconditionFailed indicates a precondition for the kvstore operation failed.
Default: errors.New("kvstore: store not found")
ErrStoreNotFound indicates that the named store doesn't exist.
Default: errors.New("kvstore: too many requests")
ErrTooManyRequests is returned when inserting a value exceeds the rate limit.
Default: errors.New("kvstore: unexpected error")
ErrUnexpected indicates than an unexpected error occurred.