Documentation ¶
Index ¶
- Constants
- Variables
- func New() provider.Provider
- func NewClientDataSource() datasource.DataSource
- func NewClientResource() resource.Resource
- func NewConfigDataSource() datasource.DataSource
- func NewConfigResource() resource.Resource
- func NewListFilterDataSource() datasource.DataSource
- func NewListFilterResource() resource.Resource
- func NewRewriteDataSource() datasource.DataSource
- func NewRewriteResource() resource.Resource
- func NewUserRulesDataSource() datasource.DataSource
- func NewUserRulesResource() resource.Resource
- type AllTypesValidator
- type AlsoRequiresNOfValidator
- func (o AlsoRequiresNOfValidator) Description(ctx context.Context) string
- func (o AlsoRequiresNOfValidator) MarkdownDescription(_ context.Context) string
- func (o AlsoRequiresNOfValidator) Validate(ctx context.Context, req AlsoRequiresNOfValidatorRequest, ...)
- func (o AlsoRequiresNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AlsoRequiresNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AlsoRequiresNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AlsoRequiresNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AlsoRequiresNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AlsoRequiresNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AlsoRequiresNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AlsoRequiresNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AlsoRequiresNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AlsoRequiresNOfValidatorRequest
- type AlsoRequiresNOfValidatorResponse
Constants ¶
const BLOCKED_SERVICES_PAUSE_SCHEDULE_START_END = 0
const BLOCKED_SERVICES_PAUSE_SCHEDULE_TIMEZONE = "Local"
const CLIENT_FILTERING_ENABLED = false
const CLIENT_IGNORE_QUERYLOG = false
const CLIENT_IGNORE_STATISTICS = false
const CLIENT_PARENTAL_CONTROL_ENABLED = false
const CLIENT_SAFEBROWSING_ENABLED = false
const CLIENT_SAFE_SEARCH_ENABLED = false
const CLIENT_UPSTREAMS_CACHE_ENABLED = false
const CLIENT_UPSTREAMS_CACHE_SIZE = 0
const CLIENT_UPSTREAMS_CACHE_SIZE_MAX = 4294967295
const CLIENT_USE_GLOBAL_BLOCKED_SERVICES = true
const CLIENT_USE_GLOBAL_SETTINGS = true
adguard_client defaults
const CONFIG_DHCP_ENABLED = false
const CONFIG_DHCP_V4_LEASE_DURATION = 0 // seconds
const CONFIG_DHCP_V6_LEASE_DURATION = 86400 // seconds
const CONFIG_DNS_BLOCKED_RESPONSE_TTL = 10
const CONFIG_DNS_BLOCKING_MODE = "default"
const CONFIG_DNS_CACHE_OPTIMISTIC = false
const CONFIG_DNS_CACHE_SIZE = 4194304
const CONFIG_DNS_CACHE_TTL_MAX = 0
const CONFIG_DNS_CACHE_TTL_MIN = 0
const CONFIG_DNS_DISABLE_IPV6 = false
const CONFIG_DNS_DNSSEC_ENABLED = false
const CONFIG_DNS_EDNS_CS_ENABLED = false
const CONFIG_DNS_EDNS_CS_USE_CUSTOM = false
const CONFIG_DNS_PROTECTION_ENABLED = true
const CONFIG_DNS_RATE_LIMIT = 20
const CONFIG_DNS_RATE_LIMIT_SUBNET_LEN_IPV4 = 24
const CONFIG_DNS_RATE_LIMIT_SUBNET_LEN_IPV6 = 56
const CONFIG_DNS_RESOLVE_CLIENTS = true
const CONFIG_DNS_UPSTREAM_MODE = "load_balance"
const CONFIG_DNS_USE_PRIVATE_PTR_RESOLVERS = false
const CONFIG_FILTERING_ENABLED = true
adguard_config defaults
const CONFIG_FILTERING_UPDATE_INTERVAL uint = 24 // hours
const CONFIG_PARENTAL_CONTROL_ENABLED = false
const CONFIG_QUERYLOG_ANONYMIZE_CLIENT_IP = false
const CONFIG_QUERYLOG_ENABLED = true
const CONFIG_QUERYLOG_INTERVAL uint64 = 2160 // hours
const CONFIG_SAFEBROWSING_ENABLED = false
const CONFIG_STATS_ENABLED = true
const CONFIG_STATS_INTERVAL = 24 // hours
const CONFIG_TLS_ENABLED = false
const CONFIG_TLS_FORCE_HTTPS = false
const CONFIG_TLS_PORT_DNS_OVER_QUIC = 853
const CONFIG_TLS_PORT_DNS_OVER_TLS = 853
const CONFIG_TLS_PORT_HTTPS = 443
const CONFIG_TLS_SERVE_PLAIN_DNS = true
const LIST_FILTER_ENABLED = true
adguard_list_filter defaults
const LIST_FILTER_WHITELIST = false
const MAX_TIMEOUT int = 60
define a max AdGuard Home client timeout
const SAFE_SEARCH_ENABLED = false
Variables ¶
var CONFIG_DNS_BLOCKED_HOSTS = []string{"version.bind", "id.server", "hostname.bind"}
var CONFIG_DNS_BOOTSTRAP = []string{"9.9.9.10", "149.112.112.10", "2620:fe::10", "2620:fe::fe:10"}
var CONFIG_DNS_UPSTREAM = []string{"https://dns10.quad9.net/dns-query"}
Functions ¶
func NewClientDataSource ¶
func NewClientDataSource() datasource.DataSource
NewClientDataSource is a helper function to simplify the provider implementation
func NewClientResource ¶
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
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
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
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
NewUserRulesResource is a helper function to simplify the provider implementation
Types ¶
type AllTypesValidator ¶ added in v0.7.0
type AllTypesValidator interface { validator.Bool validator.Float64 validator.Int64 validator.List validator.Map validator.Number validator.Object validator.Set validator.String }
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 (o AlsoRequiresNOfValidator) Validate(ctx context.Context, req AlsoRequiresNOfValidatorRequest, resp *AlsoRequiresNOfValidatorResponse)
func (AlsoRequiresNOfValidator) ValidateBool ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AlsoRequiresNOfValidator) ValidateFloat64 ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AlsoRequiresNOfValidator) ValidateInt64 ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AlsoRequiresNOfValidator) ValidateList ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AlsoRequiresNOfValidator) ValidateMap ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AlsoRequiresNOfValidator) ValidateNumber ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AlsoRequiresNOfValidator) ValidateObject ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AlsoRequiresNOfValidator) ValidateSet ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AlsoRequiresNOfValidator) ValidateString ¶ added in v0.7.0
func (o AlsoRequiresNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AlsoRequiresNOfValidatorRequest ¶ added in v0.7.0
type AlsoRequiresNOfValidatorResponse ¶ added in v0.7.0
type AlsoRequiresNOfValidatorResponse struct {
Diagnostics diag.Diagnostics
}
Source Files ¶
- client_common.go
- client_data_source.go
- client_defaults.go
- client_resource.go
- common.go
- common_defaults.go
- config_common.go
- config_data_source.go
- config_defaults.go
- config_resource.go
- list_filter_data_source.go
- list_filter_defaults.go
- list_filter_resource.go
- provider.go
- rewrite_data_source.go
- rewrite_resource.go
- user_rules_data_source.go
- user_rules_resource.go
- utils.go
- validator_also_requires.go
- validator_blocked_services.go
- validator_blocking_mode.go
- validator_dns_encryption.go
- validator_local_ptr.go
- validator_safe_search_services.go