adguard

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const BLOCKED_SERVICES_PAUSE_SCHEDULE_START_END = 0
View Source
const BLOCKED_SERVICES_PAUSE_SCHEDULE_TIMEZONE = "Local"
View Source
const CLIENT_FILTERING_ENABLED = false
View Source
const CLIENT_IGNORE_QUERYLOG = false
View Source
const CLIENT_IGNORE_STATISTICS = false
View Source
const CLIENT_PARENTAL_CONTROL_ENABLED = false
View Source
const CLIENT_SAFEBROWSING_ENABLED = false
View Source
const CLIENT_SAFE_SEARCH_ENABLED = false
View Source
const CLIENT_UPSTREAMS_CACHE_ENABLED = false
View Source
const CLIENT_UPSTREAMS_CACHE_SIZE = 0
View Source
const CLIENT_UPSTREAMS_CACHE_SIZE_MAX = 4294967295
View Source
const CLIENT_USE_GLOBAL_BLOCKED_SERVICES = true
View Source
const CLIENT_USE_GLOBAL_SETTINGS = true

adguard_client defaults

View Source
const CONFIG_DHCP_ENABLED = false
View Source
const CONFIG_DHCP_V4_LEASE_DURATION = 0 // seconds
View Source
const CONFIG_DHCP_V6_LEASE_DURATION = 86400 // seconds
View Source
const CONFIG_DNS_BLOCKED_RESPONSE_TTL = 10
View Source
const CONFIG_DNS_BLOCKING_MODE = "default"
View Source
const CONFIG_DNS_CACHE_OPTIMISTIC = false
View Source
const CONFIG_DNS_CACHE_SIZE = 4194304
View Source
const CONFIG_DNS_CACHE_TTL_MAX = 0
View Source
const CONFIG_DNS_CACHE_TTL_MIN = 0
View Source
const CONFIG_DNS_DISABLE_IPV6 = false
View Source
const CONFIG_DNS_DNSSEC_ENABLED = false
View Source
const CONFIG_DNS_EDNS_CS_ENABLED = false
View Source
const CONFIG_DNS_EDNS_CS_USE_CUSTOM = false
View Source
const CONFIG_DNS_PROTECTION_ENABLED = true
View Source
const CONFIG_DNS_RATE_LIMIT = 20
View Source
const CONFIG_DNS_RATE_LIMIT_SUBNET_LEN_IPV4 = 24
View Source
const CONFIG_DNS_RATE_LIMIT_SUBNET_LEN_IPV6 = 56
View Source
const CONFIG_DNS_RESOLVE_CLIENTS = true
View Source
const CONFIG_DNS_UPSTREAM_MODE = "load_balance"
View Source
const CONFIG_DNS_USE_PRIVATE_PTR_RESOLVERS = false
View Source
const CONFIG_FILTERING_ENABLED = true

adguard_config defaults

View Source
const CONFIG_FILTERING_UPDATE_INTERVAL uint = 24 // hours
View Source
const CONFIG_PARENTAL_CONTROL_ENABLED = false
View Source
const CONFIG_QUERYLOG_ANONYMIZE_CLIENT_IP = false
View Source
const CONFIG_QUERYLOG_ENABLED = true
View Source
const CONFIG_QUERYLOG_INTERVAL uint64 = 2160 // hours
View Source
const CONFIG_SAFEBROWSING_ENABLED = false
View Source
const CONFIG_STATS_ENABLED = true
View Source
const CONFIG_STATS_INTERVAL = 24 // hours
View Source
const CONFIG_TLS_ENABLED = false
View Source
const CONFIG_TLS_FORCE_HTTPS = false
View Source
const CONFIG_TLS_PORT_DNS_OVER_QUIC = 853
View Source
const CONFIG_TLS_PORT_DNS_OVER_TLS = 853
View Source
const CONFIG_TLS_PORT_HTTPS = 443
View Source
const CONFIG_TLS_SERVE_PLAIN_DNS = true
View Source
const LIST_FILTER_ENABLED = true

