memory

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CertificateString string `yaml:"certificate"`
	PrivateKeyString  string `yaml:"private_key"`

	Certificate x509.Certificate  `yaml:"-"`
	PrivateKey  crypto.PrivateKey `yaml:"-"`
}

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(logger logrus.FieldLogger) Factory

func (Factory) Create

func (f Factory) Create(name string, options map[string]interface{}) (certauth.Provider, error)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(name string, config Config, logger logrus.FieldLogger) Provider

func (Provider) GetCertificate

func (p Provider) GetCertificate() (*x509.Certificate, error)

func (Provider) GetCertificatePEM

func (p Provider) GetCertificatePEM() (string, error)

func (Provider) GetPrivateKeyPEM

func (p Provider) GetPrivateKeyPEM() (string, error)

func (Provider) Name

func (p Provider) Name() string

func (Provider) SignCertificate

func (p Provider) SignCertificate(template *x509.Certificate, publicKey interface{}, loggerContext logrus.Fields) ([]byte, error)

func (Provider) SignSSHCertificate

func (p Provider) SignSSHCertificate(certificate *ssh.Certificate, loggerContext logrus.Fields) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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