Skip to main content

Crate appcore_contracts

Crate appcore_contracts 

Source
Expand description

Stable, implementation-independent contracts for AppCore hosts and applications.

The three manifest families intentionally describe different owners: applications publish ApplicationManifestV1, installations provide DeploymentManifestV1, and a running host produces RuntimeManifestV1.

Structs§

ApplicationDependency
Dependency on another application contract.
ApplicationId
Stable identity of an application.
ApplicationManifestV1
Contract published by an application and consumed by any compatible runtime.
BuildId
Identity of an immutable runtime or application build.
CapabilityDeclaration
Application declaration for one generic capability.
CapabilityId
Generic capability name resolved by the runtime.
CoreId
Identity of one executable core hosted on a node.
CoreProfile
Provider-independent profile advertised by one executable core.
DeploymentManifestBuilder
Builder that validates a deployment only after all providers are selected.
DeploymentManifestV1
Contract describing one installation of an application.
DeploymentSupervisorConfig
Installation-owned supervisor settings.
DeploymentWatchdogConfig
Installation-owned watchdog settings.
FeatureId
Identity of a declared runtime or application feature.
HealthRequirements
Health timing required by an application.
InstallationId
Identity of one application installation.
JobId
Identity of a provider-owned runtime job.
JobPolicy
Policy for jobs declared by an application.
LeadershipRequirement
Service-scoped leadership requirement.
ModuleDeclaration
Application module declaration.
ModuleId
Identity of an application module.
NetworkConfig
Network adapters selected for one installation.
NodeId
Identity of the physical or virtual runtime node.
ProviderConfig
Provider selection and its non-sensitive installation settings.
ProviderId
Identity of a deployment provider or adapter.
ResourceProfile
Resource availability or requirement of one core.
RuntimeHealth
Observable health snapshot without application data or secrets.
RuntimeManifestV1
Runtime-owned description of a running host.
RuntimeRequirements
Runtime and protocol versions required by an application.
SchedulerRequirements
Scheduler requirements declared by an application.
SchedulingProfile
Scheduler inputs advertised by one core.
SecretRef
Reference to a secret held outside a manifest.
ServiceId
Identity of an independently coordinated service.
StorageRequirements
Application storage requirements without provider or path decisions.
TlsConfig
TLS settings represented only by external certificate references.
UpdatePolicy
Application update preferences, independent of update providers.
VolumeMount
Installation volume mounted for an application or runtime adapter.

Enums§

CapabilityClass
Ownership boundary for a capability declaration.
CapabilityMode
How a capability is invoked.
CapabilityVisibility
Where a capability may be resolved.
ContractError
Validation error for a versioned contract.
CoreRole
Generic role assigned to one executable core.
EnvironmentBinding
Environment variable value or external secret binding.
LeadershipMode
Leadership behavior for one service.
RuntimeHealthStatus
Coarse health state produced by a runtime.
RuntimeMode
Determines whether a runtime is isolated or participates in coordination.
RuntimeOperationalMode
Operational state relevant to routing and scheduling decisions.
StorageDurability
Required persistence durability.
WorkloadClass
Broad workload category used as one scheduler signal.

Constants§

APPLICATION_MANIFEST_VERSION
Schema version written by ApplicationManifestV1.
DEPLOYMENT_MANIFEST_VERSION
Schema version written by DeploymentManifestV1.
RUNTIME_MANIFEST_VERSION
Schema version written by RuntimeManifestV1.

Type Aliases§

ContractResult
Result type used by AppCore contracts.