Documentation
¶
Index ¶
- type BackendInfo
- type Capabilities
- type ChangedPath
- type ChangedSinceRequest
- type DiffSummary
- type DiffSummaryRequest
- type GitBackend
- func (GitBackend) ChangedSince(_ context.Context, req ChangedSinceRequest) ([]ChangedPath, error)
- func (GitBackend) DiffSummary(_ context.Context, req DiffSummaryRequest) (DiffSummary, error)
- func (GitBackend) ReadFile(_ context.Context, req ReadFileRequest) (VersionedFile, error)
- func (GitBackend) Snapshot(_ context.Context, _ SnapshotRequest) (Snapshot, error)
- func (GitBackend) Status(_ context.Context, req StatusRequest) (Status, error)
- type LocalBackend
- func (LocalBackend) ChangedSince(_ context.Context, req ChangedSinceRequest) ([]ChangedPath, error)
- func (LocalBackend) DiffSummary(_ context.Context, req DiffSummaryRequest) (DiffSummary, error)
- func (LocalBackend) ReadFile(_ context.Context, req ReadFileRequest) (VersionedFile, error)
- func (LocalBackend) Snapshot(ctx context.Context, req SnapshotRequest) (Snapshot, error)
- func (LocalBackend) Status(_ context.Context, req StatusRequest) (Status, error)
- type NoneBackend
- func (NoneBackend) ChangedSince(_ context.Context, req ChangedSinceRequest) ([]ChangedPath, error)
- func (NoneBackend) DiffSummary(_ context.Context, req DiffSummaryRequest) (DiffSummary, error)
- func (NoneBackend) ReadFile(_ context.Context, req ReadFileRequest) (VersionedFile, error)
- func (NoneBackend) Snapshot(_ context.Context, _ SnapshotRequest) (Snapshot, error)
- func (NoneBackend) Status(_ context.Context, _ StatusRequest) (Status, error)
- type ReadFileRequest
- type Snapshot
- type SnapshotRequest
- type Status
- type StatusRequest
- type VersionBackend
- type VersionedFile
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 DiffSummary ¶
type DiffSummary = domain.DiffSummary
type DiffSummaryRequest ¶
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) DiffSummary(_ context.Context, req DiffSummaryRequest) (DiffSummary, error)
func (GitBackend) ReadFile ¶
func (GitBackend) ReadFile(_ context.Context, req ReadFileRequest) (VersionedFile, error)
func (GitBackend) Snapshot ¶
func (GitBackend) Snapshot(_ context.Context, _ SnapshotRequest) (Snapshot, error)
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) ChangedSince(_ context.Context, req ChangedSinceRequest) ([]ChangedPath, error)
func (LocalBackend) DiffSummary ¶
func (LocalBackend) DiffSummary(_ context.Context, req DiffSummaryRequest) (DiffSummary, error)
func (LocalBackend) ReadFile ¶
func (LocalBackend) ReadFile(_ context.Context, req ReadFileRequest) (VersionedFile, error)
func (LocalBackend) Snapshot ¶
func (LocalBackend) Snapshot(ctx context.Context, req SnapshotRequest) (Snapshot, error)
func (LocalBackend) Status ¶
func (LocalBackend) Status(_ context.Context, req StatusRequest) (Status, error)
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) DiffSummary(_ context.Context, req DiffSummaryRequest) (DiffSummary, error)
func (NoneBackend) ReadFile ¶
func (NoneBackend) ReadFile(_ context.Context, req ReadFileRequest) (VersionedFile, error)
func (NoneBackend) Snapshot ¶
func (NoneBackend) Snapshot(_ context.Context, _ SnapshotRequest) (Snapshot, error)
func (NoneBackend) Status ¶
func (NoneBackend) Status(_ context.Context, _ StatusRequest) (Status, error)
type ReadFileRequest ¶
type Snapshot ¶
type Snapshot = domain.VersionSnapshot
type SnapshotRequest ¶
type Status ¶
type Status = domain.VersionStatus
type StatusRequest ¶
type StatusRequest struct {
Root string
}
type VersionBackend ¶
type VersionBackend interface {
Status(context.Context, StatusRequest) (Status, error)
Snapshot(context.Context, SnapshotRequest) (Snapshot, error)
ChangedSince(context.Context, ChangedSinceRequest) ([]ChangedPath, error)
ReadFile(context.Context, ReadFileRequest) (VersionedFile, error)
DiffSummary(context.Context, DiffSummaryRequest) (DiffSummary, error)
}
type VersionedFile ¶
type VersionedFile = domain.VersionedFile
Click to show internal directories.
Click to hide internal directories.