Documentation ¶
Index ¶
- Constants
- func InitKeeper() error
- type Keeper
- func (k *Keeper) GetCachedSelfKeyPair() (key crypto.Signer, cert *x509.Certificate, err error)
- func (k *Keeper) GetCachedSelfKeyPairPEM() (key, cert []byte, err error)
- func (k *Keeper) GetCachedTLSKeyPair() (*tls.Certificate, error)
- func (k *Keeper) GetDBSelfKeyPairPEM() (key, cert []byte, err error)
- func (k *Keeper) GetL3CachedTrustCerts() (certs []*x509.Certificate, err error)
- func (k *Keeper) GetRemoteTrustCerts() (certs []*x509.Certificate, err error)
- func (k *Keeper) SetKeyPairPEM(key, cert []byte) error
- type RemoteSigner
- type SelfSigner
- type UpperClients
Constants ¶
View Source
const ( // SelfKeyPairName db row name SelfKeyPairName = "ca" SelfKeyTrustName = "trust" )
...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Keeper ¶
type Keeper struct { DB *gorm.DB RootClient UpperClients // contains filtered or unexported fields }
Keeper ...
var (
Std *Keeper
)
func (*Keeper) GetCachedSelfKeyPair ¶
GetCachedSelfKeyPair ...
func (*Keeper) GetCachedSelfKeyPairPEM ¶
GetCachedSelfKeyPairPEM ...
func (*Keeper) GetCachedTLSKeyPair ¶
func (k *Keeper) GetCachedTLSKeyPair() (*tls.Certificate, error)
GetCachedTLSKeyPair ...
func (*Keeper) GetDBSelfKeyPairPEM ¶
GetDBSelfKeyPairPEM ...
func (*Keeper) GetL3CachedTrustCerts ¶
func (k *Keeper) GetL3CachedTrustCerts() (certs []*x509.Certificate, err error)
GetL3CachedTrustCerts Memory > multi level cache > remote process > certificate
func (*Keeper) GetRemoteTrustCerts ¶
func (k *Keeper) GetRemoteTrustCerts() (certs []*x509.Certificate, err error)
GetRemoteTrustCerts Obtain remote trust certificate (including root certificate and intermediate CA certificate)
func (*Keeper) SetKeyPairPEM ¶
SetKeyPairPEM ...
type RemoteSigner ¶
type RemoteSigner struct {
// contains filtered or unexported fields
}
RemoteSigner ...
func (*RemoteSigner) Run ¶
func (ss *RemoteSigner) Run() error
Run calls the remote CA to sign the certificate and persist it
type SelfSigner ¶
type SelfSigner struct {
// contains filtered or unexported fields
}
SelfSigner ...
type UpperClients ¶
type UpperClients interface { DoWithRetry(f func(*client.AuthRemote) error) error AllClients() map[string]*client.AuthRemote }
func NewUpperClients ¶
func NewUpperClients(adds []string) (UpperClients, error)
Click to show internal directories.
Click to hide internal directories.