Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdguardProvider ¶
func NewAdguardProvider(domainFilter endpoint.DomainFilter, config *Configuration) (provider.Provider, error)
NewAdguardProvider initializes a new provider
Types ¶
type Client ¶
type Client interface { GetFilteringRules(ctx context.Context) ([]string, error) SetFilteringRules(ctx context.Context, rules []string) error }
Client interface for interacting with Adguard See the OpenAPI spec: https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/openapi/openapi.yaml
type Configuration ¶
type Configuration struct { URL string `env:"ADGUARD_URL,notEmpty"` User string `env:"ADGUARD_USER"` Password string `env:"ADGUARD_PASSWORD"` DryRun bool `env:"DRY_RUN" envDefault:"false"` }
Configuration holds configuration from environmental variables
type Provider ¶
type Provider struct { provider.BaseProvider // contains filtered or unexported fields }
Provider type for interfacing with Adguard
func (*Provider) ApplyChanges ¶
ApplyChanges syncs the desired state with Adguard
Click to show internal directories.
Click to hide internal directories.