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

Method Validate

kontrol/keypair.go:23–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func (k *KeyPair) Validate() error {
24 if k.ID == "" {
25 return errors.New("KeyPair ID field is empty")
26 }
27
28 if k.Public == "" {
29 return errors.New("KeyPair Public field is empty")
30 }
31
32 if k.Private == "" {
33 return errors.New("KeyPair Private field is empty")
34 }
35
36 return nil
37}
38
39// KeyPairStorage is responsible of managing key pairs
40type KeyPairStorage interface {

Callers 4

AddKeyPairMethod · 0.95
AddKeyMethod · 0.45
NewPostgresFunction · 0.45
AddKeyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected