certificate

package
v0.0.0-...-607a5b3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 50 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LetsEncryptStagingURL = "https://acme-staging-v02.api.letsencrypt.org/directory"
	LetsEncryptProdURL    = "https://acme-v02.api.letsencrypt.org/directory"
)

Variables

View Source
var ErrEmptyCert = errors.New("empty cert")

Functions

This section is empty.

Types

type ACMEUser

type ACMEUser struct {
	ServerURL    string
	Email        string
	Registration *acme.RegistrationResource
	Key          crypto.PrivateKey
}

func (*ACMEUser) GetEmail

func (u *ACMEUser) GetEmail() string

func (*ACMEUser) GetPrivateKey

func (u *ACMEUser) GetPrivateKey() crypto.PrivateKey

func (*ACMEUser) GetRegistration

func (u *ACMEUser) GetRegistration() *acme.RegistrationResource

type CertStore

type CertStore struct {
	KubeClient    kubernetes.Interface
	VoyagerClient cs.Interface
	VaultClient   *vault.Client
}

func NewCertStore

func NewCertStore(kubeClient kubernetes.Interface, voyagerClient cs.Interface) (*CertStore, error)

func (*CertStore) Get

func (s *CertStore) Get(crd *api.Certificate) (pemCrt, pemKey []byte, err error)

func (*CertStore) Save

func (s *CertStore) Save(crd *api.Certificate, cert *acme.CertificateResource) error

type Controller

type Controller struct {
	KubeClient    kubernetes.Interface
	VoyagerClient cs.Interface

	ChallengeProvider string
	UserSecret        *core.Secret
	DNSCredentials    map[string][]byte
	// contains filtered or unexported fields
}

func NewController

func NewController(kubeClient kubernetes.Interface, extClient cs.Interface, cfg config.Config, tpr *api.Certificate, recorder record.EventRecorder) (*Controller, error)

func (*Controller) Process

func (c *Controller) Process() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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