registry

package
v0.1.0-c02.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Dependency struct {
	ModuleID string `json:"moduleId"`
	State    string `json:"state"`
}

type DependencyResolution

type DependencyResolution struct {
	Strategy                string `json:"strategy"`
	CyclePolicy             string `json:"cyclePolicy"`
	MissingDependencyPolicy string `json:"missingDependencyPolicy"`
	EvidenceRef             string `json:"evidenceRef"`
}

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 Operations struct {
	Install   Operation `json:"install"`
	Update    Operation `json:"update"`
	Remove    Operation `json:"remove"`
	Suspend   Operation `json:"suspend"`
	Deprecate Operation `json:"deprecate"`
}

type PlanRequest

type PlanRequest struct {
	Name          string `json:"name"`
	ModuleID      string `json:"moduleId"`
	Action        string `json:"action"`
	CurrentState  string `json:"currentState"`
	TargetVersion string `json:"targetVersion"`
}

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"`
}

func Parse

func Parse(data []byte) (Registry, error)

func (Registry) Validate

func (r Registry) Validate() error

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

type ValidationError struct {
	Path    string
	Code    string
	Message string
}

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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