inmemorygenerator

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryGenerator

type InMemoryGenerator struct {
	Bits      int    // Key bits
	Expiry    int    // Expiration (days)
	Algorithm string // Algorithm type
	// contains filtered or unexported fields
}

InMemoryGenerator represents a secret generator that generates everything by itself, using no 3rd party tools

func NewInMemoryGenerator

func NewInMemoryGenerator(log *zap.SugaredLogger) *InMemoryGenerator

NewInMemoryGenerator creates a default InMemoryGenerator

func (InMemoryGenerator) GenerateCertificate

GenerateCertificate generates a certificate using Cloudflare's TLS toolkit

func (InMemoryGenerator) GenerateCertificateSigningRequest added in v0.4.0

func (g InMemoryGenerator) GenerateCertificateSigningRequest(request credsgen.CertificateGenerationRequest) ([]byte, []byte, error)

GenerateCertificateSigningRequest Generates a certificate signing request and private key

func (InMemoryGenerator) GeneratePassword

func (g InMemoryGenerator) GeneratePassword(name string, request credsgen.PasswordGenerationRequest) string

GeneratePassword generates a random password

func (InMemoryGenerator) GenerateRSAKey

func (g InMemoryGenerator) GenerateRSAKey(name string) (credsgen.RSAKey, error)

GenerateRSAKey generates an RSA key using go's standard crypto library

func (InMemoryGenerator) GenerateSSHKey

func (g InMemoryGenerator) GenerateSSHKey(name string) (credsgen.SSHKey, error)

GenerateSSHKey generates an SSH key using go's standard crypto library

Jump to

Keyboard shortcuts

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