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

Method AddKey

kontrol/keypair.go:85–93  ·  view source on GitHub ↗
(keyPair *KeyPair)

Source from the content-addressed store, hash-verified

83}
84
85func (m *MemKeyPairStorage) AddKey(keyPair *KeyPair) error {
86 if err := keyPair.Validate(); err != nil {
87 return err
88 }
89
90 m.id.Set(keyPair.ID, keyPair)
91 m.public.Set(keyPair.Public, keyPair)
92 return nil
93}
94
95func (m *MemKeyPairStorage) DeleteKey(keyPair *KeyPair) error {
96 if keyPair.Public == "" {

Callers

nothing calls this directly

Calls 2

ValidateMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected