Versions in this module Expand all Collapse all v0 v0.18.0 Apr 6, 2018 v0.17.0 Nov 30, 2017 Changes in this version + const AlreadyExists + const AlreadyOwnedByYou + const InvalidName + const NotFound + const NotImplemented + func CheckName(name string) (string, error) + type Error string + func (e Error) Error() string + type Interface interface + Create func(ctx context.Context, name string) (store *ObjectStore, err error) + Delete func(ctx context.Context, id string) (err error) + Get func(ctx context.Context, id string) (store *ObjectStore, err error) + GetByFragmentOrName func(ctx context.Context, fragmentOrName string) (store *ObjectStore, err error) + GetByName func(ctx context.Context, name string) (store *ObjectStore, err error) + List func(ctx context.Context) (stores []*ObjectStore, err error) + UpdateLocation func(ctx context.Context, id string, location string) (err error) + type ObjectStore struct + CreateDt int64 + Id string + Location string + Name string + Owner *accounts.Account + func (*ObjectStore) Descriptor() ([]byte, []int) + func (*ObjectStore) ProtoMessage() + func (f *ObjectStore) Validate() (err error) + func (m *ObjectStore) GetCreateDt() int64 + func (m *ObjectStore) GetId() string + func (m *ObjectStore) GetLocation() string + func (m *ObjectStore) GetName() string + func (m *ObjectStore) GetOwner() *accounts.Account + func (m *ObjectStore) Reset() + func (m *ObjectStore) String() string + type Store struct + func NewStore(storage storage.Interface, accounts accounts.Interface) *Store + func (s *Store) Create(ctx context.Context, name string) (ostore *ObjectStore, err error) + func (s *Store) Delete(ctx context.Context, id string) error + func (s *Store) Get(ctx context.Context, id string) (*ObjectStore, error) + func (s *Store) GetByFragmentOrName(ctx context.Context, fragmentOrName string) (ostore *ObjectStore, err error) + func (s *Store) GetByName(ctx context.Context, name string) (ostore *ObjectStore, err error) + func (s *Store) List(ctx context.Context) ([]*ObjectStore, error) + func (s *Store) UpdateLocation(ctx context.Context, id string, location string) error