filestate

package
v0.0.0-...-c34a4ac Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoJSON

type RepoJSON struct {
	RepoURL    string   `yaml:"url"`
	CloneURL   string   `yaml:"clone_url"`
	RepoPath   string   `yaml:"repo_path"`
	DataPath   string   `yaml:"data_path"`
	Refs       []string `yaml:"refs"`
	ScanStatus ScanJSON `yaml:"scan_status"`
}

type ScanJSON

type ScanJSON struct {
	StartTime time.Time `yaml:"start_time"`
	EndTime   time.Time `yaml:"end_time"`
	Success   bool      `yaml:"success"`
}

type StateManager

type StateManager struct {
	Location string
	// contains filtered or unexported fields
}

func (StateManager) Load

func (StateManager) Save

func (s StateManager) Save(r hungryfox.Repo)

func (*StateManager) Start

func (s *StateManager) Start() error

func (*StateManager) Stop

func (s *StateManager) Stop() error

Jump to

Keyboard shortcuts

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