cmd

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindCertificateFlags

func BindCertificateFlags(fs *pflag.FlagSet, cert *x509.Certificate)

BindCertificateFlags binds flags to a x509.Certificate

func BindCertificateRequestFlags

func BindCertificateRequestFlags(fs *pflag.FlagSet, csr *x509.CertificateRequest)

BindCertificateRequestFlags binds flags to a x509.CertificateRequest

func BindKeyFlags

func BindKeyFlags(fs *pflag.FlagSet, keyOptions *pcert.KeyOptions)

BindKeyFlags binds flags to a pcert.KeyOptions

func RegisterCertificateCompletionFuncs

func RegisterCertificateCompletionFuncs(cmd *cobra.Command)

RegisterCertificateCompletionFuncs can be used after with BindCertificateFlags to enable shell completion for certain flags

func RegisterCertificateRequestCompletionFuncs

func RegisterCertificateRequestCompletionFuncs(cmd *cobra.Command)

RegisterCertificateRequestCompletionFuncs can be used after BindCertificateRequestFlags to enable shell completion for certain flags

func RegisterKeyCompletionFuncs

func RegisterKeyCompletionFuncs(cmd *cobra.Command)

RegisterKeyCompletionFuncs can be used after with BindKeyFlags to enable shell completion for certain flags

Types

type Merger

type Merger interface {
	Merge(val string) error
}

Merger interface is an extension for the value interface. The interface indicates that a value can be merged (e.g. slice or maps). Often this is also supported with the Set method of the value interface but in addition to the Set method the Merge method guarantees that nothing gets overwritten with a call to Merge.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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