gitlab.com/beacon-software/gadget@v0.0.0-20181217202115-54565ea1ed5e/storage/provider.go (about)

     1  package storage
     2  
     3  // Provider is a struct that implements the functions necessary to work with
     4  // the persist package.
     5  type Provider interface {
     6  	Shard(name string) (Provider, error)
     7  	Read(key string, target interface{}) error
     8  	Write(key string, target interface{}) error
     9  	Exists(key string) bool
    10  	Delete(key string) error
    11  }