lockfile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockEntry

type LockEntry struct {
	Type        string            `json:"type"`
	TreeSHA     string            `json:"tree_sha,omitempty"`
	RefResolved string            `json:"ref_resolved,omitempty"`
	ETag        string            `json:"etag,omitempty"`
	LastMod     string            `json:"last_modified,omitempty"`
	SyncedAt    time.Time         `json:"synced_at"`
	Files       map[string]string `json:"files,omitempty"`
}

type LockFile

type LockFile struct {
	Version int                   `json:"version"`
	Sources map[string]*LockEntry `json:"sources"`
}

func Load

func Load(outputDir string) (*LockFile, error)

func New

func New() *LockFile

func (*LockFile) GetEntry

func (l *LockFile) GetEntry(name string) *LockEntry

func (*LockFile) RemoveEntry

func (l *LockFile) RemoveEntry(name string)

func (*LockFile) Save

func (l *LockFile) Save(outputDir string) error

func (*LockFile) SetEntry

func (l *LockFile) SetEntry(name string, entry *LockEntry)

Jump to

Keyboard shortcuts

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