internal

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg Config) error

Types

type Config

type Config struct {
	Users      []string      `json:"users,omitempty" yaml:"users,omitempty"`
	Ignore     []Fingerprint `json:"ignore,omitempty" yaml:"ignore,omitempty"`
	AutoDelete bool          `json:"-" yaml:"-"`
	NoIgnore   bool          `json:"-" yaml:"-"`
}

func (Config) Validate

func (c Config) Validate() error

type Fingerprint

type Fingerprint string

type History

type History []HistoryEntry

func (History) AddedFingerprints

func (h History) AddedFingerprints() []Fingerprint

type HistoryEntry

type HistoryEntry struct {
	Action      HistoryEntryAction `yaml:"action,omitempty"`
	Fingerprint Fingerprint        `yaml:"fingerprint,omitempty"`
	Time        time.Time          `yaml:"time,omitempty"`
}

type HistoryEntryAction added in v0.1.4

type HistoryEntryAction string
const (
	HistoryEntryActionAdded   HistoryEntryAction = "added"
	HistoryEntryActionRemoved HistoryEntryAction = "removed"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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