dns

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Cred    auth.Credential
	Regions []string
	Client  *api.Client
}

Driver enumerates Huawei Cloud DNS public zones and their record sets, returning them as the cloudlist `domain` asset.

Private DNS zones are out of scope for now: their endpoint differs and the CSPM signal value (DNS shadowing, dangling CNAMEs) is concentrated on the internet-facing public zones.

func (*Driver) GetDomains

func (d *Driver) GetDomains(ctx context.Context) ([]schema.Domain, error)

GetDomains returns one schema.Domain per zone, with records flattened over all record sets. A failure on a single zone's record-set listing is recorded but does not abort the whole walk; a top-level zone-listing failure returns an error so the caller can surface it via list.AddError.

Jump to

Keyboard shortcuts

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