signature

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker checks the signature status of artifact

func (Checker) IsArtifactSigned

func (sc Checker) IsArtifactSigned(digest string) bool

IsArtifactSigned checks if the artifact with given digest is signed.

func (Checker) IsTagSigned

func (sc Checker) IsTagSigned(tag, digest string) bool

IsTagSigned checks if the tag of the artifact is signed, it also checks the signed artifact has the same digest as parm.

type Manager

type Manager interface {
	// GetCheckerByRepo returns a Checker for checking signature
	GetCheckerByRepo(ctx context.Context, repo string) (*Checker, error)
}

Manager interface for handling signatures of artifacts

func GetManager

func GetManager() Manager

GetManager ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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