types

package
v0.1.126 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 46

Documentation

Index

Constants

View Source
const DefaultPasswordLength = 20

Variables

This section is empty.

Functions

This section is empty.

Types

type CertResponse

type CertResponse struct {
	Certificate string `json:"certificate" yaml:"certificate"`
	PrivateKey  string `json:"private_key" yaml:"private_key"`
	CA          string `json:"ca"          yaml:"ca"`
}

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 RSAKey

type RSAKey struct {
	PrivateKey string `json:"private_key" yaml:"private_key"`
	PublicKey  string `json:"public_key" yaml:"public_key"`
}

type RSAKeyGenerator

type RSAKeyGenerator struct{}

func NewRSAKeyGenerator

func NewRSAKeyGenerator() RSAKeyGenerator

func (RSAKeyGenerator) Generate

func (g RSAKeyGenerator) Generate(parameters interface{}) (interface{}, error)

type SSHKey

type SSHKey struct {
	PrivateKey           string `json:"private_key" yaml:"private_key"`
	PublicKey            string `json:"public_key" yaml:"public_key"`
	PublicKeyFingerprint string `json:"public_key_fingerprint" yaml:"public_key_fingerprint"`
}

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)
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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