Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientValidation = errors.New("invalid client configuration")
View Source
var (
ErrorLocalCNAMENotFound = errors.New("local CNAME record not found")
)
View Source
var (
ErrorLocalDNSNotFound = errors.New("local dns record not found")
)
Functions ¶
This section is empty.
Types ¶
type AdBlocker ¶ added in v0.0.4
type AdBlocker interface { // Get returns the ad blocker status Get(ctx context.Context) (*AdBlockerStatus, error) // Update updates the ad blocker status (enabled, disabled) Update(ctx context.Context, opts AdBlockerStatusOptions) (*AdBlockerStatus, error) }
type AdBlockerStatus ¶ added in v0.0.4
type AdBlockerStatus struct {
Enabled bool
}
AdBlockerStatus is an object representing the ad blocker status
type AdBlockerStatusOptions ¶ added in v0.0.4
type CNAMERecord ¶
type CNAMERecordList ¶
type CNAMERecordList []CNAMERecord
type Client ¶
type Client struct { LocalDNS LocalDNS LocalCNAME LocalCNAME AdBlocker AdBlocker Version Version // contains filtered or unexported fields }
type ComponentVersions ¶ added in v0.0.4
type ComponentVersions struct { CoreUpdate bool `json:"core_update,omitempty"` WebUpdate bool `json:"web_update,omitempty"` FTLUpdate bool `json:"FTL_update,omitempty"` CoreCurrent string `json:"core_current,omitempty"` WebCurrent string `json:"web_current,omitempty"` FTLCurrent string `json:"FTL_current,omitempty"` CoreLatest string `json:"core_latest,omitempty"` WebLatest string `json:"web_latest,omitempty"` FTLLatest string `json:"FTL_latest,omitempty"` CoreBranch string `json:"core_branch,omitempty"` WebBranch string `json:"web_branch,omitempty"` FTLBranch string `json:"FTL_branch,omitempty"` }
type DNSRecordList ¶
type DNSRecordList []DNSRecord
type LocalCNAME ¶ added in v0.0.3
type LocalCNAME interface { // List all CNAME records. List(ctx context.Context) (CNAMERecordList, error) // Create a CNAME record. Create(ctx context.Context, domain string, target string) (*CNAMERecord, error) // Get a CNAME record by its domain. Get(ctx context.Context, domain string) (*CNAMERecord, error) // Delete a CNAME record by its domain. Delete(ctx context.Context, domain string) error }
type LocalDNS ¶ added in v0.0.3
type LocalDNS interface { // List all DNS records. List(ctx context.Context) (DNSRecordList, error) // Create a DNS record. Create(ctx context.Context, domain string, IP string) (*DNSRecord, error) // Get a DNS record by its domain. Get(ctx context.Context, domain string) (*DNSRecord, error) // Delete a DNS record by its domain. Delete(ctx context.Context, domain string) error }
Click to show internal directories.
Click to hide internal directories.