Documentation ¶
Index ¶
- Variables
- type BtfsAPI
- type BtfsAPIOption
- type FileStorer
- type Option
- type Providers
- type Providerser
- type StateStoreIterFunc
- type StateStorer
- type StorageStateStoreProxy
- func (s *StorageStateStoreProxy) Delete(key string) (err error)
- func (s *StorageStateStoreProxy) Get(key string, i interface{}) (err error)
- func (s *StorageStateStoreProxy) Iterate(prefix string, iterFunc StateStoreIterFunc) (err error)
- func (s *StorageStateStoreProxy) Put(key string, val interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStateStoreNotFound = errors.New("not found in state store") ErrFileStoreNotFound = errors.New("not found in file store") )
Functions ¶
This section is empty.
Types ¶
type BtfsAPI ¶
type BtfsAPI struct {
// contains filtered or unexported fields
}
func NewBtfsAPI ¶
func NewBtfsAPI(options ...BtfsAPIOption) (api *BtfsAPI, err error)
type BtfsAPIOption ¶
type BtfsAPIOption func(api *BtfsAPI)
func BtfsAPIWithBtfsAPIHeaderTimeout ¶
func BtfsAPIWithBtfsAPIHeaderTimeout(timeout time.Duration) BtfsAPIOption
func BtfsAPIWithEndpointUrl ¶
func BtfsAPIWithEndpointUrl(url string) BtfsAPIOption
func BtfsAPIWithTimeout ¶
func BtfsAPIWithTimeout(timeout time.Duration) BtfsAPIOption
type FileStorer ¶
type Providers ¶
type Providers struct {
// contains filtered or unexported fields
}
func NewProviders ¶
func NewProviders(stateStore StateStorer, fileStore FileStorer, options ...Option) (providers *Providers)
func (*Providers) FileStore ¶
func (p *Providers) FileStore() FileStorer
func (*Providers) StateStore ¶
func (p *Providers) StateStore() StateStorer
type Providerser ¶
type Providerser interface { FileStore() FileStorer StateStore() StateStorer }
type StateStoreIterFunc ¶
type StateStorer ¶
type StorageStateStoreProxy ¶
type StorageStateStoreProxy struct {
// contains filtered or unexported fields
}
func NewStorageStateStoreProxy ¶
func NewStorageStateStoreProxy(to storage.StateStorer) *StorageStateStoreProxy
func (*StorageStateStoreProxy) Delete ¶
func (s *StorageStateStoreProxy) Delete(key string) (err error)
func (*StorageStateStoreProxy) Get ¶
func (s *StorageStateStoreProxy) Get(key string, i interface{}) (err error)
func (*StorageStateStoreProxy) Iterate ¶
func (s *StorageStateStoreProxy) Iterate(prefix string, iterFunc StateStoreIterFunc) (err error)
func (*StorageStateStoreProxy) Put ¶
func (s *StorageStateStoreProxy) Put(key string, val interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.