sc

package
v0.0.0-...-78f932f Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

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

func (cs *CommitStore) LoadVersion(targetVersion int64, copyExisting bool) (types.Committer, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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