verifyif

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package verifyif provides the interface for artifact verifiers, including the Result type

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactType

type ArtifactType string

ArtifactType represents the type of artifact, i.e., container, npm, etc.

const (
	// ArtifactTypeContainer is a container artifact
	ArtifactTypeContainer ArtifactType = "container"
)

type ArtifactVerifier

type ArtifactVerifier interface {
	Verify(ctx context.Context, artifactType ArtifactType,
		owner, name, checksumref string) ([]Result, error)
	VerifyContainer(ctx context.Context,
		owner, artifact, checksumref string) ([]Result, error)
}

ArtifactVerifier is the interface for artifact verifiers

type Result

type Result struct {
	IsSigned   bool `json:"is_signed"`
	IsVerified bool `json:"is_verified"`
	verify.VerificationResult
}

Result is the result of the verification

Directories

Path Synopsis
Package mock_verifyif is a generated GoMock package.
Package mock_verifyif is a generated GoMock package.

Jump to

Keyboard shortcuts

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