Documentation
¶
Index ¶
- Constants
- func ArtifactLayoutFingerprint() string
- func ListenersFromConfig(configObj *stconf.ConfigObj, yggHost string) []overlay.ListenerCtxObj
- func Run(ctx context.Context, configObj *stconf.ConfigObj, requestObj RequestObj, ...) error
- type ArtifactDriftObj
- type KeySourceVerdictObj
- type RebuildResultObj
- type ReportedErrObj
- type RequestObj
Constants ¶
const ArtifactLayoutGlobalKey = "artifact_layout"
Variables ¶
This section is empty.
Functions ¶
func ArtifactLayoutFingerprint ¶
func ArtifactLayoutFingerprint() string
ArtifactLayoutFingerprint pins the revision of formats affecting cache artifacts.
func ListenersFromConfig ¶
func ListenersFromConfig(configObj *stconf.ConfigObj, yggHost string) []overlay.ListenerCtxObj
ListenersFromConfig builds listener contexts for host-sensitive materializers.
Types ¶
type ArtifactDriftObj ¶
type ArtifactDriftObj struct {
Key string `json:"key"`
Version string `json:"version"`
MaterializerID string `json:"materializer_id"`
ArtifactKind string `json:"artifact_kind"`
ListenerID string `json:"listener_id"`
FormatVersion uint32 `json:"format_version"`
StoredHash string `json:"stored_hash"`
RebuiltHash string `json:"rebuilt_hash"`
}
ArtifactDriftObj describes a drift of one materialized artifact.
func SelfTestFormats ¶
func SelfTestFormats(ctx context.Context, storeObj *storage.Obj, overlayObj *overlay.Obj, listenerArr []overlay.ListenerCtxObj) ([]ArtifactDriftObj, error)
SelfTestFormats verifies small stored artifacts against current materializer descriptors.
type KeySourceVerdictObj ¶
KeySourceVerdictObj explains a conflict between config release_mirrors and the persisted source binding.
type RebuildResultObj ¶
type RebuildResultObj struct {
Scanned uint64
Drift uint64
Updated uint64
Created uint64
Pruned uint64
Items []ArtifactDriftObj
}
RebuildResultObj aggregates the result of a full artifact verification.
func RebuildArtifacts ¶
func RebuildArtifacts(ctx context.Context, storeObj *storage.Obj, overlayObj *overlay.Obj, listenerArr []overlay.ListenerCtxObj) (RebuildResultObj, error)
RebuildArtifacts rebuilds and verifies all materialized artifacts.
type ReportedErrObj ¶
type ReportedErrObj struct {
Err error
}
ReportedErrObj marks an error already rendered for the operator.
func (ReportedErrObj) Error ¶
func (obj ReportedErrObj) Error() string
func (ReportedErrObj) Unwrap ¶
func (obj ReportedErrObj) Unwrap() error
type RequestObj ¶
type RequestObj struct {
Inspect bool
Prune bool
Vacuum bool
RebuildCache bool
Force bool
JsonOutput bool
}
RequestObj describes one maintenance command without depending on the CLI layer.
func (RequestObj) CommandName ¶
func (obj RequestObj) CommandName() string
CommandName returns the stable command name for output and the JSON envelope.