fs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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 {
	CertificatePath string `yaml:"certificate_path"`
	PrivateKeyPath  string `yaml:"private_key_path"`
}

type Factory

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

func NewFactory

func NewFactory(fs boshsys.FileSystem, 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, fs boshsys.FileSystem, 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

Jump to

Keyboard shortcuts

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