Documentation ¶
Index ¶
- type Config
- type Factory
- type Provider
- func (p Provider) GetCertificate() (*x509.Certificate, error)
- func (p Provider) GetCertificatePEM() (string, error)
- func (p Provider) GetPrivateKeyPEM() (string, error)
- func (p Provider) Name() string
- func (p Provider) SignCertificate(template *x509.Certificate, publicKey interface{}, loggerContext logrus.Fields) ([]byte, error)
- func (p Provider) SignSSHCertificate(certificate *ssh.Certificate, loggerContext logrus.Fields) error
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
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 (Provider) GetPrivateKeyPEM ¶
func (Provider) SignCertificate ¶
func (Provider) SignSSHCertificate ¶
Click to show internal directories.
Click to hide internal directories.