Documentation
¶
Index ¶
- Constants
- type CreateResponse
- type Evidence
- type EvidenceData
- type EvidenceMetadata
- type EvidenceSubject
- type EvidenceVerification
- type EvidenceVerificationResult
- type GitLogEntry
- type GitLogEntryView
- type MediaType
- type MetadataResponse
- type Repo
- type ResponseSearchEvidence
- type SearchEvidence
- type SearchEvidenceEdge
- type SingingKey
- type Subject
- type VerificationResponse
- type VerificationStatus
- type VersionEdges
- type VersionNode
- type Versions
- type VersionsData
Constants ¶
View Source
const ( Success = "success" Failed = "failed" )
View Source
const SchemaVersion = "1.1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateResponse ¶
type CreateResponse struct {
Repository string `json:"repository"`
Path string `json:"path"`
Name string `json:"name"`
Uri string `json:"uri"`
Sha256 string `json:"sha256"`
PredicateCategory string `json:"predicate_category"`
PredicateType string `json:"predicate_type"`
PredicateSlug string `json:"predicate_slug"`
CreatedAt string `json:"created_at"`
CreatedBy string `json:"created_by"`
Verified bool `json:"verified"`
ProviderId string `json:"provider_id"`
}
type Evidence ¶
type Evidence struct {
SearchEvidence SearchEvidence `json:"searchEvidence"`
}
type EvidenceData ¶
type EvidenceData struct {
Evidence Evidence `json:"evidence"`
}
type EvidenceMetadata ¶
type EvidenceMetadata struct {
DownloadPath string `json:"downloadPath"`
Name string `json:"name"`
Sha256 string `json:"sha256"`
RepositoryKey string `json:"repositoryKey"`
Path string `json:"path"`
PredicateType string `json:"predicateType"`
PredicateCategory string `json:"predicateCategory"`
PredicateSlug string `json:"predicateSlug"`
Predicate string `json:"predicate"`
CreatedAt string `json:"createdAt"`
CreatedBy string `json:"createdBy"`
Verified string `json:"verified"`
Subject EvidenceSubject `json:"subject"`
ProviderId string `json:"providerId"`
SigningKey SingingKey `json:"signingKey"`
}
type EvidenceSubject ¶
type EvidenceVerification ¶
type EvidenceVerification struct {
MediaType MediaType `json:"mediaType"`
DownloadPath string `json:"downloadPath"`
SubjectChecksum string `json:"evidenceSubjectSha256"`
PredicateType string `json:"predicateType"`
CreatedBy string `json:"createdBy"`
CreatedAt string `json:"createdAt"`
VerificationResult EvidenceVerificationResult `json:"verificationResult"`
DsseEnvelope *dsse.Envelope `json:"dsseEnvelope,omitempty"`
SigstoreBundle *bundle.Bundle `json:"sigstoreBundle,omitempty"`
}
type EvidenceVerificationResult ¶
type EvidenceVerificationResult struct {
Sha256VerificationStatus VerificationStatus `json:"sha256VerificationStatus,omitempty"`
SignaturesVerificationStatus VerificationStatus `json:"signaturesVerificationStatus,omitempty"`
SigstoreBundleVerificationStatus VerificationStatus `json:"sigstoreBundleVerificationStatus,omitempty"`
KeySource string `json:"keySource,omitempty"`
KeyFingerprint string `json:"keyFingerprint,omitempty"`
SigstoreBundleVerificationResult *verify.VerificationResult `json:"sigstoreBundleVerificationResult,omitempty"`
FailureReason string `json:"failureReason,omitempty"`
}
type GitLogEntry ¶
type GitLogEntry struct {
Commit string `json:"commit,omitempty"`
AbbreviatedCommit string `json:"abbreviated_commit,omitempty"`
Tree string `json:"tree,omitempty"`
AbbreviatedTree string `json:"abbreviated_tree,omitempty"`
Parent string `json:"parent,omitempty"`
AbbreviatedParent string `json:"abbreviated_parent,omitempty"`
Subject string `json:"subject,omitempty"`
SanitizedSubject string `json:"sanitized_subject_line,omitempty"`
Author struct {
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
Date string `json:"date,omitempty"`
} `json:"author,omitempty"`
Commiter struct {
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
Date string `json:"date,omitempty"`
} `json:"commiter,omitempty"`
PRreviewer []vcsclient.PullRequestReviewDetails `json:"pr_reviewer,omitempty"`
}
type GitLogEntryView ¶
type GitLogEntryView struct {
Data []GitLogEntry `json:"data"`
Link string `json:"link"`
Artifact entities.Artifact `json:"artifact"`
}
type MetadataResponse ¶
type MetadataResponse struct {
Data VersionsData `json:"data"`
}
type ResponseSearchEvidence ¶
type ResponseSearchEvidence struct {
Data EvidenceData `json:"data"`
}
type SearchEvidence ¶
type SearchEvidence struct {
Edges []SearchEvidenceEdge `json:"edges"`
}
type SearchEvidenceEdge ¶
type SearchEvidenceEdge struct {
Node EvidenceMetadata `json:"node"`
}
type SingingKey ¶
type VerificationResponse ¶
type VerificationResponse struct {
// Update the schemaVersion value when this structure is updated.
SchemaVersion string `json:"schemaVersion"`
Subject Subject `json:"subject"`
EvidenceVerifications *[]EvidenceVerification `json:"evidenceVerifications"`
OverallVerificationStatus VerificationStatus `json:"overallVerificationStatus"`
}
type VerificationStatus ¶
type VerificationStatus string
type VersionEdges ¶
type VersionEdges struct {
Node VersionNode `json:"node"`
}
type VersionNode ¶
type VersionNode struct {
Repos []Repo `json:"repos"`
}
type Versions ¶
type Versions struct {
Edges []VersionEdges `json:"edges"`
}
type VersionsData ¶
type VersionsData struct {
Versions Versions `json:"versions"`
}
Click to show internal directories.
Click to hide internal directories.