Documentation ¶
Index ¶
- func SortKeyEntries(entries []*KeyEntry)
- type Base
- func (m *Base) GenerateKey(ctx context.Context, req *keymanager.GenerateKeyRequest) (*keymanager.GenerateKeyResponse, error)
- func (m *Base) GetPublicKey(ctx context.Context, req *keymanager.GetPublicKeyRequest) (*keymanager.GetPublicKeyResponse, error)
- func (m *Base) GetPublicKeys(ctx context.Context, req *keymanager.GetPublicKeysRequest) (*keymanager.GetPublicKeysResponse, error)
- func (m *Base) SetEntries(entries []*KeyEntry)
- func (m *Base) SignData(ctx context.Context, req *keymanager.SignDataRequest) (*keymanager.SignDataResponse, error)
- type ErrorFn
- type Impl
- type KeyEntry
- type WriteFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortKeyEntries ¶
func SortKeyEntries(entries []*KeyEntry)
Types ¶
type Base ¶
type Base struct { keymanager.UnsafeKeyManagerServer // contains filtered or unexported fields }
func (*Base) GenerateKey ¶
func (m *Base) GenerateKey(ctx context.Context, req *keymanager.GenerateKeyRequest) (*keymanager.GenerateKeyResponse, error)
func (*Base) GetPublicKey ¶
func (m *Base) GetPublicKey(ctx context.Context, req *keymanager.GetPublicKeyRequest) (*keymanager.GetPublicKeyResponse, error)
func (*Base) GetPublicKeys ¶
func (m *Base) GetPublicKeys(ctx context.Context, req *keymanager.GetPublicKeysRequest) (*keymanager.GetPublicKeysResponse, error)
func (*Base) SetEntries ¶
func (*Base) SignData ¶
func (m *Base) SignData(ctx context.Context, req *keymanager.SignDataRequest) (*keymanager.SignDataResponse, error)
type KeyEntry ¶
type KeyEntry struct { PrivateKey crypto.PrivateKey *keymanager.PublicKey }
func MakeKeyEntryFromKey ¶
func MakeKeyEntryFromKey(id string, privateKey crypto.PrivateKey) (*KeyEntry, error)
Click to show internal directories.
Click to hide internal directories.