sign

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 NewRSASignCommand

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

NewGetCommand shows definitions and their configuration.

func NewSignCommand

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

NewSignCommand creates a new command to interact with signatures.

func NewSigningServerSignCommand

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

Types

type GenericSignOptions

type GenericSignOptions 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

	ComponentArchivePath string

	// SignatureName defines the name for the generated signature
	SignatureName string

	// UploadBaseUrlForSigned is the base url where the signed component descriptor will be uploaded
	UploadBaseUrlForSigned string

	// Force to overwrite component descriptors on upload
	Force bool

	// RecursiveSigning to enable/disable signing and uploading of all referenced components
	RecursiveSigning bool

	// SkipAccessTypes defines the access types that will be ignored for signing
	SkipAccessTypes []string

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

func (*GenericSignOptions) AddFlags

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

func (*GenericSignOptions) Complete

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

Complete validates the arguments and flags from the command line

func (*GenericSignOptions) SignAndUploadWithSigner

func (o *GenericSignOptions) SignAndUploadWithSigner(ctx context.Context, log logr.Logger, fs vfs.FileSystem, signer cdv2Sign.Signer) error

type RSASignOptions

type RSASignOptions struct {
	// PathToPrivateKey for RSA signing
	PathToPrivateKey string

	GenericSignOptions
}

func (*RSASignOptions) AddFlags

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

func (*RSASignOptions) Complete

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

func (*RSASignOptions) Run

type SigningServerSignOptions

type SigningServerSignOptions struct {
	ServerURL       string
	ClientCertPath  string
	PrivateKeyPath  string
	RootCACertsPath string

	GenericSignOptions
}

func (*SigningServerSignOptions) AddFlags

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

func (*SigningServerSignOptions) Complete

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

func (*SigningServerSignOptions) Run

Jump to

Keyboard shortcuts

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