ocs

package
v0.1.0-c01.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: 3 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

Index

Constants

View Source
const (
	ExecutionProfileLocal   = "local"
	ExecutionProfileRemote  = "remote"
	ExecutionProfileAPIOnly = "api-only"

	ApplicabilitySupported     = "supported"
	ApplicabilityNotApplicable = "not_applicable"
)
View Source
const APIVersion = "ocsv3.cloudring.io/v1alpha1"

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsEvent

type AnalyticsEvent struct {
	Name        string   `json:"name"`
	Trigger     string   `json:"trigger"`
	Subject     string   `json:"subject"`
	Properties  []string `json:"properties"`
	EvidenceRef string   `json:"evidenceRef"`
}

type AutomationTask

type AutomationTask struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	ActionRef   string `json:"actionRef"`
}

type BillingConnector

type BillingConnector struct {
	APIVersion string         `json:"apiVersion"`
	Kind       string         `json:"kind"`
	Metadata   Metadata       `json:"metadata"`
	Meters     []UsageMeter   `json:"meters"`
	CostMeters []CostMeter    `json:"costMeters"`
	Events     []BillingEvent `json:"events"`
}

func (BillingConnector) Validate

func (c BillingConnector) Validate() error

type BillingEvent

type BillingEvent struct {
	Name           string `json:"name"`
	Meter          string `json:"meter"`
	Idempotent     bool   `json:"idempotent"`
	IdempotencyKey string `json:"idempotencyKey"`
	EntitlementRef string `json:"entitlementRef"`
	Attribution    string `json:"attribution"`
	ReplayPolicy   string `json:"replayPolicy"`
}

type BillingProfile

type BillingProfile struct {
	Applicability string       `json:"applicability"`
	Reason        string       `json:"reason,omitempty"`
	ConnectorRef  string       `json:"connectorRef"`
	Meters        []UsageMeter `json:"meters"`
}

type Capability

