Documentation
¶
Overview ¶
Package registry validates the provider-neutral CloudRING module registry contract. It validates metadata and lifecycle plans only; it never loads or executes a service implementation.
Index ¶
Constants ¶
View Source
const SchemaVersion = "cloudring.module-registry/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type DependencyResolution ¶
type Module ¶
type Module struct {
ID string `json:"id"`
DisplayName string `json:"displayName"`
PackageRef string `json:"packageRef"`
Channel string `json:"channel"`
Version string `json:"version"`
State string `json:"state"`
LifecycleStates []string `json:"lifecycleStates"`
Dependencies []Dependency `json:"dependencies"`
EntitlementScope string `json:"entitlementScope"`
Operations Operations `json:"operations"`
ServiceImplementationRefs *[]string `json:"serviceImplementationRefs,omitempty"`
}
type Operation ¶
type Operation struct {
Action string `json:"action"`
OperationID string `json:"operationId"`
Idempotent bool `json:"idempotent"`
IdempotencyKey string `json:"idempotencyKey"`
PolicyAware bool `json:"policyAware"`
AuditReceiptRef string `json:"auditReceiptRef"`
EvidenceReceiptRef string `json:"evidenceReceiptRef"`
RollbackRequired bool `json:"rollbackRequired"`
RollbackHookRef string `json:"rollbackHookRef"`
NextAction string `json:"nextAction"`
}
type Operations ¶
type PlanRequest ¶
type Registry ¶
type Registry struct {
SchemaVersion string `json:"schemaVersion"`
RegistryID string `json:"registryId"`
ModelVersion string `json:"modelVersion"`
SourceSafety SourceSafety `json:"sourceSafety"`
DependencyResolution DependencyResolution `json:"dependencyResolution"`
Modules []Module `json:"modules"`
PlanRequests []PlanRequest `json:"planRequests"`
}
type SourceSafety ¶
type SourceSafety struct {
SyntheticFixture bool `json:"syntheticFixture"`
ContainsServiceImplementationRefs bool `json:"containsServiceImplementationReferences"`
ContainsProviderEndpoints bool `json:"containsProviderEndpoints"`
ContainsSecrets bool `json:"containsSecrets"`
MutatesServices bool `json:"mutatesServices"`
}
type ValidationError ¶
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.