Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + const DescriptorFormatVersion + const LockFormatVersion + const ProfileFormatVersion + var ErrContractMismatch = errors.New("plugin service contract mismatch") + func MarshalProfile(profile Profile) ([]byte, error) + func ValidateContract(contract Contract) error + func ValidateIdentity(identity Identity) error + type Asset struct + Digest string + MediaType string + Name string + type Catalog struct + func NewCatalog() *Catalog + func (catalog *Catalog) Identities() []Identity + func (catalog *Catalog) Latest(name string) (Descriptor, Identity, error) + func (catalog *Catalog) Register(descriptor Descriptor) (Identity, error) + func (catalog *Catalog) Resolve(identity Identity) (Descriptor, error) + type Contract struct + Digest string + Name string + Revision uint64 + func (contract Contract) Compatible(other Contract) bool + type DependencyBinding struct + Optional bool + Provider string + Service Contract + type Descriptor struct + Assets []Asset + ConfigSchema *Contract + Events []Event + FormatVersion uint64 + Lifecycle Lifecycle + Name string + Permissions []Permission + Platforms []string + Provides []Contract + Realm Realm + Requires []Requirement + Revision uint64 + StateSchema *Contract + func (descriptor Descriptor) Canonical() (Descriptor, error) + func (descriptor Descriptor) Clone() Descriptor + func (descriptor Descriptor) Digest() (string, error) + func (descriptor Descriptor) Identity() (Identity, error) + func (descriptor Descriptor) Validate() error + type Event struct + Contract Contract + Direction EventDirection + type EventDirection string + const Consumes + const Publishes + type Identity struct + Digest string + Name string + Revision uint64 + type Layer struct + Name string + Rows []LayerRow + type LayerRow struct + Entry *ProfileEntry + ID string + Remove bool + type Lifecycle struct + DisposeTimeoutMS uint64 + QuiesceTimeoutMS uint64 + Restore bool + Snapshot bool + type Lock struct + Entries []LockedEntry + Fingerprint string + FormatVersion uint64 + ProfileFingerprint string + func ResolveProfile(profile Profile, catalog *Catalog) (Lock, error) + func (lock Lock) Clone() Lock + func (lock Lock) Validate() error + type LockedEntry struct + ID string + Plugin Identity + type Permission struct + Authority string + Kind string + Operations []string + Resource string + type Plan struct + Entries []PlannedEntry + Exports []PlannedExport + Fingerprint string + LockFingerprint string + ProfileFingerprint string + Realm Realm + func Compile(profile Profile, lock Lock, catalog *Catalog) (Plan, error) + func (plan Plan) Clone() Plan + func (plan Plan) Validate() error + type PlannedEntry struct + Dependencies []DependencyBinding + Descriptor Descriptor + Entry ProfileEntry + Identity Identity + type PlannedExport struct + Name string + Provider string + Service Contract + type Profile struct + Entries []ProfileEntry + Exports []ProfileExport + Fingerprint string + FormatVersion uint64 + Name string + Realm Realm + Revision uint64 + Scopes []ProfileScope + func Compose(base Profile, revision uint64, layers ...Layer) (Profile, error) + func FreezeProfile(profile Profile) (Profile, error) + func ParseProfile(source []byte) (Profile, error) + func (profile Profile) Clone() Profile + func (profile Profile) Validate() error + type ProfileEntry struct + ID string + Plugin string + Scope string + type ProfileExport struct + Name string + Provider string + Service string + type ProfileScope struct + Isolate []string + Path string + type Realm string + const ClientRealm + const PresentationHostRealm + const ServerRealm + type Requirement struct + Contract Contract + Optional bool