state

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadInventory added in v0.4.2

func ReadInventory(path string) ([]string, error)

func Save

func Save(
	path string,
	syncStartedAt time.Time,
	syncCompletedAt time.Time,
	repositories []Asset,
	gists []Asset,
) error

func WriteInventory added in v0.4.2

func WriteInventory(path string, items []string) error

Types

type Asset added in v0.4.1

type Asset struct {
	Name        string `json:"name"`
	LastSuccess bool   `json:"last_success"`
	Error       string `json:"error,omitempty"`
}

type Mirrors

type Mirrors struct {
	GeneratedAt     string `json:"generated_at"`
	SyncStartedAt   string `json:"sync_started_at,omitempty"`
	SyncCompletedAt string `json:"sync_completed_at,omitempty"`

	Repositories []Asset `json:"repositories"`
	Gists        []Asset `json:"gists"`
}

func Load

func Load(path string) (*Mirrors, error)

Jump to

Keyboard shortcuts

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