Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveManifest ¶
SaveManifest persists the inventory sync manifest atomically.
Types ¶
type CompiledState ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) LoadIndex ¶
func (e *Engine) LoadIndex(ctx context.Context, onProgress malindex.IndexLoadProgress, onStatus malindex.IndexLoadStatus) (*malindex.MaliciousIndex, error)
func (*Engine) StartBackground ¶
func (*Engine) StatusSnapshot ¶
type Manifest ¶
type Manifest struct {
SchemaVersion int `json:"schema_version"`
Source string `json:"source"`
ETag string `json:"etag,omitempty"`
GeneratedAt time.Time `json:"generated_at,omitempty"`
Compiled CompiledState `json:"compiled"`
Sync SyncState `json:"sync"`
}
Manifest tracks the state of the local malicious-package inventory: the upstream revision (ETag + generated_at) last ingested and the compiled index built from it.
func LoadManifest ¶
LoadManifest reads the inventory sync manifest, returning a fresh one when absent or unparsable.
Click to show internal directories.
Click to hide internal directories.