Documentation ¶
Overview ¶
Package crl is a generated GoMock package.
Index ¶
- type BitSet
- type MockValidator
- func (m *MockValidator) Configure(config *tls.Config, maxValidityDays int)
- func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
- func (m *MockValidator) IsRevoked(issuer string, serialNumber *big.Int) bool
- func (m *MockValidator) IsSynced(maxOffsetDays int) bool
- func (m *MockValidator) Sync() error
- func (m *MockValidator) SyncLoop(ctx context.Context)
- type MockValidatorMockRecorder
- func (mr *MockValidatorMockRecorder) Configure(config, maxValidityDays interface{}) *gomock.Call
- func (mr *MockValidatorMockRecorder) IsRevoked(issuer, serialNumber interface{}) *gomock.Call
- func (mr *MockValidatorMockRecorder) IsSynced(maxOffsetDays interface{}) *gomock.Call
- func (mr *MockValidatorMockRecorder) Sync() *gomock.Call
- func (mr *MockValidatorMockRecorder) SyncLoop(ctx interface{}) *gomock.Call
- type SyncError
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitSet ¶
type BitSet struct {
// contains filtered or unexported fields
}
BitSet implements a fixed-length atomic bitset backed by a slice of booleans
type MockValidator ¶
type MockValidator struct {
// contains filtered or unexported fields
}
MockValidator is a mock of Validator interface.
func NewMockValidator ¶
func NewMockValidator(ctrl *gomock.Controller) *MockValidator
NewMockValidator creates a new mock instance.
func (*MockValidator) Configure ¶
func (m *MockValidator) Configure(config *tls.Config, maxValidityDays int)
Configure mocks base method.
func (*MockValidator) EXPECT ¶
func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidator) IsRevoked ¶
func (m *MockValidator) IsRevoked(issuer string, serialNumber *big.Int) bool
IsRevoked mocks base method.
func (*MockValidator) IsSynced ¶
func (m *MockValidator) IsSynced(maxOffsetDays int) bool
IsSynced mocks base method.
func (*MockValidator) SyncLoop ¶
func (m *MockValidator) SyncLoop(ctx context.Context)
SyncLoop mocks base method.
type MockValidatorMockRecorder ¶
type MockValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorMockRecorder is the mock recorder for MockValidator.
func (*MockValidatorMockRecorder) Configure ¶
func (mr *MockValidatorMockRecorder) Configure(config, maxValidityDays interface{}) *gomock.Call
Configure indicates an expected call of Configure.
func (*MockValidatorMockRecorder) IsRevoked ¶
func (mr *MockValidatorMockRecorder) IsRevoked(issuer, serialNumber interface{}) *gomock.Call
IsRevoked indicates an expected call of IsRevoked.
func (*MockValidatorMockRecorder) IsSynced ¶
func (mr *MockValidatorMockRecorder) IsSynced(maxOffsetDays interface{}) *gomock.Call
IsSynced indicates an expected call of IsSynced.
func (*MockValidatorMockRecorder) Sync ¶
func (mr *MockValidatorMockRecorder) Sync() *gomock.Call
Sync indicates an expected call of Sync.
func (*MockValidatorMockRecorder) SyncLoop ¶
func (mr *MockValidatorMockRecorder) SyncLoop(ctx interface{}) *gomock.Call
SyncLoop indicates an expected call of SyncLoop.
type SyncError ¶
type SyncError struct {
// contains filtered or unexported fields
}
SyncError is returned by the CRL database when synchronization fails
type Validator ¶
type Validator interface { Sync() error SyncLoop(ctx context.Context) IsSynced(maxOffsetDays int) bool Configure(config *tls.Config, maxValidityDays int) IsRevoked(issuer string, serialNumber *big.Int) bool }
Validator synchronizes CRLs and validates revoked certificates
func NewValidator ¶
func NewValidator(certificates []*x509.Certificate) Validator
NewValidator returns a new instance of the CRL database
func NewValidatorWithHTTPClient ¶
func NewValidatorWithHTTPClient(certificates []*x509.Certificate, httpClient *http.Client) Validator
NewValidatorWithHTTPClient returns a new instance with a pre-configured HTTP client