Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultSigningKeyLength = 1024
)
Variables ¶
This section is empty.
Functions ¶
func NewSigningKey ¶
func NewSigningKey() []byte
func NewSigningKeyWithLength ¶
Types ¶
type KeyPair ¶
type KeyPair struct {
// contains filtered or unexported fields
}
func NewKeyPair ¶
func (*KeyPair) PrivateKey ¶
PrivateKey returns the private SSH key in PEM format.
type KeyPairType ¶
type KeyPairType string
const ( KeyPairRsa KeyPairType = "rsa" KeyPairEcdsa KeyPairType = "ecdsa" KeyPairEd25519 KeyPairType = "ed25519" )
type Option ¶
type Option func(*KeyPair)
func WithComment ¶
func WithEcdsaCurve ¶
func WithPassphrase ¶
func WithRsaLength ¶
func WithType ¶
func WithType(keyPairType KeyPairType) Option
Click to show internal directories.
Click to hide internal directories.