installerapi

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrivileged

func IsPrivileged(ctx context.Context) bool

func RequirePrivileged

func RequirePrivileged(ctx context.Context) error

func WithPrivilege

func WithPrivilege(ctx context.Context) context.Context

WithPrivilege grants the narrow application-composition capability used by trusted protected-topology installers. It must not be used by transports or ordinary application consumers.

Types

type API

type API interface {
	EnsureProtectedTopology(
		ctx context.Context,
		declaration topology.Declaration,
	) (topology.Installed, error)

	PrepareTopologyHydrations(
		ctx context.Context,
		desired []topology.Hydration,
	) (map[string]bool, error)

	CommitTopologyHydration(
		ctx context.Context,
		desired topology.Hydration,
	) error
}

API is the privileged application-composition capability for protected Artifact Store topology installation and hydration.

It is intentionally separate from ordinary entity APIs and domain facades.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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