MCPcopy Index your code
hub / github.com/koding/kite / GetKeyFromPublic

Method GetKeyFromPublic

kontrol/keypair.go:55–55  ·  view source on GitHub ↗

GetKeyFromPublic retrieves the KeyPairs from the given public key. If the key is no longer valid and the storage is able to deterime that it was deleted, the returned error is of *DeletedKeyPairError type.

(publicKey string)

Source from the content-addressed store, hash-verified

53 // that it was deleted, the returned error is of *DeletedKeyPairError
54 // type.
55 GetKeyFromPublic(publicKey string) (*KeyPair, error)
56
57 // Is valid checks if the given publicKey is valid or not. It's up to the
58 // implementer how to implement it. A valid public key returns a nil error.

Callers 4

GetKeyFromPublicMethod · 0.65
getOrUpdateKeyPubMethod · 0.65
DeleteKeyPairMethod · 0.65
registerSelfMethod · 0.65

Implementers 3

MemKeyPairStoragekontrol/keypair.go
CachedStoragekontrol/keypair.go
Postgreskontrol/postgres.go

Calls

no outgoing calls

Tested by

no test coverage detected