Documentation
¶
Index ¶
- type DS
- func (handle *DS) CopyFromLegacyFields(rec *models.RecordConfig)
- func (handle *DS) CopyToLegacyFields(rec *models.RecordConfig)
- func (handle *DS) FromArgs(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, args []any) error
- func (handle *DS) FromStruct(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, name string, ...) error
- func (handle *DS) Name() string
- type RP
- func (handle *RP) CopyFromLegacyFields(rec *models.RecordConfig)
- func (handle *RP) CopyToLegacyFields(rec *models.RecordConfig)
- func (handle *RP) FromArgs(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, args []any) error
- func (handle *RP) FromStruct(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, name string, ...) error
- func (handle *RP) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DS ¶
DS RR.
func (*DS) CopyFromLegacyFields ¶
func (handle *DS) CopyFromLegacyFields(rec *models.RecordConfig)
CopyFromLegacyFields uses the the legacy fields to populate .F
func (*DS) CopyToLegacyFields ¶
func (handle *DS) CopyToLegacyFields(rec *models.RecordConfig)
CopyToLegacyFields populates the legacy fields of the RecordConfig using the fields in .F.
func (*DS) FromArgs ¶
func (handle *DS) FromArgs(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, args []any) error
FromArgs fills in the RecordConfig from []any, which is typically from a parsed config file.
func (*DS) FromStruct ¶
func (handle *DS) FromStruct(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, name string, fields any) error
FromStruct fills in the RecordConfig from a struct, typically from an API response.
type RP ¶
RP RR. See RFC 1138, Section 2.2.
func (*RP) CopyFromLegacyFields ¶ added in v4.32.0
func (handle *RP) CopyFromLegacyFields(rec *models.RecordConfig)
CopyFromLegacyFields populates the legacy fields of the RecordConfig using the fields in .F.
func (*RP) CopyToLegacyFields ¶
func (handle *RP) CopyToLegacyFields(rec *models.RecordConfig)
CopyToLegacyFields populates the legacy fields of the RecordConfig using the fields in .F.
func (*RP) FromArgs ¶
func (handle *RP) FromArgs(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, args []any) error
FromArgs fills in the RecordConfig from []any, which is typically from a parsed config file.
func (*RP) FromStruct ¶
func (handle *RP) FromStruct(dcn *domaintags.DomainNameVarieties, rec *models.RecordConfig, name string, fields any) error
FromStruct fills in the RecordConfig from a struct, typically from an API response.