integrated_validator

package
v0.83.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 7 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package integrated_validator is a generated GoMock package.

Index

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))
	// SetPeerValidationChangeListener registers fn to be called with the peers whose
	// validation state changed outside a login or sync, so their network maps can be pushed.
	SetPeerValidationChangeListener(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

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) SetPeerValidationChangeListener added in v0.82.0

func (m *MockIntegratedValidator) SetPeerValidationChangeListener(fn func(string, []string))

SetPeerValidationChangeListener mocks base method.

func (*MockIntegratedValidator) Stop added in v0.78.0

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) SetPeerValidationChangeListener added in v0.82.0

func (mr *MockIntegratedValidatorMockRecorder) SetPeerValidationChangeListener(fn any) *gomock.Call

SetPeerValidationChangeListener indicates an expected call of SetPeerValidationChangeListener.

func (*MockIntegratedValidatorMockRecorder) Stop added in v0.78.0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL