Store
type Store struct { // contains filtered or unexported fields}Store represents a Fastly KV store
Methods
Delete
View sourcefunc (s *Store) Delete(key string) errorDelete removes a key from the associated KV store.
Parameters
- key: string
Returns
error
Insert
View sourceInsert adds a key to the associated KV store.
Parameters
- key: string
- value: io.Reader
Returns
error
InsertWithConfig
View sourceInsert adds a key to the associated KV store.
Parameters
- key: string
- value: io.Reader
- config: *InsertConfig
Returns
error
List
View sourceList returns an iterator over pages of keys matching
Parameters
- config: *ListConfig
Returns
Lookup
View sourceLookup fetches a key from the associated KV store. If the key does not exist, Lookup returns the sentinel error [ErrKeyNotFound].
Parameters
- key: string
Returns
(*Entry, error)