MCPcopy
hub / github.com/DNSControl/dnscontrol / RType

Interface RType

pkg/rtypecontrol/rtypecontrol.go:12–22  ·  view source on GitHub ↗

RType is an interface that defines the methods required for a DNS record type.

Source from the content-addressed store, hash-verified

10
11// RType is an interface that defines the methods required for a DNS record type.
12type RType interface {
13 // Returns the name of the rtype ("A", "MX", etc.)
14 Name() string
15
16 // RecordConfig factory. Updates a RecordConfig's fields based on args.
17 FromArgs(*domaintags.DomainNameVarieties, *models.RecordConfig, []any) error
18 FromStruct(*domaintags.DomainNameVarieties, *models.RecordConfig, string, any) error
19
20 CopyToLegacyFields(*models.RecordConfig)
21 CopyFromLegacyFields(*models.RecordConfig)
22}
23
24// Func is a map of registered rtypes.
25var Func map[string]RType = map[string]RType{}

Callers 9

ListZonesMethod · 0.65
testFormatFunction · 0.65
TestParsedFilesFunction · 0.65
RegisterFunction · 0.65
flattener.jsFile · 0.65
NewRecordConfigFromRawFunction · 0.65
FixLegacyRecordFunction · 0.65

Implementers 5

CfRedirectproviders/cloudflare/rtypes/cfsinglere
CfTempRedirectproviders/cloudflare/rtypes/cfsinglere
SingleRedirectConfigproviders/cloudflare/rtypes/cfsinglere
RPpkg/rtype/rp.go
DSpkg/rtype/ds.go

Calls

no outgoing calls

Tested by

no test coverage detected