verify

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.

SPDX-License-Identifier: Apache-2.0

SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.

SPDX-License-Identifier: Apache-2.0

SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCdDigests

func CheckCdDigests(cd *cdv2.ComponentDescriptor, repoContext cdv2.OCIRegistryRepository, ociClient ociclient.Client, ctx context.Context) error

func NewRSAVerifyCommand

func NewRSAVerifyCommand(ctx context.Context) *cobra.Command

func NewVerifyCommand

func NewVerifyCommand(ctx context.Context) *cobra.Command

NewVerifyCommand creates a new command to verify signatures.

func NewX509CertificateVerifyCommand

func NewX509CertificateVerifyCommand(ctx context.Context) *cobra.Command

Types

type GenericVerifyOptions

type GenericVerifyOptions struct {
	// BaseUrl is the oci registry where the component is stored.
	BaseUrl string
	// ComponentName is the unique name of the component in the registry.
	ComponentName string
	// Version is the component version in the oci registry.
	Version string

	// SignatureName selects the matching signature to verify
	SignatureName string

	// OciOptions contains all exposed options to configure the oci client.
	OciOptions ociopts.Options
}

func (*GenericVerifyOptions) AddFlags

func (o *GenericVerifyOptions) AddFlags(fs *pflag.FlagSet)

func (*GenericVerifyOptions) Complete

func (o *GenericVerifyOptions) Complete(args []string) error

Complete validates the arguments and flags from the command line

func (*GenericVerifyOptions) VerifyWithVerifier

func (o *GenericVerifyOptions) VerifyWithVerifier(ctx context.Context, log logr.Logger, fs vfs.FileSystem, verifier cdv2Sign.Verifier) error

type RSAVerifyOptions

type RSAVerifyOptions struct {
	// PathToPublicKey for RSA verification
	PathToPublicKey string

	GenericVerifyOptions
}

func (*RSAVerifyOptions) AddFlags

func (o *RSAVerifyOptions) AddFlags(fs *pflag.FlagSet)

func (*RSAVerifyOptions) Complete

func (o *RSAVerifyOptions) Complete(args []string) error

func (*RSAVerifyOptions) Run

type X509CertificateVerifyOptions

type X509CertificateVerifyOptions struct {
	GenericVerifyOptions
	// contains filtered or unexported fields
}

func (*X509CertificateVerifyOptions) AddFlags

func (o *X509CertificateVerifyOptions) AddFlags(fs *pflag.FlagSet)

func (*X509CertificateVerifyOptions) Complete

func (o *X509CertificateVerifyOptions) Complete(args []string) error

func (*X509CertificateVerifyOptions) Run

Jump to

Keyboard shortcuts

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