missionchanges

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StatusAdded    = "added"
	StatusModified = "modified"
	StatusDeleted  = "deleted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedFile

type ChangedFile struct {
	Path   string `json:"path"`
	Status string `json:"status"`
	Score  int    `json:"score"`
}

type Changes

type Changes struct {
	Files      []ChangedFile `json:"files"`
	Incomplete bool          `json:"incomplete"`
	Scope      ScopeStats    `json:"scope"`
}

type Diff

type Diff struct {
	Original  string `json:"original"`
	Modified  string `json:"modified"`
	Truncated bool   `json:"truncated,omitempty"`
}

type ScopeStats

type ScopeStats struct {
	Files        int      `json:"files"`
	Dirs         int      `json:"dirs"`
	Anomaly      bool     `json:"anomaly"`
	OutsidePaths []string `json:"outsidePaths,omitempty"`
}

type Service

type Service interface {
	Changes(ctx context.Context, missionID string) (*Changes, error)

	Diff(ctx context.Context, missionID, filePath string) (*Diff, error)
}

func New

func New(missions missionGetter, journal SessionJournalReader) Service

type SessionJournalReader

type SessionJournalReader interface {
	SessionJournal(instanceID string, sessionID libacp.SessionID) ([]libacp.SessionNotification, string, bool)
}

Jump to

Keyboard shortcuts

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