Documentation ¶
Index ¶
- type Storage
- func (s *Storage) Close()
- func (s *Storage) CreateCert(cert *models.Cert) *models.Cert
- func (s *Storage) DeleteCert(id bson.ObjectId) error
- func (s *Storage) FindCert(id bson.ObjectId) (models.Cert, error)
- func (s *Storage) InsertCert(cert *models.Cert) error
- func (s *Storage) IsDuplicateKey(err error) bool
- func (s *Storage) IsNotFound(err error) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage define all storage action and methods
func (*Storage) CreateCert ¶
CreateCert create new certificate
func (*Storage) DeleteCert ¶
DeleteCert delete certificate of database
func (*Storage) InsertCert ¶
InsertCert insert new cert on database
func (*Storage) IsDuplicateKey ¶
IsDuplicateKey test if a key already exist on storage
func (*Storage) IsNotFound ¶
IsNotFound resource not found
Click to show internal directories.
Click to hide internal directories.