Documentation
¶
Overview ¶
Package integrated_validator is a generated GoMock package.
Index ¶
- type IntegratedValidator
- type MockIntegratedValidator
- func (m *MockIntegratedValidator) EXPECT() *MockIntegratedValidatorMockRecorder
- func (m *MockIntegratedValidator) GetInvalidPeers(ctx context.Context, accountID string, extraSettings *types.ExtraSettings) (map[string]string, error)
- func (m *MockIntegratedValidator) GetValidatedPeers(ctx context.Context, accountID string, groups []*nmdata.Group, ...) (map[string]struct{}, error)
- func (m *MockIntegratedValidator) IsNotValidPeer(ctx context.Context, accountID string, arg2 *peer.Peer, peersGroup []string, ...) (bool, bool, error)
- func (m *MockIntegratedValidator) PeerDeleted(ctx context.Context, accountID, peerID string, ...) error
- func (m *MockIntegratedValidator) PreparePeer(ctx context.Context, accountID string, p *peer.Peer, peersGroup []string, ...) *peer.Peer
- func (m *MockIntegratedValidator) SetPeerInvalidationListener(fn func(string, []string))
- func (m *MockIntegratedValidator) Stop(ctx context.Context)
- func (m *MockIntegratedValidator) ValidateExtraSettings(ctx context.Context, newExtraSettings, oldExtraSettings *types.ExtraSettings, ...) error
- func (m *MockIntegratedValidator) ValidateFlowResponse(ctx context.Context, peerKey string, flowResponse *proto.PKCEAuthorizationFlow) *proto.PKCEAuthorizationFlow
- func (m *MockIntegratedValidator) ValidatePeer(ctx context.Context, update, p *peer.Peer, userID, accountID, dnsDomain string, ...) (*peer.Peer, bool, error)
- type MockIntegratedValidatorMockRecorder
- func (mr *MockIntegratedValidatorMockRecorder) GetInvalidPeers(ctx, accountID, extraSettings any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) GetValidatedPeers(ctx, accountID, groups, peers, extraSettings any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) IsNotValidPeer(ctx, accountID, arg2, peersGroup, extraSettings any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) PeerDeleted(ctx, accountID, peerID, extraSettings any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) PreparePeer(ctx, accountID, p, peersGroup, extraSettings, temporary any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) SetPeerInvalidationListener(fn any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) Stop(ctx any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) ValidateExtraSettings(ctx, newExtraSettings, oldExtraSettings, userID, accountID any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) ValidateFlowResponse(ctx, peerKey, flowResponse any) *gomock.Call
- func (mr *MockIntegratedValidatorMockRecorder) ValidatePeer(ctx, update, p, userID, accountID, dnsDomain, peersGroup, extraSettings any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntegratedValidator ¶
type IntegratedValidator interface {
ValidateExtraSettings(ctx context.Context, newExtraSettings *types.ExtraSettings, oldExtraSettings *types.ExtraSettings, userID string, accountID string) error
ValidatePeer(ctx context.Context, update *nbpeer.Peer, p *nbpeer.Peer, userID string, accountID string, dnsDomain string, peersGroup []string, extraSettings *types.ExtraSettings) (*nbpeer.Peer, bool, error)
PreparePeer(ctx context.Context, accountID string, p *nbpeer.Peer, peersGroup []string, extraSettings *types.ExtraSettings, temporary bool) *nbpeer.Peer
IsNotValidPeer(ctx context.Context, accountID string, peer *nbpeer.Peer, peersGroup []string, extraSettings *types.ExtraSettings) (bool, bool, error)
GetValidatedPeers(ctx context.Context, accountID string, groups []*nmdata.Group, peers []*nmdata.Peer, extraSettings *types.ExtraSettings) (map[string]struct{}, error)
GetInvalidPeers(ctx context.Context, accountID string, extraSettings *types.ExtraSettings) (map[string]string, error)
PeerDeleted(ctx context.Context, accountID, peerID string, extraSettings *types.ExtraSettings) error
SetPeerInvalidationListener(fn func(accountID string, peerIDs []string))
Stop(ctx context.Context)
ValidateFlowResponse(ctx context.Context, peerKey string, flowResponse *proto.PKCEAuthorizationFlow) *proto.PKCEAuthorizationFlow
}
IntegratedValidator interface exists to avoid the circle dependencies
type MockIntegratedValidator ¶ added in v0.78.0
type MockIntegratedValidator struct {
// contains filtered or unexported fields
}
MockIntegratedValidator is a mock of IntegratedValidator interface.
func NewMockIntegratedValidator ¶ added in v0.78.0
func NewMockIntegratedValidator(ctrl *gomock.Controller) *MockIntegratedValidator
NewMockIntegratedValidator creates a new mock instance.
func (*MockIntegratedValidator) EXPECT ¶ added in v0.78.0
func (m *MockIntegratedValidator) EXPECT() *MockIntegratedValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIntegratedValidator) GetInvalidPeers ¶ added in v0.78.0
func (m *MockIntegratedValidator) GetInvalidPeers(ctx context.Context, accountID string, extraSettings *types.ExtraSettings) (map[string]string, error)
GetInvalidPeers mocks base method.
func (*MockIntegratedValidator) GetValidatedPeers ¶ added in v0.78.0
func (m *MockIntegratedValidator) GetValidatedPeers(ctx context.Context, accountID string, groups []*nmdata.Group, peers []*nmdata.Peer, extraSettings *types.ExtraSettings) (map[string]struct{}, error)
GetValidatedPeers mocks base method.
func (*MockIntegratedValidator) IsNotValidPeer ¶ added in v0.78.0
func (m *MockIntegratedValidator) IsNotValidPeer(ctx context.Context, accountID string, arg2 *peer.Peer, peersGroup []string, extraSettings *types.ExtraSettings) (bool, bool, error)
IsNotValidPeer mocks base method.
func (*MockIntegratedValidator) PeerDeleted ¶ added in v0.78.0
func (m *MockIntegratedValidator) PeerDeleted(ctx context.Context, accountID, peerID string, extraSettings *types.ExtraSettings) error
PeerDeleted mocks base method.
func (*MockIntegratedValidator) PreparePeer ¶ added in v0.78.0
func (m *MockIntegratedValidator) PreparePeer(ctx context.Context, accountID string, p *peer.Peer, peersGroup []string, extraSettings *types.ExtraSettings, temporary bool) *peer.Peer
PreparePeer mocks base method.
func (*MockIntegratedValidator) SetPeerInvalidationListener ¶ added in v0.78.0
func (m *MockIntegratedValidator) SetPeerInvalidationListener(fn func(string, []string))
SetPeerInvalidationListener mocks base method.
func (*MockIntegratedValidator) Stop ¶ added in v0.78.0
func (m *MockIntegratedValidator) Stop(ctx context.Context)
Stop mocks base method.
func (*MockIntegratedValidator) ValidateExtraSettings ¶ added in v0.78.0
func (m *MockIntegratedValidator) ValidateExtraSettings(ctx context.Context, newExtraSettings, oldExtraSettings *types.ExtraSettings, userID, accountID string) error
ValidateExtraSettings mocks base method.
func (*MockIntegratedValidator) ValidateFlowResponse ¶ added in v0.78.0
func (m *MockIntegratedValidator) ValidateFlowResponse(ctx context.Context, peerKey string, flowResponse *proto.PKCEAuthorizationFlow) *proto.PKCEAuthorizationFlow
ValidateFlowResponse mocks base method.
func (*MockIntegratedValidator) ValidatePeer ¶ added in v0.78.0
func (m *MockIntegratedValidator) ValidatePeer(ctx context.Context, update, p *peer.Peer, userID, accountID, dnsDomain string, peersGroup []string, extraSettings *types.ExtraSettings) (*peer.Peer, bool, error)
ValidatePeer mocks base method.
type MockIntegratedValidatorMockRecorder ¶ added in v0.78.0
type MockIntegratedValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockIntegratedValidatorMockRecorder is the mock recorder for MockIntegratedValidator.
func (*MockIntegratedValidatorMockRecorder) GetInvalidPeers ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) GetInvalidPeers(ctx, accountID, extraSettings any) *gomock.Call
GetInvalidPeers indicates an expected call of GetInvalidPeers.
func (*MockIntegratedValidatorMockRecorder) GetValidatedPeers ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) GetValidatedPeers(ctx, accountID, groups, peers, extraSettings any) *gomock.Call
GetValidatedPeers indicates an expected call of GetValidatedPeers.
func (*MockIntegratedValidatorMockRecorder) IsNotValidPeer ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) IsNotValidPeer(ctx, accountID, arg2, peersGroup, extraSettings any) *gomock.Call
IsNotValidPeer indicates an expected call of IsNotValidPeer.
func (*MockIntegratedValidatorMockRecorder) PeerDeleted ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) PeerDeleted(ctx, accountID, peerID, extraSettings any) *gomock.Call
PeerDeleted indicates an expected call of PeerDeleted.
func (*MockIntegratedValidatorMockRecorder) PreparePeer ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) PreparePeer(ctx, accountID, p, peersGroup, extraSettings, temporary any) *gomock.Call
PreparePeer indicates an expected call of PreparePeer.
func (*MockIntegratedValidatorMockRecorder) SetPeerInvalidationListener ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) SetPeerInvalidationListener(fn any) *gomock.Call
SetPeerInvalidationListener indicates an expected call of SetPeerInvalidationListener.
func (*MockIntegratedValidatorMockRecorder) Stop ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) Stop(ctx any) *gomock.Call
Stop indicates an expected call of Stop.
func (*MockIntegratedValidatorMockRecorder) ValidateExtraSettings ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) ValidateExtraSettings(ctx, newExtraSettings, oldExtraSettings, userID, accountID any) *gomock.Call
ValidateExtraSettings indicates an expected call of ValidateExtraSettings.
func (*MockIntegratedValidatorMockRecorder) ValidateFlowResponse ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) ValidateFlowResponse(ctx, peerKey, flowResponse any) *gomock.Call
ValidateFlowResponse indicates an expected call of ValidateFlowResponse.
func (*MockIntegratedValidatorMockRecorder) ValidatePeer ¶ added in v0.78.0
func (mr *MockIntegratedValidatorMockRecorder) ValidatePeer(ctx, update, p, userID, accountID, dnsDomain, peersGroup, extraSettings any) *gomock.Call
ValidatePeer indicates an expected call of ValidatePeer.