Documentation ¶
Index ¶
- type ConfigStorage
- type ObjectIter
- type ObjectStorage
- func (s *ObjectStorage) Begin() core.TxObjectStorage
- func (s *ObjectStorage) Get(t core.ObjectType, h core.Hash) (core.Object, error)
- func (s *ObjectStorage) Iter(t core.ObjectType) (core.ObjectIter, error)
- func (s *ObjectStorage) NewObject() core.Object
- func (s *ObjectStorage) Set(obj core.Object) (core.Hash, error)
- func (s *ObjectStorage) Writer() (io.WriteCloser, error)
- type ReferenceStorage
- type Storage
- type TxObjectStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigStorage ¶
type ConfigStorage struct {
// contains filtered or unexported fields
}
func (*ConfigStorage) DeleteRemote ¶
func (s *ConfigStorage) DeleteRemote(name string) error
func (*ConfigStorage) Remote ¶
func (s *ConfigStorage) Remote(name string) (*config.RemoteConfig, error)
func (*ConfigStorage) Remotes ¶
func (s *ConfigStorage) Remotes() ([]*config.RemoteConfig, error)
func (*ConfigStorage) SetRemote ¶
func (s *ConfigStorage) SetRemote(r *config.RemoteConfig) error
type ObjectIter ¶
type ObjectIter struct {
// contains filtered or unexported fields
}
func (*ObjectIter) Close ¶
func (i *ObjectIter) Close()
type ObjectStorage ¶
type ObjectStorage struct {
// contains filtered or unexported fields
}
func (*ObjectStorage) Begin ¶
func (s *ObjectStorage) Begin() core.TxObjectStorage
func (*ObjectStorage) Get ¶
func (s *ObjectStorage) Get(t core.ObjectType, h core.Hash) (core.Object, error)
func (*ObjectStorage) Iter ¶
func (s *ObjectStorage) Iter(t core.ObjectType) (core.ObjectIter, error)
func (*ObjectStorage) NewObject ¶
func (s *ObjectStorage) NewObject() core.Object
func (*ObjectStorage) Writer ¶
func (s *ObjectStorage) Writer() (io.WriteCloser, error)
Writer method not supported, this method is optional to implemented.
type ReferenceStorage ¶
type ReferenceStorage struct {
// contains filtered or unexported fields
}
func (*ReferenceStorage) Get ¶
func (s *ReferenceStorage) Get(n core.ReferenceName) (*core.Reference, error)
Get returns a stored reference with the given name
func (*ReferenceStorage) Iter ¶
func (s *ReferenceStorage) Iter() (core.ReferenceIter, error)
Iter returns a core.ReferenceIter
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) ConfigStorage ¶
func (s *Storage) ConfigStorage() config.ConfigStorage
func (*Storage) ObjectStorage ¶
func (s *Storage) ObjectStorage() core.ObjectStorage
func (*Storage) ReferenceStorage ¶
func (s *Storage) ReferenceStorage() core.ReferenceStorage
type TxObjectStorage ¶
type TxObjectStorage struct {
Storage *ObjectStorage
}
func (*TxObjectStorage) Commit ¶
func (tx *TxObjectStorage) Commit() error
func (*TxObjectStorage) Get ¶
func (tx *TxObjectStorage) Get(t core.ObjectType, h core.Hash) (core.Object, error)
func (*TxObjectStorage) Rollback ¶
func (tx *TxObjectStorage) Rollback() error
Click to show internal directories.
Click to hide internal directories.