version

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendInfo

type BackendInfo struct {
	Name         string       `json:"name"`
	Active       bool         `json:"active"`
	Description  string       `json:"description"`
	Capabilities Capabilities `json:"capabilities"`
}

func AvailableBackends

func AvailableBackends() []BackendInfo

func ProbeGitBackend

func ProbeGitBackend(root string) BackendInfo

type Capabilities

type Capabilities = domain.VersionCapabilities

type ChangedPath

type ChangedPath = domain.ChangedPath

type ChangedSinceRequest

type ChangedSinceRequest struct {
	Root          string
	SinceRevision string
}

type DiffSummary

type DiffSummary = domain.DiffSummary

type DiffSummaryRequest

type DiffSummaryRequest struct {
	Root           string
	BaseRevision   string
	TargetRevision string
}

type GitBackend

type GitBackend struct{}

GitBackend reserves the pure Go adapter boundary. It does not shell out to system git.

func NewGitBackend

func NewGitBackend() GitBackend

func (GitBackend) ChangedSince

func (GitBackend) ChangedSince(_ context.Context, req ChangedSinceRequest) ([]ChangedPath, error)

func (GitBackend) DiffSummary

func (GitBackend) ReadFile

func (GitBackend) Snapshot

func (GitBackend) Status

func (GitBackend) Status(_ context.Context, req StatusRequest) (Status, error)

type LocalBackend

type LocalBackend struct{}

func NewLocalBackend

func NewLocalBackend() LocalBackend

func (LocalBackend) ChangedSince

func (LocalBackend) DiffSummary

func (LocalBackend) ReadFile

func (LocalBackend) Snapshot

func (LocalBackend) Snapshot(ctx context.Context, req SnapshotRequest) (Snapshot, error)

func (LocalBackend) Status

type NoneBackend

type NoneBackend struct{}

func NewNoneBackend

func NewNoneBackend() NoneBackend

func (NoneBackend) ChangedSince

func (NoneBackend) ChangedSince(_ context.Context, req ChangedSinceRequest) ([]ChangedPath, error)

func (NoneBackend) DiffSummary

func (NoneBackend) ReadFile

func (NoneBackend) Snapshot

func (NoneBackend) Status

type ReadFileRequest

type ReadFileRequest struct {
	Root     string
	Path     string
	Revision string
}

type Snapshot

type Snapshot = domain.VersionSnapshot

type SnapshotRequest

type SnapshotRequest struct {
	Root    string
	Message string
}

type Status

type Status = domain.VersionStatus

type StatusRequest

type StatusRequest struct {
	Root string
}

type VersionedFile

type VersionedFile = domain.VersionedFile

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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