MCPcopy Create free account
hub / github.com/koding/kite / IsValid

Method IsValid

kontrol/postgres.go:426–430  ·  view source on GitHub ↗
(public string)

Source from the content-addressed store, hash-verified

424}
425
426func (p *Postgres) IsValid(public string) error {
427 // A valid key is currently a key that is not deleted.
428 _, err := p.GetKeyFromPublic(public)
429 return err
430}
431
432func (p *Postgres) getKey(preds ...interface{}) (*KeyPair, error) {
433 psql := sq.StatementBuilder.PlaceholderFormat(sq.Dollar).

Callers

nothing calls this directly

Calls 1

GetKeyFromPublicMethod · 0.95

Tested by

no test coverage detected