Documentation
¶
Index ¶
- Constants
- type BranchLocalRepository
- func (r *BranchLocalRepository) BranchExists(name string) bool
- func (r *BranchLocalRepository) GetActiveBranch() (entity.Branch, error)
- func (r *BranchLocalRepository) ListBranches() ([]entity.Branch, error)
- func (r *BranchLocalRepository) LoadBranch(name string) (entity.Branch, error)
- func (r *BranchLocalRepository) SaveBranch(branch entity.Branch) error
- func (r *BranchLocalRepository) SetActiveBranch(name string) error
- type CommitLocalRepository
- func (r *CommitLocalRepository) GetLatestCommitHash(branch string) (string, error)
- func (r *CommitLocalRepository) ListCommits(branch string) ([]entity.Commit, error)
- func (r *CommitLocalRepository) LoadCommit(hash string) (entity.Commit, error)
- func (r *CommitLocalRepository) SaveCommit(commit entity.Commit) error
- type ContextLocalRepository
- type DifLogConfig
- type LocalStorageInitializer
- func (i *LocalStorageInitializer) DifLogDir() string
- func (i *LocalStorageInitializer) Initialize(aiTool entity.AITool) error
- func (i *LocalStorageInitializer) IsInitialized() bool
- func (i *LocalStorageInitializer) LoadConfig() (DifLogConfig, error)
- func (i *LocalStorageInitializer) LoadRemote() (string, error)
- func (i *LocalStorageInitializer) SaveConfig(config DifLogConfig) error
- func (i *LocalStorageInitializer) SaveRemote(remote string) error
- func (i *LocalStorageInitializer) UpdateHEAD(branch string) error
- type SkillContextLocalRepository
- type StagingLocalRepository
Constants ¶
View Source
const DifLogDirName = ".difLog"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchLocalRepository ¶
type BranchLocalRepository struct {
// contains filtered or unexported fields
}
func NewBranchLocalRepository ¶
func NewBranchLocalRepository(difLogDir string, initializer *LocalStorageInitializer) *BranchLocalRepository
func (*BranchLocalRepository) BranchExists ¶
func (r *BranchLocalRepository) BranchExists(name string) bool
func (*BranchLocalRepository) GetActiveBranch ¶
func (r *BranchLocalRepository) GetActiveBranch() (entity.Branch, error)
func (*BranchLocalRepository) ListBranches ¶
func (r *BranchLocalRepository) ListBranches() ([]entity.Branch, error)
func (*BranchLocalRepository) LoadBranch ¶
func (r *BranchLocalRepository) LoadBranch(name string) (entity.Branch, error)
func (*BranchLocalRepository) SaveBranch ¶
func (r *BranchLocalRepository) SaveBranch(branch entity.Branch) error
func (*BranchLocalRepository) SetActiveBranch ¶
func (r *BranchLocalRepository) SetActiveBranch(name string) error
type CommitLocalRepository ¶
type CommitLocalRepository struct {
// contains filtered or unexported fields
}
func NewCommitLocalRepository ¶
func NewCommitLocalRepository(difLogDir string) *CommitLocalRepository
func (*CommitLocalRepository) GetLatestCommitHash ¶
func (r *CommitLocalRepository) GetLatestCommitHash(branch string) (string, error)
func (*CommitLocalRepository) ListCommits ¶
func (r *CommitLocalRepository) ListCommits(branch string) ([]entity.Commit, error)
func (*CommitLocalRepository) LoadCommit ¶
func (r *CommitLocalRepository) LoadCommit(hash string) (entity.Commit, error)
func (*CommitLocalRepository) SaveCommit ¶
func (r *CommitLocalRepository) SaveCommit(commit entity.Commit) error
type ContextLocalRepository ¶
type ContextLocalRepository struct {
// contains filtered or unexported fields
}
func NewContextLocalRepository ¶
func NewContextLocalRepository(difLogDir string) *ContextLocalRepository
func (*ContextLocalRepository) LoadObject ¶
func (r *ContextLocalRepository) LoadObject(hash string) ([]byte, error)
func (*ContextLocalRepository) ObjectExists ¶
func (r *ContextLocalRepository) ObjectExists(hash string) bool
func (*ContextLocalRepository) SaveObject ¶
func (r *ContextLocalRepository) SaveObject(hash string, content []byte) error
type DifLogConfig ¶
type LocalStorageInitializer ¶
type LocalStorageInitializer struct {
// contains filtered or unexported fields
}
func NewLocalStorageInitializer ¶
func NewLocalStorageInitializer(projectRoot string) *LocalStorageInitializer
func (*LocalStorageInitializer) DifLogDir ¶
func (i *LocalStorageInitializer) DifLogDir() string
func (*LocalStorageInitializer) Initialize ¶
func (i *LocalStorageInitializer) Initialize(aiTool entity.AITool) error
func (*LocalStorageInitializer) IsInitialized ¶
func (i *LocalStorageInitializer) IsInitialized() bool
func (*LocalStorageInitializer) LoadConfig ¶
func (i *LocalStorageInitializer) LoadConfig() (DifLogConfig, error)
func (*LocalStorageInitializer) LoadRemote ¶
func (i *LocalStorageInitializer) LoadRemote() (string, error)
func (*LocalStorageInitializer) SaveConfig ¶
func (i *LocalStorageInitializer) SaveConfig(config DifLogConfig) error
func (*LocalStorageInitializer) SaveRemote ¶
func (i *LocalStorageInitializer) SaveRemote(remote string) error
func (*LocalStorageInitializer) UpdateHEAD ¶
func (i *LocalStorageInitializer) UpdateHEAD(branch string) error
type SkillContextLocalRepository ¶
type SkillContextLocalRepository struct {
// contains filtered or unexported fields
}
func NewSkillContextLocalRepository ¶
func NewSkillContextLocalRepository(difLogDir string) *SkillContextLocalRepository
func (*SkillContextLocalRepository) ListSkillContexts ¶
func (r *SkillContextLocalRepository) ListSkillContexts() ([]entity.SkillContext, error)
func (*SkillContextLocalRepository) LoadSkillContext ¶
func (r *SkillContextLocalRepository) LoadSkillContext(hash string) (entity.SkillContext, error)
func (*SkillContextLocalRepository) SaveSkillContext ¶
func (r *SkillContextLocalRepository) SaveSkillContext(ctx entity.SkillContext) error
type StagingLocalRepository ¶
type StagingLocalRepository struct {
// contains filtered or unexported fields
}
func NewStagingLocalRepository ¶
func NewStagingLocalRepository(difLogDir string) *StagingLocalRepository
func (*StagingLocalRepository) ClearStagingIndex ¶
func (r *StagingLocalRepository) ClearStagingIndex() error
func (*StagingLocalRepository) LoadStagingIndex ¶
func (r *StagingLocalRepository) LoadStagingIndex() (entity.StagingIndex, error)
func (*StagingLocalRepository) SaveStagingIndex ¶
func (r *StagingLocalRepository) SaveStagingIndex(index entity.StagingIndex) error
Click to show internal directories.
Click to hide internal directories.