Documentation
¶
Index ¶
- type Entry
- type Lockfile
- func (l *Lockfile) Delete(namespace, operation string, inputs []any) bool
- func (l *Lockfile) Entries() []Entry
- func (l *Lockfile) Get(namespace, operation string, inputs []any) (any, string, bool)
- func (l *Lockfile) Marshal() ([]byte, error)
- func (l *Lockfile) Set(namespace, operation string, inputs []any, value any) error
- func (l *Lockfile) SetWithLegacyPolicy(namespace, operation string, inputs []any, value any, policy string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lockfile ¶
type Lockfile struct {
// contains filtered or unexported fields
}
Lockfile stores lock entries keyed by (namespace, operation, inputs).
func Parse ¶
Parse decodes lockfile JSON lines.
Non-empty files must start with a supported version header line.
func (*Lockfile) Get ¶
Get retrieves the value and any legacy v1 policy for (namespace, operation, inputs). Version 2 entries have no policy.
func (*Lockfile) Marshal ¶
Marshal encodes lockfile entries to deterministic JSON lines.
Empty lockfiles marshal to empty bytes.
Click to show internal directories.
Click to hide internal directories.