configuration

package
v0.2.127 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BillingContract                 = "codefly.dev/configuration/billing@1"
	EmailContract                   = "codefly.dev/configuration/email@1"
	ErrorTrackingContract           = "codefly.dev/configuration/error-tracking@1"
	ErrorTrackingBuildContract      = "codefly.dev/configuration/error-tracking-build@1"
	FeatureFlagsContract            = "codefly.dev/configuration/feature-flags@1"
	FeatureFlagsBrowserContract     = "codefly.dev/configuration/feature-flags-browser@1"
	ProductAnalyticsContract        = "codefly.dev/configuration/product-analytics@1"
	ProductAnalyticsBrowserContract = "codefly.dev/configuration/product-analytics-browser@1"
)

Variables

This section is empty.

Functions

func LooksSecret

func LooksSecret(value string) bool

func ValidateEndpointReference added in v0.2.125

func ValidateEndpointReference(reference string) error

func ValidateOpaqueReference

func ValidateOpaqueReference(reference string) error

Types

type BrowserExposure

type BrowserExposure string
const (
	BrowserDenied  BrowserExposure = "denied"
	BrowserAllowed BrowserExposure = "allowed"
)

type Classification

type Classification string
const (
	ClassificationPublic    Classification = "public"
	ClassificationSensitive Classification = "sensitive"
	ClassificationSecret    Classification = "secret"
)

type ConsumerClass

type ConsumerClass string
const (
	ConsumerRuntime ConsumerClass = "runtime"
	ConsumerBrowser ConsumerClass = "browser"
	ConsumerBuild   ConsumerClass = "build"
)

type Contract

type Contract struct {
	ID   string
	Keys map[string]Key
}

type CredentialPurpose

type CredentialPurpose string
const (
	PurposeNone                CredentialPurpose = "none"
	PurposeManagement          CredentialPurpose = "management"
	PurposeRuntime             CredentialPurpose = "runtime"
	PurposeBuild               CredentialPurpose = "build"
	PurposeWebhookVerification CredentialPurpose = "webhook-verification"
)

type HostAttestations added in v0.2.125

type HostAttestations struct {
	OpaqueReferences []*providerv0.OpaqueReference
}

type Key

type Key struct {
	Type                  ValueType
	Required              bool
	ClassificationFloor   Classification
	ClassificationCeiling Classification
	CredentialPurpose     CredentialPurpose
	BrowserExposure       BrowserExposure
	Consumer              ConsumerClass
	ProviderMutable       bool
	HostMutable           bool
	RequiredProvenance    []Provenance
}

type Mutator

type Mutator string
const (
	MutatorHost     Mutator = "host"
	MutatorProvider Mutator = "provider"
)

type Provenance

type Provenance string
const (
	ProvenanceProvider Provenance = "provider"
	ProvenanceBinding  Provenance = "binding"
	ProvenanceArtifact Provenance = "artifact"
	ProvenanceHost     Provenance = "host"
)

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Contracts

func (r *Registry) Contracts() []string

func (*Registry) Lookup

func (r *Registry) Lookup(id string) (Contract, error)

func (*Registry) Validate

func (r *Registry) Validate(id string, values map[string]Value, context ValidationContext) error

func (*Registry) ValidateProposal added in v0.2.125

func (r *Registry) ValidateProposal(proposal *providerv0.OutputProposal) error

type ValidationContext added in v0.2.125

type ValidationContext struct {
	Consumer     ConsumerClass
	Attestations HostAttestations
}

type Value

type Value struct {
	Type              ValueType
	String            string
	Boolean           bool
	Integer           int64
	OpaqueReference   string
	SafeFingerprint   string
	Classification    Classification
	CredentialPurpose CredentialPurpose
	BrowserExposure   BrowserExposure
	Consumer          ConsumerClass
	MutatedBy         Mutator
	Provenance        map[Provenance]string
}

type ValueType

type ValueType string
const (
	ValueString            ValueType = "string"
	ValueBoolean           ValueType = "boolean"
	ValueInteger           ValueType = "integer"
	ValueOpaqueReference   ValueType = "opaque-reference"
	ValueEndpointReference ValueType = "endpoint-reference"
)

Jump to

Keyboard shortcuts

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