Documentation ¶
Index ¶
- func CheckIfNull(field []string) []string
- func NewLamassuCaClientMock(logger log.Logger) (lamassuca.LamassuCaClient, error)
- type LamassuCaClientConfig
- func (c *LamassuCaClientConfig) CreateCA(ctx context.Context, caType dto.CAType, caName string, ...) (dto.Cert, error)
- func (c *LamassuCaClientConfig) DeleteCA(ctx context.Context, caType dto.CAType, caName string) error
- func (c *LamassuCaClientConfig) GetCAs(ctx context.Context, caType caDTO.CAType, ...) (caDTO.GetCasResponse, error)
- func (c *LamassuCaClientConfig) GetCert(ctx context.Context, caType caDTO.CAType, caName string, SerialNumber string) (caDTO.Cert, error)
- func (c *LamassuCaClientConfig) GetIssuedCerts(ctx context.Context, caType caDTO.CAType, caName string, ...) (caDTO.IssuedCertsResponse, error)
- func (c *LamassuCaClientConfig) ImportCA(ctx context.Context, caType dto.CAType, caName string, ...) (dto.Cert, error)
- func (c *LamassuCaClientConfig) RevokeCert(ctx context.Context, caType caDTO.CAType, caName string, ...) error
- func (c *LamassuCaClientConfig) SignCertificateRequest(ctx context.Context, caType caDTO.CAType, caName string, ...) (*x509.Certificate, *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 dto.DMS) (string, error)
- func (db *MockDB) InsertAuthorizedCAs(ctx context.Context, dmsid string, CAs []string) error
- func (db *MockDB) SelectAll(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.DMS, int, 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) (dto.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, ...) (dto.DMS, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfNull ¶
func NewLamassuCaClientMock ¶
func NewLamassuCaClientMock(logger log.Logger) (lamassuca.LamassuCaClient, error)
Types ¶
type LamassuCaClientConfig ¶
type LamassuCaClientConfig struct {
// contains filtered or unexported fields
}
func (*LamassuCaClientConfig) GetCAs ¶
func (c *LamassuCaClientConfig) GetCAs(ctx context.Context, caType caDTO.CAType, queryparameters filters.QueryParameters) (caDTO.GetCasResponse, error)
func (*LamassuCaClientConfig) GetIssuedCerts ¶
func (c *LamassuCaClientConfig) GetIssuedCerts(ctx context.Context, caType caDTO.CAType, caName string, queryParameters filters.QueryParameters) (caDTO.IssuedCertsResponse, error)
func (*LamassuCaClientConfig) ImportCA ¶
func (c *LamassuCaClientConfig) ImportCA(ctx context.Context, caType dto.CAType, caName string, certificate x509.Certificate, privateKey dto.PrivateKey, enrollerTTL time.Duration) (dto.Cert, error)
func (*LamassuCaClientConfig) RevokeCert ¶
func (*LamassuCaClientConfig) SignCertificateRequest ¶
func (c *LamassuCaClientConfig) SignCertificateRequest(ctx context.Context, caType caDTO.CAType, caName string, csr *x509.CertificateRequest, signVerbatim bool, cn string) (*x509.Certificate, *x509.Certificate, error)
type MockDB ¶
func (*MockDB) DeleteAuthorizedCAs ¶
func (*MockDB) InsertAuthorizedCAs ¶
func (*MockDB) SelectAllAuthorizedCAs ¶
func (*MockDB) SelectByDMSIDAuthorizedCAs ¶
func (*MockDB) SelectByID ¶
func (*MockDB) SelectBySerialNumber ¶
Click to show internal directories.
Click to hide internal directories.