Documentation
¶
Index ¶
- Constants
- func RepoName(index int) string
- func ValidateManifest(manifest Manifest) error
- type Manifest
- type ManifestArtifact
- type ManifestAuthority
- type ManifestBinding
- type ManifestFact
- type ManifestNegativeClaim
- type ManifestRelationship
- type ManifestRepository
- type Oracle
- type OracleStage
- type ShapeDelta
- type ShapeReceipt
- type ShapeReceiptInput
Constants ¶
View Source
const ( CustomerRepoCount = 96 CustomerJenkinsCallers = 64 CustomerCredentialRefs = 66 CustomerAPISpecs = 38 OperationsPerSpec = 10 CustomerAPIOperations = CustomerAPISpecs * OperationsPerSpec CustomerRuntimeConsumers = 1 )
View Source
const ManifestVersion = 1
Variables ¶
This section is empty.
Functions ¶
func ValidateManifest ¶
Types ¶
type Manifest ¶
type Manifest struct {
Version int `json:"version"`
Repositories []ManifestRepository `json:"repositories"`
Artifacts []ManifestArtifact `json:"artifacts"`
Facts []ManifestFact `json:"facts"`
Relationships []ManifestRelationship `json:"relationships"`
Bindings []ManifestBinding `json:"bindings"`
Authorities []ManifestAuthority `json:"authorities"`
NegativeClaims []ManifestNegativeClaim `json:"negative_claims"`
}
func CustomerManifest ¶
type ManifestArtifact ¶
type ManifestAuthority ¶
type ManifestAuthority struct {
ID string `json:"id"`
BindingID string `json:"binding_id"`
ExistenceEvidenceFactID string `json:"existence_evidence_fact_id"`
LifetimeEvidenceFactID string `json:"lifetime_evidence_fact_id"`
LifetimeKind string `json:"lifetime_kind"`
Effective bool `json:"effective"`
}
type ManifestBinding ¶
type ManifestFact ¶
type ManifestNegativeClaim ¶
type ManifestRelationship ¶
type ManifestRepository ¶
type Oracle ¶
type Oracle struct {
Version int `json:"version"`
Organizations int `json:"organizations"`
Repositories int `json:"repositories"`
JenkinsCallers int `json:"jenkins_callers"`
DirectCredentialRefs int `json:"direct_credential_refs"`
InheritedCredentialRefs int `json:"inherited_credential_refs"`
ExplicitAuthorities int `json:"explicit_authorities"`
OIDCReferences int `json:"oidc_references"`
DuplicatePathRefs int `json:"duplicate_path_refs"`
UnmappedLibraryCallers int `json:"unmapped_library_callers"`
APISpecFiles int `json:"api_spec_files"`
APIOperations int `json:"api_operations"`
RuntimeConsumers int `json:"runtime_consumers"`
SchemaIdentityClaims int `json:"schema_identity_claims"`
DynamicRelationships int `json:"dynamic_relationships"`
ParserFailures int `json:"parser_failures"`
GitHubReusableCallers int `json:"github_reusable_callers"`
GitHubCompositeCalls int `json:"github_composite_calls"`
GitLabIncludeCallers int `json:"gitlab_include_callers"`
AzureTemplateCallers int `json:"azure_template_callers"`
GeneratedSpecs int `json:"generated_specs"`
APIGenerators int `json:"api_generators"`
ExpectedStages []OracleStage `json:"expected_stages"`
}
Oracle is declarative customer-shape truth. It intentionally contains no detector, classifier, resolver, or report implementation logic.
func CustomerOracle ¶
func CustomerOracle() Oracle
type OracleStage ¶
type ShapeDelta ¶
type ShapeReceipt ¶
type ShapeReceipt struct {
Version int `json:"version"`
Deltas []ShapeDelta `json:"deltas"`
}
func CompareShape ¶
func CompareShape(input ShapeReceiptInput) ShapeReceipt
type ShapeReceiptInput ¶
type ShapeReceiptInput struct {
Repositories int `json:"repositories"`
JenkinsFiles int `json:"jenkins_files"`
DirectCredentialReferences int `json:"direct_credential_references"`
InheritedCredentialReferences int `json:"inherited_credential_references"`
ResolvedRelationships int `json:"resolved_relationships"`
UnresolvedRelationships int `json:"unresolved_relationships"`
APISpecifications int `json:"api_specifications"`
APIOperations int `json:"api_operations"`
ParserFailures int `json:"parser_failures"`
}
Click to show internal directories.
Click to hide internal directories.