settings

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: 14 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 settings is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdpConfig added in v0.64.4

type IdpConfig struct {
	EmbeddedIdpEnabled bool
	LocalAuthDisabled  bool
}

IdpConfig holds IdP-related configuration that is set at runtime and not stored in the database.

type Manager

type Manager interface {
	GetExtraSettingsManager() extra_settings.Manager
	GetSettings(ctx context.Context, accountID string, userID string) (*types.Settings, error)
	GetExtraSettings(ctx context.Context, accountID string) (*types.ExtraSettings, error)
	UpdateExtraSettings(ctx context.Context, accountID, userID string, extraSettings *types.ExtraSettings) (bool, error)
	// GetEffectiveNetworkRanges returns the actual allocated network ranges (v4 and v6).
	// This includes auto-allocated ranges even when no custom override was set.
	GetEffectiveNetworkRanges(ctx context.Context, accountID string) (v4, v6 netip.Prefix, err error)
}

func NewManager

func NewManager(store store.Store, userManager users.Manager, extraSettingsManager extra_settings.Manager, permissionsManager permissions.Manager, idpConfig IdpConfig) Manager

type MockManager added in v0.39.0

type MockManager struct {
	// contains filtered or unexported fields
}

MockManager is a mock of Manager interface.

func NewMockManager added in v0.39.0

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) EXPECT added in v0.39.0

func (m *MockManager) EXPECT() *MockManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockManager) GetEffectiveNetworkRanges added in v0.71.0

func (m *MockManager) GetEffectiveNetworkRanges(ctx context.Context, accountID string) (netip.Prefix, netip.Prefix, error)

GetEffectiveNetworkRanges mocks base method.

func (*MockManager) GetExtraSettings added in v0.39.0

func (m *MockManager) GetExtraSettings(ctx context.Context, accountID string) (*types.ExtraSettings, error)

GetExtraSettings mocks base method.

func (*MockManager) GetExtraSettingsManager added in v0.39.0

func (m *MockManager) GetExtraSettingsManager() extra_settings.Manager

GetExtraSettingsManager mocks base method.

func (*MockManager) GetSettings added in v0.39.0

func (m *MockManager) GetSettings(ctx context.Context, accountID, userID string) (*types.Settings, error)

GetSettings mocks base method.

func (*MockManager) UpdateExtraSettings added in v0.39.0

func (m *MockManager) UpdateExtraSettings(ctx context.Context, accountID, userID string, extraSettings *types.ExtraSettings) (bool, error)

UpdateExtraSettings mocks base method.

type MockManagerMockRecorder added in v0.39.0

type MockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) GetEffectiveNetworkRanges added in v0.71.0

func (mr *MockManagerMockRecorder) GetEffectiveNetworkRanges(ctx, accountID any) *gomock.Call

GetEffectiveNetworkRanges indicates an expected call of GetEffectiveNetworkRanges.

func (*MockManagerMockRecorder) GetExtraSettings added in v0.39.0

func (mr *MockManagerMockRecorder) GetExtraSettings(ctx, accountID any) *gomock.Call

GetExtraSettings indicates an expected call of GetExtraSettings.

func (*MockManagerMockRecorder) GetExtraSettingsManager added in v0.39.0

func (mr *MockManagerMockRecorder) GetExtraSettingsManager() *gomock.Call

GetExtraSettingsManager indicates an expected call of GetExtraSettingsManager.

func (*MockManagerMockRecorder) GetSettings added in v0.39.0

func (mr *MockManagerMockRecorder) GetSettings(ctx, accountID, userID any) *gomock.Call

GetSettings indicates an expected call of GetSettings.

func (*MockManagerMockRecorder) UpdateExtraSettings added in v0.39.0

func (mr *MockManagerMockRecorder) UpdateExtraSettings(ctx, accountID, userID, extraSettings any) *gomock.Call

UpdateExtraSettings indicates an expected call of UpdateExtraSettings.

Jump to

Keyboard shortcuts

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