Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStartupError ¶ added in v0.7.3
FormatStartupError returns a control-plane last_error that never includes secrets, tokens, or raw unknown error text.
Types ¶
type DaemonVersionClient ¶ added in v0.7.0
DaemonVersionClient reads the daemon version through the local control API.
type InstalledServiceUpdater ¶ added in v0.7.0
InstalledServiceUpdater synchronizes and restarts an installed Mihari OS service. The boolean result reports whether a service installation exists.
type RuntimeAssembly ¶
type RuntimeAssembly struct {
Manager *runtimeapi.Manager
Store *state.Store
Web *web.Server
// contains filtered or unexported fields
}
func BuildRuntime ¶
func BuildRuntimeWithOptions ¶
func BuildRuntimeWithOptions(paths platform.Paths, settings config.Settings, daemonVersion string, stdout, stderr io.Writer, options RuntimeBuildOptions) (*RuntimeAssembly, error)
type RuntimeBuildOptions ¶
type SelfUpdateServiceCompletion ¶ added in v0.7.0
type SelfUpdateServiceCompletion struct {
// contains filtered or unexported fields
}
SelfUpdateServiceCompletion coordinates the post-replacement service update and verifies that the restarted daemon reports the new Mihari version.
func NewSelfUpdateServiceCompletion ¶ added in v0.7.0
func NewSelfUpdateServiceCompletion(service InstalledServiceUpdater, client DaemonVersionClient) *SelfUpdateServiceCompletion
NewSelfUpdateServiceCompletion returns a post-replacement service coordinator.
func (*SelfUpdateServiceCompletion) AfterReplace ¶ added in v0.7.0
func (c *SelfUpdateServiceCompletion) AfterReplace(ctx context.Context, version string) error
AfterReplace updates an installed service and waits until its daemon reports version. A missing service is a successful no-op.