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

Method DeleteKey

kontrol/postgres.go:415–424  ·  view source on GitHub ↗
(keyPair *KeyPair)

Source from the content-addressed store, hash-verified

413}
414
415func (p *Postgres) DeleteKey(keyPair *KeyPair) error {
416 res, err := p.DB.Exec(`UPDATE kite.key SET deleted_at = (now() at time zone 'utc') WHERE id = $1`,
417 keyPair.ID)
418 if err != nil {
419 return err
420 }
421
422 _, err = res.RowsAffected()
423 return err
424}
425
426func (p *Postgres) IsValid(public string) error {
427 // A valid key is currently a key that is not deleted.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected