repository

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchRepository

type BranchRepository interface {
	SaveBranch(branch entity.Branch) error
	LoadBranch(name string) (entity.Branch, error)
	ListBranches() ([]entity.Branch, error)
	GetActiveBranch() (entity.Branch, error)
	SetActiveBranch(name string) error
	BranchExists(name string) bool
}

type CommitRepository

type CommitRepository interface {
	SaveCommit(commit entity.Commit) error
	LoadCommit(hash string) (entity.Commit, error)
	ListCommits(branch string) ([]entity.Commit, error)
	GetLatestCommitHash(branch string) (string, error)
}

type ContextRepository

type ContextRepository interface {
	SaveObject(hash string, content []byte) error
	LoadObject(hash string) ([]byte, error)
	ObjectExists(hash string) bool
}

type ReleaseRepository

type ReleaseRepository interface {
	GetLatestRelease() (entity.Release, error)
}

type RemoteRepository

type RemoteRepository interface {
	PushCommits(remote entity.Remote, commits []entity.Commit, objects map[string][]byte) error
	PullCommits(remote entity.Remote, branch string) ([]entity.Commit, map[string][]byte, error)
}

type SkillContextRepository

type SkillContextRepository interface {
	SaveSkillContext(ctx entity.SkillContext) error
	ListSkillContexts() ([]entity.SkillContext, error)
	LoadSkillContext(hash string) (entity.SkillContext, error)
}

type StagingRepository

type StagingRepository interface {
	LoadStagingIndex() (entity.StagingIndex, error)
	SaveStagingIndex(index entity.StagingIndex) error
	ClearStagingIndex() error
}

Jump to

Keyboard shortcuts

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