model

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 EvidenceSubject struct {
	Sha256        string `json:"sha256"`
	RepositoryKey string `json:"repositoryKey"`
	Path          string `json:"path"`
	Name          string `json:"name"`
}

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 MediaType

type MediaType string
const (
	SigstoreBundle MediaType = "sigstore.bundle"
	SimpleDSSE     MediaType = "evidence.dsse"
)

type MetadataResponse

type MetadataResponse struct {
	Data VersionsData `json:"data"`
}

type Repo

type Repo struct {
	Name         string `json:"name"`
	LeadFilePath string `json:"leadFilePath"`
}

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 SingingKey struct {
	Alias     string `json:"alias"`
	PublicKey string `json:"publicKey"`
}

type Subject

type Subject struct {
	Path   string `json:"path"`
	Sha256 string `json:"sha256"`
}

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"`
}

Jump to

Keyboard shortcuts

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