adguard_list_filter defaults

View Source
const LIST_FILTER_WHITELIST = false
View Source
const MAX_TIMEOUT int = 60

define a max AdGuard Home client timeout

View Source
const SAFE_SEARCH_ENABLED = false

Variables

View Source
var CONFIG_DNS_BLOCKED_HOSTS = []string{"version.bind", "id.server", "hostname.bind"}
View Source
var CONFIG_DNS_BOOTSTRAP = []string{"9.9.9.10", "149.112.112.10", "2620:fe::10", "2620:fe::fe:10"}
View Source
var CONFIG_DNS_UPSTREAM = []string{"https://dns10.quad9.net/dns-query"}

Functions

func New

func New() provider.Provider

New is a helper function to simplify provider server and testing implementation

func NewClientDataSource

func NewClientDataSource() datasource.DataSource

NewClientDataSource is a helper function to simplify the provider implementation

func NewClientResource

func NewClientResource() resource.Resource

NewClientResource is a helper function to simplify the provider implementation

func NewConfigDataSource added in v0.5.0

func NewConfigDataSource() datasource.DataSource

NewConfigDataSource is a helper function to simplify the provider implementation

func NewConfigResource added in v0.5.0

func NewConfigResource() resource.Resource

NewConfigResource is a helper function to simplify the provider implementation

func NewListFilterDataSource added in v0.2.0

func NewListFilterDataSource() datasource.DataSource

NewListFilterDataSource is a helper function to simplify the provider implementation

func NewListFilterResource added in v0.2.0

func NewListFilterResource() resource.Resource

NewlistFilterResource is a helper function to simplify the provider implementation

func NewRewriteDataSource added in v0.3.0

func NewRewriteDataSource() datasource.DataSource

NewRewriteDataSource is a helper function to simplify the provider implementation

func NewRewriteResource added in v0.3.0

func NewRewriteResource() resource.Resource

NewRewriteResource is a helper function to simplify the provider implementation

func NewUserRulesDataSource added in v0.2.0

func NewUserRulesDataSource() datasource.DataSource

NewUserRulesDataSource is a helper function to simplify the provider implementation

func NewUserRulesResource added in v0.2.0

func NewUserRulesResource() resource.Resource

NewUserRulesResource is a helper function to simplify the provider implementation

Types

type AllTypesValidator added in v0.7.0

AllTypesValidator implements all validation interfaces offered by github.com/hashicorp/terraform-plugin-framework/schema/validator

func AlsoRequiresNOf added in v0.7.0

func AlsoRequiresNOf(n int, expressions ...path.Expression) AllTypesValidator

AlsoRequiresNOf ensures that of a set of path.Expression, at least 'n' have a non-null value.

Any relative path.Expression will be resolved using the attribute being validated.

type AlsoRequiresNOfValidator added in v0.7.0

type AlsoRequiresNOfValidator struct {
	N               int
	PathExpressions path.Expressions
}

AlsoRequiresNOfValidator is the underlying struct implementing AlsoRequiresNOf.

func (AlsoRequiresNOfValidator) Description added in v0.7.0

func (o AlsoRequiresNOfValidator) Description(ctx context.Context) string

func (AlsoRequiresNOfValidator) MarkdownDescription added in v0.7.0

func (o AlsoRequiresNOfValidator) MarkdownDescription(_ context.Context) string

func (AlsoRequiresNOfValidator) Validate added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateBool added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateFloat64 added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateInt64 added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateList added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateMap added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateNumber added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateObject added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateSet added in v0.7.0

func (AlsoRequiresNOfValidator) ValidateString added in v0.7.0

type AlsoRequiresNOfValidatorRequest added in v0.7.0

type AlsoRequiresNOfValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	N              int
	Path           path.Path
	PathExpression path.Expression
}

type AlsoRequiresNOfValidatorResponse added in v0.7.0

type AlsoRequiresNOfValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

Jump to

Keyboard shortcuts

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