Versions in this module Expand all Collapse all v1 v1.1.0 Aug 9, 2018 Changes in this version type CertRecord + ID int + type StringSlice []string + func (s *StringSlice) Scan(value interface{}) error + func (s StringSlice) Value() (driver.Value, error) v1.0.0 Jun 20, 2018 Changes in this version + type CertRecord struct + CreatedAt time.Time + Expires time.Time + KeyID string + Principals types.StringSlice + Raw string + Revoked bool + func (c *CertRecord) MarshalJSON() ([]byte, error) + type CertStorer interface + Close func() error + Get func(id string) (*CertRecord, error) + GetRevoked func() ([]*CertRecord, error) + List func(includeExpired bool) ([]*CertRecord, error) + Revoke func(id []string) error + SetCert func(cert *ssh.Certificate) error + SetRecord func(record *CertRecord) error + func New(c config.Database) (CertStorer, error) + type MemoryStore struct + func NewMemoryStore() *MemoryStore + func (ms *MemoryStore) Close() error + func (ms *MemoryStore) Get(id string) (*CertRecord, error) + func (ms *MemoryStore) GetRevoked() ([]*CertRecord, error) + func (ms *MemoryStore) List(includeExpired bool) ([]*CertRecord, error) + func (ms *MemoryStore) Revoke(ids []string) error + func (ms *MemoryStore) SetCert(cert *ssh.Certificate) error + func (ms *MemoryStore) SetRecord(record *CertRecord) error + type SQLStore struct + func NewSQLStore(c config.Database) (*SQLStore, error) + func (db *SQLStore) Close() error + func (db *SQLStore) Get(id string) (*CertRecord, error) + func (db *SQLStore) GetRevoked() ([]*CertRecord, error) + func (db *SQLStore) List(includeExpired bool) ([]*CertRecord, error) + func (db *SQLStore) Revoke(ids []string) error + func (db *SQLStore) SetCert(cert *ssh.Certificate) error + func (db *SQLStore) SetRecord(rec *CertRecord) error