Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketStore ¶
type BucketStore interface { Add(b model.Bucket) (*model.Bucket, error) Delete(name string) error Get(name string) (*model.Bucket, error) List() ([]model.Bucket, error) // TODO implement bucket metadata and store ACLs there UpdateACLs(bucketName string, acls authz.ACLList) error }
BucketStore defines API to manage bucket store
func NewBucketStore ¶
func NewBucketStore(keyPrefix string, client *etcd.Client) BucketStore
NewBucketStore creates new store object managing buckets in Etcd
type CustomerStore ¶
type CustomerStore interface { Add(customer model.Customer) (*model.Customer, error) Update(customer model.Customer) (*model.Customer, error) Delete(name string) error Get(name string) (*model.Customer, error) List() ([]model.Customer, error) }
CustomerStore defines API to manage customer store
func NewCustomerStore ¶
func NewCustomerStore(keyPrefix string, client *etcd.Client) CustomerStore
NewCustomerStore creates new store object managing customers in Etcd
type FileObjectStore ¶
type FileObjectStore interface { Add(path string) (*model.FileObject, error) GetAllPaths() ([]string, error) Delete(path string) error }
FileObjectStore defines API to manage file-object store
func NewFileObjectStore ¶
func NewFileObjectStore(keyPrefix string, etcdAddress string) (FileObjectStore, error)
NewCustomerStore creates new store managing file-objects in Etcd
Click to show internal directories.
Click to hide internal directories.