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 ¶
- func CheckCdDigests(cd *cdv2.ComponentDescriptor, repoContext cdv2.OCIRegistryRepository, ...) error
- func NewRSAVerifyCommand(ctx context.Context) *cobra.Command
- func NewVerifyCommand(ctx context.Context) *cobra.Command
- func NewX509CertificateVerifyCommand(ctx context.Context) *cobra.Command
- type GenericVerifyOptions
- type RSAVerifyOptions
- type X509CertificateVerifyOptions
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 NewVerifyCommand ¶
NewVerifyCommand creates a new command to verify signatures.
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 ¶
func (o *RSAVerifyOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error
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 ¶
func (o *X509CertificateVerifyOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error
Click to show internal directories.
Click to hide internal directories.