type Capability struct {
	Class       string `json:"class"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type CatalogPlan

type CatalogPlan struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
	BillingMode string `json:"billingMode"`
	QuotaRef    string `json:"quotaRef,omitempty"`
}

type CatalogPublication

type CatalogPublication struct {
	ServiceClass string        `json:"serviceClass"`
	Visibility   string        `json:"visibility"`
	Portability  string        `json:"portability"`
	Plans        []CatalogPlan `json:"plans"`
}

type CommercialProfile

type CommercialProfile struct {
	Applicability           string   `json:"applicability"`
	Reason                  string   `json:"reason,omitempty"`
	Roles                   []string `json:"roles"`
	RevenueModel            string   `json:"revenueModel"`
	LicenseRef              string   `json:"licenseRef"`
	ExpiryBehavior          string   `json:"expiryBehavior"`
	SupportRef              string   `json:"supportRef"`
	ServiceProvenance       string   `json:"serviceProvenance"`
	ResponsibilityMatrixRef string   `json:"responsibilityMatrixRef"`
	ContinuityPlanRef       string   `json:"continuityPlanRef"`
}

type ConfigurationSchema

type ConfigurationSchema struct {
	SchemaRef string `json:"schemaRef"`
	Version   string `json:"version"`
}

type ConnectorPackage

type ConnectorPackage struct {
	APIVersion    string              `json:"apiVersion"`
	Kind          string              `json:"kind"`
	Metadata      Metadata            `json:"metadata"`
	Service       ServiceConnector    `json:"service"`
	Billing       BillingConnector    `json:"billing"`
	Catalog       CatalogPublication  `json:"catalog"`
	Configuration ConfigurationSchema `json:"configuration"`
	Readiness     []ReadinessCheck    `json:"readiness"`
	TenantAccess  TenantAccessPolicy  `json:"tenantAccess"`
	Durability    DurabilityProfile   `json:"durability"`
	Distribution  DistributionProfile `json:"distribution"`
	Federation    FederationProfile   `json:"federation"`
	Commercial    CommercialProfile   `json:"commercial"`
}

func (ConnectorPackage) Validate

func (p ConnectorPackage) Validate() error

type CostMeter

type CostMeter struct {
	Name        string `json:"name"`
	Currency    string `json:"currency"`
	UnitPrice   string `json:"unitPrice"`
	MeterRef    string `json:"meterRef"`
	EvidenceRef string `json:"evidenceRef"`
}

type DataLifecycle

type DataLifecycle struct {
	Export DataLifecycleAction `json:"export"`
	Delete DataLifecycleAction `json:"delete"`
}

type DataLifecycleAction

type DataLifecycleAction struct {
	ActionRef   string `json:"actionRef"`
	Format      string `json:"format"`
	EvidenceRef string `json:"evidenceRef"`
}

type Dependency

type Dependency struct {
	ID                     string `json:"id"`
	CapabilityClass        string `json:"capabilityClass"`
	Role                   string `json:"role"`
	Portability            string `json:"portability"`
	ProductAPIRef          string `json:"productAPIRef"`
	VersionRange           string `json:"versionRange"`
	CompatibilityPolicyRef string `json:"compatibilityPolicyRef"`
	ImplementationRef      string `json:"implementationRef,omitempty"`
}

type DistributionProfile

type DistributionProfile struct {
	DeploymentProfiles    []string `json:"deploymentProfiles"`
	Channels              []string `json:"channels"`
	InfrastructureTargets []string `json:"infrastructureTargets"`
	UpdatePolicyRef       string   `json:"updatePolicyRef"`
}

type DurabilityProfile

type DurabilityProfile struct {
	StateClass        string        `json:"stateClass"`
	DataClasses       []string      `json:"dataClasses"`
	BackupPolicyRef   string        `json:"backupPolicyRef,omitempty"`
	RecoveryObjective string        `json:"recoveryObjective"`
	RecoveryEvidence  []EvidenceRef `json:"recoveryEvidence"`
}

type EvidenceBundle

type EvidenceBundle struct {
	Name       string        `json:"name"`
	Owner      string        `json:"owner"`
	Claim      string        `json:"claim"`
	Freshness  string        `json:"freshness"`
	Redaction  string        `json:"redaction"`
	Evidence   []EvidenceRef `json:"evidence"`
	NonClaims  []string      `json:"nonClaims"`
	ReviewPath string        `json:"reviewPath"`
}

type EvidenceRef

type EvidenceRef struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Ref  string `json:"ref"`
}

type FederationProfile

type FederationProfile struct {
	Applicability          string   `json:"applicability"`
	Reason                 string   `json:"reason,omitempty"`
	Modes                  []string `json:"modes"`
	MessageBusRef          string   `json:"messageBusRef"`
	CrossProviderScenarios []string `json:"crossProviderScenarios"`
	PortabilityPolicyRef   string   `json:"portabilityPolicyRef"`
}

type GatewayRoute

type GatewayRoute struct {
	Name        string   `json:"name"`
	ParentRef   string   `json:"parentRef"`
	Hostnames   []string `json:"hostnames"`
	Rules       []string `json:"rules"`
	EvidenceRef string   `json:"evidenceRef"`
}

type KubernetesBinding

type KubernetesBinding struct {
	Group      string `json:"group"`
	Version    string `json:"version"`
	Kind       string `json:"kind"`
	Plural     string `json:"plural"`
	Scope      string `json:"scope"`
	CRDRef     string `json:"crdRef"`
	StatusPath string `json:"statusPath"`
	Condition  string `json:"condition"`
}

type LifecycleAction

type LifecycleAction struct {
	Name           string `json:"name"`
	Applicability  string `json:"applicability"`
	Reason         string `json:"reason,omitempty"`
	Verb           string `json:"verb"`
	Idempotent     bool   `json:"idempotent"`
	IdempotencyKey string `json:"idempotencyKey"`
	RollbackRef    string `json:"rollbackRef,omitempty"`
}

type Metadata

type Metadata struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
	Owner       string `json:"owner"`
	Version     string `json:"version"`
}

type MicrofrontendHostContract

type MicrofrontendHostContract struct {
	Host            string   `json:"host"`
	Runtime         string   `json:"runtime"`
	MountRef        string   `json:"mountRef"`
	VersionRange    string   `json:"versionRange"`
	SignatureRef    string   `json:"signatureRef"`
	IntegrityRef    string   `json:"integrityRef"`
	Sandbox         string   `json:"sandbox"`
	AllowedEvents   []string `json:"allowedEvents"`
	RequiredContext []string `json:"requiredContext"`
}

type PolicyRule

type PolicyRule struct {
	Name        string `json:"name"`
	Class       string `json:"class"`
	DecisionRef string `json:"decisionRef"`
	EvidenceRef string `json:"evidenceRef"`
}

type PortalModule

type PortalModule struct {
	Name        string   `json:"name"`
	Slot        string   `json:"slot"`
	Route       string   `json:"route"`
	APIRef      string   `json:"apiRef"`
	HostRef     string   `json:"hostRef"`
	MountRef    string   `json:"mountRef"`
	Permissions []string `json:"permissions"`
}

type ProductAPIContract

type ProductAPIContract struct {
	Ref            string `json:"ref"`
	Version        string `json:"version"`
	Protocol       string `json:"protocol"`
	EndpointRef    string `json:"endpointRef,omitempty"`
	TrustPolicyRef string `json:"trustPolicyRef,omitempty"`
	HealthRef      string `json:"healthRef,omitempty"`
}

type ReadinessCheck

type ReadinessCheck struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Target      string `json:"target"`
	Condition   string `json:"condition"`
	EvidenceRef string `json:"evidenceRef"`
}

type SecretBoundary

type SecretBoundary struct {
	WorkloadIdentityRef string      `json:"workloadIdentityRef"`
	SecretRefs          []SecretRef `json:"secretRefs"`
}

type SecretRef

type SecretRef struct {
	Name     string `json:"name"`
	Ref      string `json:"ref"`
	Purpose  string `json:"purpose"`
	Rotation string `json:"rotation"`
	RawValue string `json:"rawValue,omitempty"`
}

type ServiceConnector

type ServiceConnector struct {
	APIVersion string      `json:"apiVersion"`
	Kind       string      `json:"kind"`
	Metadata   Metadata    `json:"metadata"`
	Spec       ServiceSpec `json:"spec"`
}

func (ServiceConnector) Validate

func (c ServiceConnector) Validate() error

type ServiceSpec

type ServiceSpec struct {
	ExecutionProfile   string              `json:"executionProfile"`
	ProductAPI         ProductAPIContract  `json:"productAPI"`
	Capabilities       []Capability        `json:"capabilities"`
	Dependencies       []Dependency        `json:"dependencies"`
	Lifecycle          []LifecycleAction   `json:"lifecycle"`
	Automation         []AutomationTask    `json:"automation"`
	UsageMeters        []UsageMeter        `json:"usageMeters"`
	Billing            BillingProfile      `json:"billing"`
	PortalModules      []PortalModule      `json:"portalModules"`
	UI                 UIExtensionManifest `json:"ui"`
	AnalyticsEvents    []AnalyticsEvent    `json:"analyticsEvents"`
	KubernetesBindings []KubernetesBinding `json:"kubernetesBindings"`
	GatewayRoutes      []GatewayRoute      `json:"gatewayRoutes"`
	Secrets            SecretBoundary      `json:"secrets"`
	Policies           []PolicyRule        `json:"policies"`
	DataLifecycle      DataLifecycle       `json:"dataLifecycle"`
	States             []ServiceState      `json:"states"`
	Support            SupportProfile      `json:"support"`
	EvidenceBundles    []EvidenceBundle    `json:"evidenceBundles"`
}

type ServiceState

type ServiceState struct {
	Name        string `json:"name"`
	Reason      string `json:"reason"`
	UserVisible bool   `json:"userVisible"`
	EvidenceRef string `json:"evidenceRef"`
	Remediation string `json:"remediation"`
}

type SupportProfile

type SupportProfile struct {
	Owner       string        `json:"owner"`
	Escalation  string        `json:"escalation"`
	Diagnostics []string      `json:"diagnostics"`
	DocsRef     string        `json:"docsRef"`
	Evidence    []EvidenceRef `json:"evidence"`
}

type TenantAccessPolicy

type TenantAccessPolicy struct {
	Scope          string              `json:"scope"`
	EntitlementRef string              `json:"entitlementRef"`
	Entitlements   []TenantEntitlement `json:"entitlements"`
	Permissions    []string            `json:"permissions"`
}

type TenantEntitlement

type TenantEntitlement struct {
	Name  string `json:"name"`
	Ref   string `json:"ref"`
	Scope string `json:"scope"`
}

type UIExtensionManifest

type UIExtensionManifest struct {
	EmbedRef         string                    `json:"embedRef"`
	ContextSchemaRef string                    `json:"contextSchemaRef"`
	HostAuthority    []string                  `json:"hostAuthority"`
	ExtensionActions []string                  `json:"extensionActions"`
	ModuleHost       MicrofrontendHostContract `json:"moduleHost"`
	Evidence         []EvidenceRef             `json:"evidence"`
}

type UsageMeter

type UsageMeter struct {
	Name        string `json:"name"`
	Unit        string `json:"unit"`
	Aggregation string `json:"aggregation,omitempty"`
}

Jump to

Keyboard shortcuts

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