Documentation
¶
Overview ¶
Package models provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- type ArtifactIdentity
- type ArtifactIdentitySource
- type ArtifactPolicies
- type ArtifactSummaryView
- type ArtifactSummaryViewOverallStatus
- type AttestationStatus
- type AttestationStatusAttestation
- type AttestationStatusChain
- type AttestationStatusRekor
- type AttestationView
- type CertificateInfo
- type CertificateInfoList
- type CertificateRole
- type Checkpoint
- type ChiServerOptions
- type Error
- type GetApiV1ArtifactsImageParams
- type GetApiV1TrustConfigParams
- type GetApiV1TrustRootMetadataInfoParams
- type GetApiV1TrustTargetParams
- type GetApiV1TrustTargetsCertificatesParams
- type GetApiV1TrustTargetsParams
- type ImageMetadataResponse
- type InclusionPromise
- type InclusionProof
- type InvalidParamFormatError
- type KindVersion
- type LogId
- type Metadata
- type MiddlewareFunc
- type ParsedCertificate
- type PostApiV1ArtifactsVerifyJSONRequestBody
- type RekorPublicKey
- type RequiredHeaderError
- type RequiredParamError
- type RootMetadataInfo
- type RootMetadataInfoList
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustRootMetadataInfo(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealthz(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
- type SignatureStatus
- type SignatureStatusChain
- type SignatureStatusRekor
- type SignatureStatusSignature
- type SignatureView
- type SystemHealthResponse
- type SystemHealthResponseRekorStatus
- type SystemHealthResponseSigstoreServices
- type SystemHealthResponseTufStatus
- type TargetContent
- type TargetInfo
- type TargetsList
- type TimeCoherenceSummary
- type TimeCoherenceSummaryStatus
- type TooManyValuesForParamError
- type TransparencyLogEntry
- type TrustConfig
- type TrustCoverageResponse
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request, artifact string)
- func (_ Unimplemented) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request, params GetApiV1ArtifactsImageParams)
- func (_ Unimplemented) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request, uuid string)
- func (_ Unimplemented) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request, params GetApiV1TrustConfigParams)
- func (_ Unimplemented) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetApiV1TrustRootMetadataInfo(w http.ResponseWriter, r *http.Request, ...)
- func (_ Unimplemented) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetParams)
- func (_ Unimplemented) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsParams)
- func (_ Unimplemented) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request, ...)
- func (_ Unimplemented) GetHealthz(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
- type UnmarshalingParamError
- type VerifyArtifactRequest
- type VerifyArtifactResponse
Constants ¶
const (
BasicAuthScopes = "basicAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type ArtifactIdentity ¶
type ArtifactIdentity struct {
// Id Unique identifier for the signature view
Id int `json:"id"`
Issuer *string `json:"issuer,omitempty"`
Source ArtifactIdentitySource `json:"source"`
Type string `json:"type"`
Value string `json:"value"`
}
ArtifactIdentity defines model for ArtifactIdentity.
type ArtifactIdentitySource ¶
type ArtifactIdentitySource string
ArtifactIdentitySource defines model for ArtifactIdentitySource.
const ( Issuer ArtifactIdentitySource = "issuer" Other ArtifactIdentitySource = "other" San ArtifactIdentitySource = "san" )
Defines values for ArtifactIdentitySource.
type ArtifactPolicies ¶
type ArtifactPolicies struct {
// Artifact The artifact URI
Artifact string `json:"artifact"`
Attestations []struct {
// IssuedAt Issuance timestamp
IssuedAt *time.Time `json:"issuedAt,omitempty"`
// Issuer Issuer of the attestation
Issuer *string `json:"issuer,omitempty"`
// Subject Subject of the attestation
Subject *string `json:"subject,omitempty"`
// Type Attestation type
Type *string `json:"type,omitempty"`
} `json:"attestations"`
Policies []struct {
// LastChecked Last time the policy was checked
LastChecked *time.Time `json:"lastChecked,omitempty"`
// Name Policy name
Name *string `json:"name,omitempty"`
// Status Policy status
Status *string `json:"status,omitempty"`
} `json:"policies"`
}
ArtifactPolicies defines model for ArtifactPolicies.
type ArtifactSummaryView ¶
type ArtifactSummaryView struct {
// AttestationCount Total number of attestations
AttestationCount int `json:"attestationCount"`
Identities []ArtifactIdentity `json:"identities"`
OverallStatus ArtifactSummaryViewOverallStatus `json:"overallStatus"`
// RekorEntryCount Total number of Rekor entries
RekorEntryCount int `json:"rekorEntryCount"`
// SignatureCount Total number of signatures
SignatureCount int `json:"signatureCount"`
TimeCoherence *TimeCoherenceSummary `json:"timeCoherence,omitempty"`
}
ArtifactSummaryView defines model for ArtifactSummaryView.
type ArtifactSummaryViewOverallStatus ¶
type ArtifactSummaryViewOverallStatus string
ArtifactSummaryViewOverallStatus defines model for ArtifactSummaryView.OverallStatus.
const ( ArtifactSummaryViewOverallStatusFailed ArtifactSummaryViewOverallStatus = "failed" ArtifactSummaryViewOverallStatusUnsigned ArtifactSummaryViewOverallStatus = "unsigned" ArtifactSummaryViewOverallStatusVerified ArtifactSummaryViewOverallStatus = "verified" )
Defines values for ArtifactSummaryViewOverallStatus.
type AttestationStatus ¶
type AttestationStatus struct {
Attestation AttestationStatusAttestation `json:"attestation"`
Chain AttestationStatusChain `json:"chain"`
Rekor AttestationStatusRekor `json:"rekor"`
}
AttestationStatus defines model for attestationStatus.
type AttestationStatusAttestation ¶
type AttestationStatusAttestation string
AttestationStatusAttestation defines model for AttestationStatus.Attestation.
const ( AttestationStatusAttestationFailed AttestationStatusAttestation = "failed" AttestationStatusAttestationVerified AttestationStatusAttestation = "verified" )
Defines values for AttestationStatusAttestation.
type AttestationStatusChain ¶
type AttestationStatusChain string
AttestationStatusChain defines model for AttestationStatus.Chain.
const ( AttestationStatusChainFailed AttestationStatusChain = "failed" AttestationStatusChainVerified AttestationStatusChain = "verified" )
Defines values for AttestationStatusChain.
type AttestationStatusRekor ¶
type AttestationStatusRekor string
AttestationStatusRekor defines model for AttestationStatus.Rekor.
const ( AttestationStatusRekorFailed AttestationStatusRekor = "failed" AttestationStatusRekorVerified AttestationStatusRekor = "verified" )
Defines values for AttestationStatusRekor.
type AttestationView ¶
type AttestationView struct {
AttestationStatus AttestationStatus `json:"attestationStatus"`
CertificateChain *[]ParsedCertificate `json:"certificateChain,omitempty"`
Digest string `json:"digest"`
// Id Unique identifier for the signature view
Id int `json:"id"`
PayloadType *string `json:"payloadType,omitempty"`
PredicateType string `json:"predicateType"`
RawBundleJson string `json:"rawBundleJson"`
RawStatementJson string `json:"rawStatementJson"`
RekorEntry *TransparencyLogEntry `json:"rekorEntry,omitempty"`
SigningCertificate *ParsedCertificate `json:"signingCertificate,omitempty"`
// Timestamp ISO-8601 timestamp
Timestamp *time.Time `json:"timestamp,omitempty"`
Type string `json:"type"`
}
AttestationView defines model for AttestationView.
type CertificateInfo ¶
type CertificateInfo struct {
// Expiration Expiration date and time of the certificate (notAfter).
Expiration string `json:"expiration"`
// Issuer Certificate issuer
Issuer string `json:"issuer"`
// Pem Certificate in PEM-encoded format.
Pem string `json:"pem"`
// Status Status of the target to which the certificate is associated.
Status string `json:"status"`
// Subject Certificate subject
Subject string `json:"subject"`
// Target The TUF target to which the certificate is associated.
Target string `json:"target"`
// Type Target type
Type string `json:"type"`
}
CertificateInfo defines model for CertificateInfo.
type CertificateInfoList ¶
type CertificateInfoList struct {
Data []CertificateInfo `json:"data"`
}
CertificateInfoList defines model for CertificateInfoList.
type CertificateRole ¶
type CertificateRole string
CertificateRole defines model for CertificateRole.
const ( CertificateRoleIntermediate CertificateRole = "intermediate" CertificateRoleLeaf CertificateRole = "leaf" CertificateRoleRoot CertificateRole = "root" CertificateRoleUnknown CertificateRole = "unknown" )
Defines values for CertificateRole.
type Checkpoint ¶
type Checkpoint struct {
Envelope string `json:"envelope"`
}
Checkpoint defines model for Checkpoint.
type ChiServerOptions ¶
type ChiServerOptions struct {
BaseURL string
BaseRouter chi.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type Error ¶
type Error struct {
// Error Error message
Error string `json:"error"`
}
Error defines model for Error.
type GetApiV1ArtifactsImageParams ¶
type GetApiV1ArtifactsImageParams struct {
Uri string `form:"uri" json:"uri"`
}
GetApiV1ArtifactsImageParams defines parameters for GetApiV1ArtifactsImage.
type GetApiV1TrustConfigParams ¶
type GetApiV1TrustConfigParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustConfigParams defines parameters for GetApiV1TrustConfig.
type GetApiV1TrustRootMetadataInfoParams ¶
type GetApiV1TrustRootMetadataInfoParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustRootMetadataInfoParams defines parameters for GetApiV1TrustRootMetadataInfo.
type GetApiV1TrustTargetParams ¶
type GetApiV1TrustTargetParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
Target string `form:"target" json:"target"`
}
GetApiV1TrustTargetParams defines parameters for GetApiV1TrustTarget.
type GetApiV1TrustTargetsCertificatesParams ¶
type GetApiV1TrustTargetsCertificatesParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustTargetsCertificatesParams defines parameters for GetApiV1TrustTargetsCertificates.
type GetApiV1TrustTargetsParams ¶
type GetApiV1TrustTargetsParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustTargetsParams defines parameters for GetApiV1TrustTargets.
type ImageMetadataResponse ¶
type ImageMetadataResponse struct {
// Digest The container image's digest (e.g., SHA256 hash)
Digest string `json:"digest"`
// Image The container image URI
Image *string `json:"image,omitempty"`
// Metadata Metadata for a container image
Metadata Metadata `json:"metadata"`
// Registry The registry URI of the container image
Registry string `json:"registry"`
}
ImageMetadataResponse defines model for ImageMetadataResponse.
type InclusionPromise ¶
type InclusionPromise struct {
SignedEntryTimestamp []byte `json:"signedEntryTimestamp"`
}
InclusionPromise defines model for InclusionPromise.
type InclusionProof ¶
type InclusionProof struct {
Checkpoint *Checkpoint `json:"checkpoint,omitempty"`
// Hashes Array of Merkle tree hashes for the inclusion proof
Hashes [][]byte `json:"hashes"`
// LogIndex Log index of the entry in the Merkle tree
LogIndex int64 `json:"logIndex"`
// RootHash Root hash of the Merkle tree at the time of inclusion
RootHash []byte `json:"rootHash"`
// TreeSize Size of the Merkle tree at the time of inclusion
TreeSize int64 `json:"treeSize"`
}
InclusionProof Merkle tree inclusion proof for a Rekor entry
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type KindVersion ¶
KindVersion defines model for KindVersion.
type Metadata ¶
type Metadata struct {
// Created Creation timestamp of the container image (if available)
Created *time.Time `json:"created"`
// Labels Key-value labels or annotations associated with the container image
Labels *map[string]string `json:"labels"`
// MediaType Media type of the container image (e.g., OCI manifest type)
MediaType string `json:"mediaType"`
// Size Size of the container image in bytes
Size int64 `json:"size"`
}
Metadata Metadata for a container image
type ParsedCertificate ¶
type ParsedCertificate struct {
IsCa bool `json:"isCa"`
Issuer string `json:"issuer"`
// NotAfter ISO date string
NotAfter time.Time `json:"notAfter"`
// NotBefore ISO date string
NotBefore time.Time `json:"notBefore"`
Pem string `json:"pem"`
Role CertificateRole `json:"role"`
Sans []string `json:"sans"`
SerialNumber *string `json:"serialNumber"`
Subject string `json:"subject"`
}
ParsedCertificate defines model for ParsedCertificate.
type PostApiV1ArtifactsVerifyJSONRequestBody ¶
type PostApiV1ArtifactsVerifyJSONRequestBody = VerifyArtifactRequest
PostApiV1ArtifactsVerifyJSONRequestBody defines body for PostApiV1ArtifactsVerify for application/json ContentType.
type RekorPublicKey ¶
type RekorPublicKey struct {
// PublicKey Rekor public key in PEM format
PublicKey string `json:"publicKey"`
}
RekorPublicKey defines model for RekorPublicKey.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type RootMetadataInfo ¶
type RootMetadataInfo struct {
// Expires Expiry date of the TUF root metadata
Expires string `json:"expires"`
// Status Status of the TUF root metadata
Status string `json:"status"`
// Version Version of the TUF root metadata
Version string `json:"version"`
}
RootMetadataInfo defines model for RootMetadataInfo.
type RootMetadataInfoList ¶
type RootMetadataInfoList struct {
Data []RootMetadataInfo `json:"data"`
// RepoUrl URL of the TUF repository
RepoUrl *string `json:"repo-url,omitempty"`
}
RootMetadataInfoList defines model for RootMetadataInfoList.
type ServerInterface ¶
type ServerInterface interface {
// Retrieve metadata and digest from an OCI-compliant registry
// (GET /api/v1/artifacts/image)
GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request, params GetApiV1ArtifactsImageParams)
// Verify an artifact
// (POST /api/v1/artifacts/verify)
PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
// Get policies and attestations for an artifact
// (GET /api/v1/artifacts/{artifact}/policies)
GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request, artifact string)
// Retrieve Rekor log entry by UUID
// (GET /api/v1/rekor/entries/{uuid})
GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request, uuid string)
// Get Rekor public key
// (GET /api/v1/rekor/public-key)
GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
// Get System Health Status
// (GET /api/v1/system/health)
GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request)
// Get Fulcio and Rekor metadata from TUF targets
// (GET /api/v1/trust/config)
GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request, params GetApiV1TrustConfigParams)
// Get Trust Coverage
// (GET /api/v1/trust/coverage)
GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
// Get TUF Root Metadata
// (GET /api/v1/trust/root-metadata-info)
GetApiV1TrustRootMetadataInfo(w http.ResponseWriter, r *http.Request, params GetApiV1TrustRootMetadataInfoParams)
// Get TUF Target File Content
// (GET /api/v1/trust/target)
GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetParams)
// Get TUF Targets List
// (GET /api/v1/trust/targets)
GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsParams)
// Get Certificates Information
// (GET /api/v1/trust/targets/certificates)
GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsCertificatesParams)
// (GET /healthz)
GetHealthz(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) GetApiV1ArtifactsArtifactPolicies ¶
func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request)
GetApiV1ArtifactsArtifactPolicies operation middleware
func (*ServerInterfaceWrapper) GetApiV1ArtifactsImage ¶
func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request)
GetApiV1ArtifactsImage operation middleware
func (*ServerInterfaceWrapper) GetApiV1RekorEntriesUuid ¶
func (siw *ServerInterfaceWrapper) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request)
GetApiV1RekorEntriesUuid operation middleware
func (*ServerInterfaceWrapper) GetApiV1RekorPublicKey ¶
func (siw *ServerInterfaceWrapper) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
GetApiV1RekorPublicKey operation middleware
func (*ServerInterfaceWrapper) GetApiV1SystemHealth ¶
func (siw *ServerInterfaceWrapper) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request)
GetApiV1SystemHealth operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustConfig ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request)
GetApiV1TrustConfig operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustCoverage ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
GetApiV1TrustCoverage operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustRootMetadataInfo ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustRootMetadataInfo(w http.ResponseWriter, r *http.Request)
GetApiV1TrustRootMetadataInfo operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustTarget ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request)
GetApiV1TrustTarget operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustTargets ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request)
GetApiV1TrustTargets operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustTargetsCertificates ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request)
GetApiV1TrustTargetsCertificates operation middleware
func (*ServerInterfaceWrapper) GetHealthz ¶
func (siw *ServerInterfaceWrapper) GetHealthz(w http.ResponseWriter, r *http.Request)
GetHealthz operation middleware
func (*ServerInterfaceWrapper) PostApiV1ArtifactsVerify ¶
func (siw *ServerInterfaceWrapper) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
PostApiV1ArtifactsVerify operation middleware
type SignatureStatus ¶
type SignatureStatus struct {
Chain SignatureStatusChain `json:"chain"`
Rekor SignatureStatusRekor `json:"rekor"`
Signature SignatureStatusSignature `json:"signature"`
}
SignatureStatus defines model for signatureStatus.
type SignatureStatusChain ¶
type SignatureStatusChain string
SignatureStatusChain defines model for SignatureStatus.Chain.
const ( SignatureStatusChainFailed SignatureStatusChain = "failed" SignatureStatusChainVerified SignatureStatusChain = "verified" )
Defines values for SignatureStatusChain.
type SignatureStatusRekor ¶
type SignatureStatusRekor string
SignatureStatusRekor defines model for SignatureStatus.Rekor.
const ( SignatureStatusRekorFailed SignatureStatusRekor = "failed" SignatureStatusRekorVerified SignatureStatusRekor = "verified" )
Defines values for SignatureStatusRekor.
type SignatureStatusSignature ¶
type SignatureStatusSignature string
SignatureStatusSignature defines model for SignatureStatus.Signature.
const ( Failed SignatureStatusSignature = "failed" Verified SignatureStatusSignature = "verified" )
Defines values for SignatureStatusSignature.
type SignatureView ¶
type SignatureView struct {
CertificateChain []ParsedCertificate `json:"certificateChain"`
Digest string `json:"digest"`
// Id Unique identifier for the signature view
Id int `json:"id"`
RawBundleJson string `json:"rawBundleJson"`
RekorEntry *TransparencyLogEntry `json:"rekorEntry,omitempty"`
SignatureStatus SignatureStatus `json:"signatureStatus"`
SigningCertificate ParsedCertificate `json:"signingCertificate"`
// Timestamp ISO-8601 timestamp
Timestamp *time.Time `json:"timestamp,omitempty"`
}
SignatureView defines model for SignatureView.
type SystemHealthResponse ¶
type SystemHealthResponse struct {
// RekorStatus Rekor transparency log service health status
RekorStatus SystemHealthResponseRekorStatus `json:"rekorStatus"`
// SigstoreServices Sigstore services health status
SigstoreServices SystemHealthResponseSigstoreServices `json:"sigstoreServices"`
// TufStatus TUF repository health status
TufStatus SystemHealthResponseTufStatus `json:"tufStatus"`
// UpdatedAt Timestamp when the health status was last updated
UpdatedAt time.Time `json:"updatedAt"`
}
SystemHealthResponse defines model for SystemHealthResponse.
type SystemHealthResponseRekorStatus ¶
type SystemHealthResponseRekorStatus string
SystemHealthResponseRekorStatus Rekor transparency log service health status
const ( SystemHealthResponseRekorStatusHealthy SystemHealthResponseRekorStatus = "healthy" SystemHealthResponseRekorStatusUnhealthy SystemHealthResponseRekorStatus = "unhealthy" SystemHealthResponseRekorStatusUnknown SystemHealthResponseRekorStatus = "unknown" )
Defines values for SystemHealthResponseRekorStatus.
type SystemHealthResponseSigstoreServices ¶
type SystemHealthResponseSigstoreServices string
SystemHealthResponseSigstoreServices Sigstore services health status
const ( SystemHealthResponseSigstoreServicesHealthy SystemHealthResponseSigstoreServices = "healthy" SystemHealthResponseSigstoreServicesUnhealthy SystemHealthResponseSigstoreServices = "unhealthy" SystemHealthResponseSigstoreServicesUnknown SystemHealthResponseSigstoreServices = "unknown" )
Defines values for SystemHealthResponseSigstoreServices.
type SystemHealthResponseTufStatus ¶
type SystemHealthResponseTufStatus string
SystemHealthResponseTufStatus TUF repository health status
const ( SystemHealthResponseTufStatusHealthy SystemHealthResponseTufStatus = "healthy" SystemHealthResponseTufStatusUnhealthy SystemHealthResponseTufStatus = "unhealthy" SystemHealthResponseTufStatusUnknown SystemHealthResponseTufStatus = "unknown" )
Defines values for SystemHealthResponseTufStatus.
type TargetContent ¶
type TargetContent struct {
Content string `json:"content"`
}
TargetContent defines model for TargetContent.
type TargetInfo ¶
type TargetInfo struct {
// Content Content of the target.
Content string `json:"content"`
// Name Target name
Name string `json:"name"`
// Status Status of the target.
Status string `json:"status"`
// Type Target type
Type string `json:"type"`
}
TargetInfo defines model for TargetInfo.
type TargetsList ¶
type TargetsList struct {
Data []TargetInfo `json:"data"`
}
TargetsList defines model for TargetsList.
type TimeCoherenceSummary ¶
type TimeCoherenceSummary struct {
MaxIntegratedTime *time.Time `json:"maxIntegratedTime"`
MinIntegratedTime *time.Time `json:"minIntegratedTime"`
Status TimeCoherenceSummaryStatus `json:"status"`
}
TimeCoherenceSummary defines model for TimeCoherenceSummary.
type TimeCoherenceSummaryStatus ¶
type TimeCoherenceSummaryStatus string
TimeCoherenceSummaryStatus defines model for TimeCoherenceSummary.Status.
const ( TimeCoherenceSummaryStatusError TimeCoherenceSummaryStatus = "error" TimeCoherenceSummaryStatusOk TimeCoherenceSummaryStatus = "ok" TimeCoherenceSummaryStatusUnknown TimeCoherenceSummaryStatus = "unknown" TimeCoherenceSummaryStatusWarning TimeCoherenceSummaryStatus = "warning" )
Defines values for TimeCoherenceSummaryStatus.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type TransparencyLogEntry ¶
type TransparencyLogEntry struct {
CanonicalizedBody []byte `json:"canonicalizedBody"`
InclusionPromise *InclusionPromise `json:"inclusionPromise,omitempty"`
// InclusionProof Merkle tree inclusion proof for a Rekor entry
InclusionProof *InclusionProof `json:"inclusionProof"`
IntegratedTime int64 `json:"integratedTime"`
KindVersion *KindVersion `json:"kindVersion,omitempty"`
LogId *LogId `json:"logId,omitempty"`
LogIndex int64 `json:"logIndex"`
}
TransparencyLogEntry defines model for TransparencyLogEntry.
type TrustConfig ¶
type TrustConfig struct {
FulcioCertAuthorities []struct {
// Pem Certificate in PEM format
Pem string `json:"pem"`
// Subject Certificate authority subject
Subject string `json:"subject"`
} `json:"fulcioCertAuthorities"`
}
TrustConfig defines model for TrustConfig.
type TrustCoverageResponse ¶
type TrustCoverageResponse struct {
// AttestedCount Number of attested artifacts
AttestedCount int `json:"attestedCount"`
// AttestedPercentage Percentage of artifacts that are attested
AttestedPercentage float32 `json:"attestedPercentage"`
// TotalArtifacts Total number of artifacts processed by TAS
TotalArtifacts int `json:"totalArtifacts"`
// UpdatedAt Timestamp when the coverage data was last updated
UpdatedAt time.Time `json:"updatedAt"`
// VerifiedPercentage Percentage of artifacts that are verified
VerifiedPercentage float32 `json:"verifiedPercentage"`
}
TrustCoverageResponse defines model for TrustCoverageResponse.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) GetApiV1ArtifactsArtifactPolicies ¶
func (_ Unimplemented) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request, artifact string)
Get policies and attestations for an artifact (GET /api/v1/artifacts/{artifact}/policies)
func (Unimplemented) GetApiV1ArtifactsImage ¶
func (_ Unimplemented) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request, params GetApiV1ArtifactsImageParams)
Retrieve metadata and digest from an OCI-compliant registry (GET /api/v1/artifacts/image)
func (Unimplemented) GetApiV1RekorEntriesUuid ¶
func (_ Unimplemented) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request, uuid string)
Retrieve Rekor log entry by UUID (GET /api/v1/rekor/entries/{uuid})
func (Unimplemented) GetApiV1RekorPublicKey ¶
func (_ Unimplemented) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
Get Rekor public key (GET /api/v1/rekor/public-key)
func (Unimplemented) GetApiV1SystemHealth ¶
func (_ Unimplemented) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request)
Get System Health Status (GET /api/v1/system/health)
func (Unimplemented) GetApiV1TrustConfig ¶
func (_ Unimplemented) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request, params GetApiV1TrustConfigParams)
Get Fulcio and Rekor metadata from TUF targets (GET /api/v1/trust/config)
func (Unimplemented) GetApiV1TrustCoverage ¶
func (_ Unimplemented) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
Get Trust Coverage (GET /api/v1/trust/coverage)
func (Unimplemented) GetApiV1TrustRootMetadataInfo ¶
func (_ Unimplemented) GetApiV1TrustRootMetadataInfo(w http.ResponseWriter, r *http.Request, params GetApiV1TrustRootMetadataInfoParams)
Get TUF Root Metadata (GET /api/v1/trust/root-metadata-info)
func (Unimplemented) GetApiV1TrustTarget ¶
func (_ Unimplemented) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetParams)
Get TUF Target File Content (GET /api/v1/trust/target)
func (Unimplemented) GetApiV1TrustTargets ¶
func (_ Unimplemented) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsParams)
Get TUF Targets List (GET /api/v1/trust/targets)
func (Unimplemented) GetApiV1TrustTargetsCertificates ¶
func (_ Unimplemented) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsCertificatesParams)
Get Certificates Information (GET /api/v1/trust/targets/certificates)
func (Unimplemented) GetHealthz ¶
func (_ Unimplemented) GetHealthz(w http.ResponseWriter, r *http.Request)
(GET /healthz)
func (Unimplemented) PostApiV1ArtifactsVerify ¶
func (_ Unimplemented) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
Verify an artifact (POST /api/v1/artifacts/verify)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type VerifyArtifactRequest ¶
type VerifyArtifactRequest struct {
// ArtifactDigest Hex-encoded digest of the artifact to verify. Used when the artifact reference does not directly include a digest (e.g., separate file verification). Mandatory when using the bundle.
ArtifactDigest *string `json:"artifactDigest,omitempty"`
// ArtifactDigestAlgorithm Digest algorithm used to compute the artifact's digest. Common values: sha256, sha512.
ArtifactDigestAlgorithm *string `json:"artifactDigestAlgorithm,omitempty"`
// Bundle Optional full Sigstore verification bundle (json). If provided, the verifier will validate this bundle directly instead of fetching an OCI image.
Bundle *map[string]interface{} `json:"bundle"`
// ExpectedOIDIssuer Expected OIDC issuer for the signing certificate (Fulcio-based verification).
ExpectedOIDIssuer *string `json:"expectedOIDIssuer"`
// ExpectedOIDIssuerRegex Regular expression that the OIDC issuer must match, if exact match is not desired.
ExpectedOIDIssuerRegex *string `json:"expectedOIDIssuerRegex"`
// ExpectedSAN Expected identity in the signing certificate's Subject Alternative Name (SAN) extension.
ExpectedSAN *string `json:"expectedSAN"`
// ExpectedSANRegex Regular expression that the SAN value must match, allowing pattern-based verification.
ExpectedSANRegex *string `json:"expectedSANRegex"`
// MinBundleVersion Minimum acceptable bundle version (e.g., '0.1') for verified signatures.
MinBundleVersion *string `json:"minBundleVersion"`
// OciImage The OCI image reference to verify.
OciImage string `json:"ociImage"`
// PredicateType The type of the predicate for the attestation.
PredicateType *string `json:"predicateType,omitempty"`
// RequireCTLog Require that a Certificate Transparency (CT) log entry exists for the signing certificate.
RequireCTLog *bool `json:"requireCTLog,omitempty"`
// RequireTLog Require that an Artifact Transparency (Rekor) log entry exists for the verified artifact.
RequireTLog *bool `json:"requireTLog,omitempty"`
// RequireTimestamp Require that either an RFC3161 signed timestamp or a log entry integrated timestamp is present in the signature.
RequireTimestamp *bool `json:"requireTimestamp,omitempty"`
// TufRepoUrl URL of a TUF repository containing the trusted root JSON file.
TufRepoUrl *string `json:"tufRepoUrl,omitempty"`
}
VerifyArtifactRequest Parameters for verifying a signed artifact or container image using Sigstore and related trust sources. Fields correspond to common verification inputs such as issuer expectations, trusted roots, and TUF configuration.
type VerifyArtifactResponse ¶
type VerifyArtifactResponse struct {
Artifact ImageMetadataResponse `json:"artifact"`
// Attestations List of attestations for the artifact
Attestations []AttestationView `json:"attestations"`
// Signatures List of signature verification results
Signatures []SignatureView `json:"signatures"`
Summary ArtifactSummaryView `json:"summary"`
}
VerifyArtifactResponse defines model for VerifyArtifactResponse.