vault: github.com/hashicorp/vault/helper/reload Index | Files

package reload

import "github.com/hashicorp/vault/helper/reload"

Index

Package Files

reload.go

type CertificateGetter Uses

type CertificateGetter struct {
    sync.RWMutex
    // contains filtered or unexported fields
}

CertificateGetter satisfies ReloadFunc and its GetCertificate method satisfies the tls.GetCertificate function signature. Currently it does not allow changing paths after the fact.

func NewCertificateGetter Uses

func NewCertificateGetter(certFile, keyFile, passphrase string) *CertificateGetter

func (*CertificateGetter) GetCertificate Uses

func (cg *CertificateGetter) GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)

func (*CertificateGetter) Reload Uses

func (cg *CertificateGetter) Reload(_ map[string]interface{}) error

type ReloadFunc Uses

type ReloadFunc func(map[string]interface{}) error

ReloadFunc are functions that are called when a reload is requested

Package reload imports 8 packages (graph) and is imported by 11 packages. Updated 2018-04-21. Refresh now. Tools for package owners.