Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPasswordLength = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertResponse ¶
type CertificateGenerator ¶
type CertificateGenerator struct {
// contains filtered or unexported fields
}
func NewCertificateGenerator ¶
func NewCertificateGenerator(loader CertsLoader) CertificateGenerator
func (CertificateGenerator) Generate ¶
func (cfg CertificateGenerator) Generate(parameters interface{}) (interface{}, error)
type CertsLoader ¶
type CertsLoader interface {
LoadCerts(string) (*x509.Certificate, *rsa.PrivateKey, error)
}
type RSAKeyGenerator ¶
type RSAKeyGenerator struct{}
func NewRSAKeyGenerator ¶
func NewRSAKeyGenerator() RSAKeyGenerator
func (RSAKeyGenerator) Generate ¶
func (g RSAKeyGenerator) Generate(parameters interface{}) (interface{}, error)
type SSHKeyGenerator ¶
type SSHKeyGenerator struct{}
func NewSSHKeyGenerator ¶
func NewSSHKeyGenerator() SSHKeyGenerator
func (SSHKeyGenerator) Generate ¶
func (g SSHKeyGenerator) Generate(parameters interface{}) (interface{}, error)
type ValueGenerator ¶
type ValueGenerator interface {
Generate(interface{}) (interface{}, error)
}
func NewPasswordGenerator ¶
func NewPasswordGenerator() ValueGenerator
type ValueGeneratorConcrete ¶
type ValueGeneratorConcrete struct {
// contains filtered or unexported fields
}
func NewValueGeneratorConcrete ¶
func NewValueGeneratorConcrete(loader CertsLoader) ValueGeneratorConcrete
func (ValueGeneratorConcrete) GetGenerator ¶
func (vgc ValueGeneratorConcrete) GetGenerator(valueType string) (ValueGenerator, error)
type ValueGeneratorFactory ¶
type ValueGeneratorFactory interface {
GetGenerator(valueType string) (ValueGenerator, error)
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.