Documentation
¶
Index ¶
- type CommitStore
- func (cs *CommitStore) ApplyChangeSets(changesets []*proto.NamedChangeSet) error
- func (cs *CommitStore) ApplyUpgrades(upgrades []*proto.TreeNameUpgrade) error
- func (cs *CommitStore) Close() error
- func (cs *CommitStore) Commit() (int64, error)
- func (cs *CommitStore) Exporter(version int64) (types.Exporter, error)
- func (cs *CommitStore) GetEarliestVersion() (int64, error)
- func (cs *CommitStore) GetLatestVersion() (int64, error)
- func (cs *CommitStore) GetTreeByName(name string) types.Tree
- func (cs *CommitStore) Importer(version int64) (types.Importer, error)
- func (cs *CommitStore) Initialize(initialStores []string)
- func (cs *CommitStore) LastCommitInfo() *proto.CommitInfo
- func (cs *CommitStore) LoadVersion(targetVersion int64, copyExisting bool) (types.Committer, error)
- func (cs *CommitStore) Rollback(targetVersion int64) error
- func (cs *CommitStore) SetInitialVersion(initialVersion int64) error
- func (cs *CommitStore) Version() int64
- func (cs *CommitStore) WorkingCommitInfo() *proto.CommitInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitStore ¶
type CommitStore struct {
// contains filtered or unexported fields
}
func NewCommitStore ¶
func NewCommitStore(homeDir string, logger logger.Logger, config config.StateCommitConfig) *CommitStore
func (*CommitStore) ApplyChangeSets ¶
func (cs *CommitStore) ApplyChangeSets(changesets []*proto.NamedChangeSet) error
func (*CommitStore) ApplyUpgrades ¶
func (cs *CommitStore) ApplyUpgrades(upgrades []*proto.TreeNameUpgrade) error
func (*CommitStore) Close ¶
func (cs *CommitStore) Close() error
func (*CommitStore) Commit ¶
func (cs *CommitStore) Commit() (int64, error)
func (*CommitStore) Exporter ¶
func (cs *CommitStore) Exporter(version int64) (types.Exporter, error)
func (*CommitStore) GetEarliestVersion ¶
func (cs *CommitStore) GetEarliestVersion() (int64, error)
func (*CommitStore) GetLatestVersion ¶
func (cs *CommitStore) GetLatestVersion() (int64, error)
func (*CommitStore) GetTreeByName ¶
func (cs *CommitStore) GetTreeByName(name string) types.Tree
func (*CommitStore) Importer ¶
func (cs *CommitStore) Importer(version int64) (types.Importer, error)
func (*CommitStore) Initialize ¶
func (cs *CommitStore) Initialize(initialStores []string)
func (*CommitStore) LastCommitInfo ¶
func (cs *CommitStore) LastCommitInfo() *proto.CommitInfo
func (*CommitStore) LoadVersion ¶
copyExisting is for creating new memiavl object given existing folder
func (*CommitStore) Rollback ¶
func (cs *CommitStore) Rollback(targetVersion int64) error
func (*CommitStore) SetInitialVersion ¶
func (cs *CommitStore) SetInitialVersion(initialVersion int64) error
func (*CommitStore) Version ¶
func (cs *CommitStore) Version() int64
func (*CommitStore) WorkingCommitInfo ¶
func (cs *CommitStore) WorkingCommitInfo() *proto.CommitInfo
Click to show internal directories.
Click to hide internal directories.