args

package
v0.0.0-...-6bd0673 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindCommonArgs

func BindCommonArgs(flags *pflag.FlagSet)

func BindECDSAArgs

func BindECDSAArgs(flags *pflag.FlagSet)

func BindRSAArgs

func BindRSAArgs(flags *pflag.FlagSet)

func TryPersistCommonArgs

func TryPersistCommonArgs()

Types

type Common

type Common struct {
	Key string `mapstructure:"key"`

	Country            string `mapstructure:"country"`
	State              string `mapstructure:"state"`
	Locality           string `mapstructure:"locality"`
	Organization       string `mapstructure:"org"`
	OrganizationalUnit string `mapstructure:"ou"`
	CommonName         string `mapstructure:"common-name"`

	Out                   string                  `mapstructure:"out"`
	SignatureAlgorithmRaw string                  `mapstructure:"signature-algorithm"`
	SignatureAlgorithm    x509.SignatureAlgorithm `mapstructure:"-"`

	SubjectAlternateNames []string `mapstructure:"san"`
}

Common houses args shared amongst all sub-commands

func CommonArgs

func CommonArgs() *Common

func (*Common) BuildSubject

func (t *Common) BuildSubject() *pkix.Name

func (*Common) DecodeECDSASigAlg

func (t *Common) DecodeECDSASigAlg() error

func (*Common) DecodeRSASigAlg

func (t *Common) DecodeRSASigAlg() error

type ECDSA

type ECDSA struct {
	CurveRaw string         `mapstructure:"curve"`
	Curve    elliptic.Curve `mapstructure:"-"`
}

func ECDSAArgs

func ECDSAArgs() *ECDSA

func (*ECDSA) DecodeCurve

func (t *ECDSA) DecodeCurve() error

type RSA

type RSA struct {
	KeyLength int `mapstructure:"key-length"`
}

func RSAArgs

func RSAArgs() *RSA

Jump to

Keyboard shortcuts

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