hook

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: BSD-2-Clause Imports: 2 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// MetadataUniqueID ...
	MetadataUniqueID = "unique_id"
)

Variables

View Source
var (
	// ClientInsecureSkipVerify ...
	ClientInsecureSkipVerify = false
	// EnableVaultStorage ...
	EnableVaultStorage = false
	// VaultStoragePrefix ...
	VaultStoragePrefix = "/ca/certs"
)

Functions

This section is empty.

Types

type KeyStore

type KeyStore interface {
	GetPrivKey() (crypto.Signer, error)
	GetCert() (*x509.Certificate, error)
	GetTrustCerts() ([]*x509.Certificate, error)
}

KeyStore 用于动态获取 CA 证书

var KeyStorer KeyStore

KeyStorer 全局实例, 用于调用关系解耦, 由 CapitaliZone 注入 ** 未注入会导致 panic **

Jump to

Keyboard shortcuts

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