etcd_store

package
v0.0.0-...-614d85d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL