runtimeinfo

package
v1.0.1-alpha.0...-45eb01b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// When this runtime info was generated.
	Timestamp time.Time `json:"timestamp"`

	// Whether the runtime sidecar reports that all required pins are present.
	AllRuntimePinsPresent bool `json:"allRuntimePinsPresent"`

	// Free-form capabilities advertised by the runtime (e.g. "PIN_PROVIDER").
	Capabilities []string `json:"capabilities,omitempty"`
}

Info is a minimal placeholder type for data returned by the Cryftee sidecar.

This is intentionally small and can be extended later to mirror the true /runtime/self JSON schema once Cryftee is finalized.

type PinSummary

type PinSummary struct {
	Pinned  int `json:"pinned"`
	Missing int `json:"missing"`
}

PinSummary provides a minimal view over runtime pin state. This matches the usage in api/info/service.go.

type RuntimeInfo

type RuntimeInfo struct {
	Healthy    bool       `json:"healthy"`
	Epoch      uint64     `json:"epoch"`
	PinSummary PinSummary `json:"pinSummary"`
}

RuntimeInfo is the minimal shape expected by Info.GetRuntimeInfo. This can be extended later to mirror Cryftee's /runtime/self JSON.

Jump to

Keyboard shortcuts

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