Documentation ¶
Index ¶
- func RecordCommand() *core.Command
- func Records(fs ...Filter) (dns.RecordReadList, error)
- func RecordsGetCmd() *core.Command
- func RecordsProperty[V any](f func(dns.RecordRead) V, fs ...Filter) []V
- func Resolve(nameOrId string) (string, error)
- func ZonesRecordsDeleteCmd() *core.Command
- func ZonesRecordsFindByIdCmd() *core.Command
- func ZonesRecordsPostCmd() *core.Command
- func ZonesRecordsPutCmd() *core.Command
- type Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordCommand ¶
func Records ¶
func Records(fs ...Filter) (dns.RecordReadList, error)
Records returns all records matching the given filters
func RecordsGetCmd ¶
func RecordsProperty ¶
func RecordsProperty[V any](f func(dns.RecordRead) V, fs ...Filter) []V
RecordsProperty returns a list of properties of all records matching the given filters
func Resolve ¶
Resolve resolves nameOrId (the name of a record, or the ID of a record) - to the ID of the record. If it's an ID, it's returned as is. If it's not, then it's a name, and we try to resolve it
func ZonesRecordsDeleteCmd ¶
func ZonesRecordsFindByIdCmd ¶
func ZonesRecordsPostCmd ¶
func ZonesRecordsPutCmd ¶
Types ¶
type Filter ¶
type Filter func(dns.ApiRecordsGetRequest) (dns.ApiRecordsGetRequest, error)
Click to show internal directories.
Click to hide internal directories.