Documentation ¶
Index ¶
- func GetCert(ctx context.Context, IssuerName string, SerialNumber string, caType string) (lamassuca.Cert, error)
- func NewLamassuCaClientMock(logger log.Logger) (lamassuca.LamassuCaClient, error)
- type LamassuCaClientConfig
- func (c *LamassuCaClientConfig) GetCAs(ctx context.Context, caType string) (lamassuca.Certs, error)
- func (c *LamassuCaClientConfig) GetCert(ctx context.Context, IssuerName string, SerialNumber string, caType string) (lamassuca.Cert, error)
- func (c *LamassuCaClientConfig) RevokeCert(ctx context.Context, IssuerName string, serialNumberToRevoke string, ...) error
- func (c *LamassuCaClientConfig) SignCertificateRequest(ctx context.Context, signingCaName string, csr *x509.CertificateRequest, ...) (*x509.Certificate, error)
- type MockDB
- func (db *MockDB) Delete(ctx context.Context, id string) error
- func (db *MockDB) DeleteAuthorizedCAs(ctx context.Context, dmsid string) error
- func (db *MockDB) Insert(ctx context.Context, d dms.DMS) (string, error)
- func (db *MockDB) InsertAuthorizedCAs(ctx context.Context, dmsid string, CAs []string) error
- func (db *MockDB) SelectAll(ctx context.Context) ([]dms.DMS, error)
- func (db *MockDB) SelectAllAuthorizedCAs(ctx context.Context) ([]dms.AuthorizedCAs, error)
- func (db *MockDB) SelectByDMSIDAuthorizedCAs(ctx context.Context, dmsid string) ([]dms.AuthorizedCAs, error)
- func (db *MockDB) SelectByID(ctx context.Context, id string) (dms.DMS, error)
- func (db *MockDB) SelectBySerialNumber(ctx context.Context, SerialNumber string) (string, error)
- func (db *MockDB) UpdateByID(ctx context.Context, id string, status string, serialNumber string, ...) (dms.DMS, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLamassuCaClientMock ¶
func NewLamassuCaClientMock(logger log.Logger) (lamassuca.LamassuCaClient, error)
Types ¶
type LamassuCaClientConfig ¶
type LamassuCaClientConfig struct {
// contains filtered or unexported fields
}
func (*LamassuCaClientConfig) RevokeCert ¶
func (*LamassuCaClientConfig) SignCertificateRequest ¶
func (c *LamassuCaClientConfig) SignCertificateRequest(ctx context.Context, signingCaName string, csr *x509.CertificateRequest, caType string, signVerbatim bool) (*x509.Certificate, error)
type MockDB ¶
func (*MockDB) DeleteAuthorizedCAs ¶ added in v0.0.22
func (*MockDB) InsertAuthorizedCAs ¶ added in v0.0.22
func (*MockDB) SelectAllAuthorizedCAs ¶ added in v0.0.22
func (*MockDB) SelectByDMSIDAuthorizedCAs ¶ added in v0.0.22
func (*MockDB) SelectByID ¶
func (*MockDB) SelectBySerialNumber ¶ added in v0.0.22
Click to show internal directories.
Click to hide internal directories.