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 ¶
NewGetCommand shows definitions and their configuration.
func NewSignCommand ¶
NewSignCommand creates a new command to interact with signatures.
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 ¶
func (o *RSASignOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error
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 ¶
func (o *SigningServerSignOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error
Click to show internal directories.
Click to hide internal directories.