Documentation
¶
Index ¶
- Constants
- func LooksSecret(value string) bool
- func ValidateEndpointReference(reference string) error
- func ValidateOpaqueReference(reference string) error
- type BrowserExposure
- type Classification
- type ConsumerClass
- type Contract
- type CredentialPurpose
- type HostAttestations
- type Key
- type Mutator
- type Provenance
- type Registry
- type ValidationContext
- type Value
- type ValueType
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 ValidateEndpointReference ¶ added in v0.2.125
func ValidateOpaqueReference ¶
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 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 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) 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
}
Click to show internal directories.
Click to hide internal directories.