Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockPseudonymResolver ¶
func NewMockPseudonymResolver(t *testing.T) saltpack.SymmetricKeyResolver
Types ¶
type MockPseudonymResolver ¶
MockPseudonymResolver resolver returns nil for all the pseudonyms requested unless otherwise instructed by the AddPseudonym method. It does not make any network requests to the server.
func (*MockPseudonymResolver) AddPseudonym ¶
func (r *MockPseudonymResolver) AddPseudonym(pnym [32]byte, key *saltpack.SymmetricKey)
func (*MockPseudonymResolver) ResolveKeys ¶
func (r *MockPseudonymResolver) ResolveKeys(identifiers [][]byte) ([]*saltpack.SymmetricKey, error)
Click to show internal directories.
Click to hide internal directories.