MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / mockKeyVault

Struct mockKeyVault

pkg/crypto/cryptoutil/keyvault_cache_test.go:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33)
34
35type mockKeyVault struct {
36 KeyFunc func(ctx context.Context, label string) ([]byte, error)
37 ServerCertificateFunc func(ctx context.Context, label string) (tls.Certificate, error)
38 ClientCertificateFunc func(ctx context.Context, label string) (tls.Certificate, error)
39}
40
41func (m *mockKeyVault) Key(ctx context.Context, label string) ([]byte, error) {
42 if m.KeyFunc == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected