# README

datasources

import "github.com/SuperBuker/terraform-provider-dns-he-net/internal/datasources"

Index

Variables

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &a{}
    _   datasource.DataSourceWithConfigure = &a{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &aaaa{}
    _   datasource.DataSourceWithConfigure = &aaaa{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &afsdb{}
    _   datasource.DataSourceWithConfigure = &afsdb{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &a{}
    _   datasource.DataSourceWithConfigure = &alias{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &caa{}
    _   datasource.DataSourceWithConfigure = &caa{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &cname{}
    _   datasource.DataSourceWithConfigure = &cname{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &hinfo{}
    _   datasource.DataSourceWithConfigure = &hinfo{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &loc{}
    _   datasource.DataSourceWithConfigure = &loc{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &mx{}
    _   datasource.DataSourceWithConfigure = &mx{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &naptr{}
    _   datasource.DataSourceWithConfigure = &naptr{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &ns{}
    _   datasource.DataSourceWithConfigure = &ns{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &ptr{}
    _   datasource.DataSourceWithConfigure = &ptr{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &rp{}
    _   datasource.DataSourceWithConfigure = &rp{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &soa{}
    _   datasource.DataSourceWithConfigure = &soa{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &spf{}
    _   datasource.DataSourceWithConfigure = &spf{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &srv{}
    _   datasource.DataSourceWithConfigure = &srv{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &sshfp{}
    _   datasource.DataSourceWithConfigure = &sshfp{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &txt{}
    _   datasource.DataSourceWithConfigure = &txt{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &account{}
    _   datasource.DataSourceWithConfigure = &account{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &records{}
    _   datasource.DataSourceWithConfigure = &records{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &zone{}
    _   datasource.DataSourceWithConfigure = &zone{}
)

Ensure the implementation satisfies the expected interfaces.

var (
    _   datasource.DataSource              = &zones{}
    _   datasource.DataSourceWithConfigure = &zones{}
)

func NewA

func NewA() datasource.DataSource

NewA initialises the A DataSource.

func NewAAAA

func NewAAAA() datasource.DataSource

NewAAAA initialises the AAAA DataSource.

func NewAFSDB

func NewAFSDB() datasource.DataSource

NewAFSDB initialises the AFSDB DataSource.

func NewALIAS

func NewALIAS() datasource.DataSource

NewALIAS initialises the ALIAS DataSource.

func NewAccount

func NewAccount() datasource.DataSource

NewAccount initialises the Account DataSource.

func NewCAA

func NewCAA() datasource.DataSource

NewCAA initialises the CAA DataSource.

func NewCNAME

func NewCNAME() datasource.DataSource

NewCNAME initialises the CNAME DataSource.

func NewHINFO

func NewHINFO() datasource.DataSource

NewHINFO initialises the HINFO DataSource.

func NewLOC

func NewLOC() datasource.DataSource

NewLOC initialises the LOC DataSource.

func NewMX

func NewMX() datasource.DataSource

NewMX initialises the MX DataSource.

func NewNAPTR

func NewNAPTR() datasource.DataSource

NewNAPTR initialises the NAPTR DataSource.

func NewNS

func NewNS() datasource.DataSource

NewNS initialises the NS DataSource.

func NewPTR

func NewPTR() datasource.DataSource

NewPTR initialises the PTR DataSource.

func NewRP

func NewRP() datasource.DataSource

NewRP initialises the RP DataSource.

func NewRecordIndex

func NewRecordIndex() datasource.DataSource

NewRecordIndex initialises the RecordIndex DataSource.

func NewSOA

func NewSOA() datasource.DataSource

NewSOA initialises the SOA DataSource.

func NewSPF

func NewSPF() datasource.DataSource

NewSPF initialises the SPF DataSource.

func NewSRV

func NewSRV() datasource.DataSource

NewSRV initialises the SRV DataSource.

func NewSSHFP

func NewSSHFP() datasource.DataSource

NewSSHFP initialises the SSHFP DataSource.

func NewTXT

func NewTXT() datasource.DataSource

NewTXT initialises the TXT DataSource.

func NewZone

func NewZone() datasource.DataSource

NewZone initialises the Zone DataSource.

func NewZoneIndex

func NewZoneIndex() datasource.DataSource

NewZoneIndex initialises the ZoneIndex DataSource.

func configure

func configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) (*client.Client, bool)

func readRecord

func readRecord(ctx context.Context, cli *client.Client, ID types.Int64, zoneID types.Int64, typ string, resp *datasource.ReadResponse) (models.RecordX, bool)

type a

a is the data source implementation.

type a struct {
    client *client.Client
}

func (*a) Configure

func (d *a) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (a) Metadata

func (a) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (a) Read

func (d a) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (a) Schema

func (a) Schema(ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type aaaa

aaaa is the data source implementation.

type aaaa struct {
    client *client.Client
}

func (*aaaa) Configure

func (d *aaaa) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (aaaa) Metadata

func (aaaa) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (aaaa) Read

func (d aaaa) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (aaaa) Schema

func (aaaa) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type account

account is the data source implementation.

type account struct {
    client *client.Client
}

func (*account) Configure

func (d *account) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (account) Metadata

func (account) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (account) Read

func (d account) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (account) Schema

func (account) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type accountModel

accountModel maps the data source schema data.

type accountModel struct {
    ID types.String `tfsdk:"id"`
}

type afsdb

afsdb is the data source implementation.

type afsdb struct {
    client *client.Client
}

func (*afsdb) Configure

func (d *afsdb) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (afsdb) Metadata

func (afsdb) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (afsdb) Read

func (d afsdb) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (afsdb) Schema

func (afsdb) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type alias

alias is the data source implementation.

type alias struct {
    client *client.Client
}

func (*alias) Configure

func (d *alias) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (alias) Metadata

func (alias) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (alias) Read

func (d alias) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (alias) Schema

func (alias) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type caa

caa is the data source implementation.

type caa struct {
    client *client.Client
}

func (*caa) Configure

func (d *caa) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (caa) Metadata

func (caa) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (caa) Read

func (d caa) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (caa) Schema

func (caa) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type cname

cname is the data source implementation.

type cname struct {
    client *client.Client
}

func (*cname) Configure

func (d *cname) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (cname) Metadata

func (cname) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (cname) Read

func (d cname) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (cname) Schema

func (cname) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type hinfo

hinfo is the data source implementation.

type hinfo struct {
    client *client.Client
}

func (*hinfo) Configure

func (d *hinfo) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (hinfo) Metadata

func (hinfo) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (hinfo) Read

func (d hinfo) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (hinfo) Schema

func (hinfo) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type loc

loc is the data source implementation.

type loc struct {
    client *client.Client
}

func (*loc) Configure

func (d *loc) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (loc) Metadata

func (loc) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (loc) Read

func (d loc) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (loc) Schema

func (loc) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type mx

mx is the data source implementation.

type mx struct {
    client *client.Client
}

func (*mx) Configure

func (d *mx) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (mx) Metadata

func (mx) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (mx) Read

func (d mx) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (mx) Schema

func (mx) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type naptr

naptr is the data source implementation.

type naptr struct {
    client *client.Client
}

func (*naptr) Configure

func (d *naptr) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (naptr) Metadata

func (naptr) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (naptr) Read

func (d naptr) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (naptr) Schema

func (naptr) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type ns

ns is the data source implementation.

type ns struct {
    client *client.Client
}

func (*ns) Configure

func (d *ns) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (ns) Metadata

func (ns) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (ns) Read

func (d ns) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (ns) Schema

func (ns) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type ptr

ptr is the data source implementation.

type ptr struct {
    client *client.Client
}

func (*ptr) Configure

func (d *ptr) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (ptr) Metadata

func (ptr) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (ptr) Read

func (d ptr) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (ptr) Schema

func (ptr) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type recordModel

type recordModel struct {
    ID         types.Int64  `tfsdk:"id"`
    ZoneID     types.Int64  `tfsdk:"zone_id"`
    Domain     types.String `tfsdk:"domain"`
    RecordType types.String `tfsdk:"record_type"`
    TTL        types.Int64  `tfsdk:"ttl"`
    Priority   types.Int64  `tfsdk:"priority"`
    Data       types.String `tfsdk:"data"`
    Dynamic    types.Bool   `tfsdk:"dynamic"`
    Locked     types.Bool   `tfsdk:"locked"`
}

func (*recordModel) setRecord

func (a *recordModel) setRecord(record models.Record) error

type records

records is the data source implementation.

type records struct {
    client *client.Client
}

func (*records) Configure

func (d *records) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (records) Metadata

func (records) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (records) Read

func (d records) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (records) Schema

func (records) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type recordsModel

recordsModel maps the data source schema data.

type recordsModel struct {
    ID      types.Int64   `tfsdk:"id"`
    Records []recordModel `tfsdk:"records"`
}

type rp

rp is the data source implementation.

type rp struct {
    client *client.Client
}

func (*rp) Configure

func (d *rp) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (rp) Metadata

func (rp) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (rp) Read

func (d rp) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (rp) Schema

func (rp) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type soa

soa is the data source implementation.

type soa struct {
    client *client.Client
}

func (*soa) Configure

func (d *soa) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (soa) Metadata

func (soa) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (soa) Read

func (d soa) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (soa) Schema

func (soa) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type spf

spf is the data source implementation.

type spf struct {
    client *client.Client
}

func (*spf) Configure

func (d *spf) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (spf) Metadata

func (spf) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (spf) Read

func (d spf) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (spf) Schema

func (spf) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type srv

srv is the data source implementation.

type srv struct {
    client *client.Client
}

func (*srv) Configure

func (d *srv) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (srv) Metadata

func (srv) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (srv) Read

func (d srv) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (srv) Schema

func (srv) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type sshfp

sshfp is the data source implementation.

type sshfp struct {
    client *client.Client
}

func (*sshfp) Configure

func (d *sshfp) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (sshfp) Metadata

func (sshfp) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (sshfp) Read

func (d sshfp) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (sshfp) Schema

func (sshfp) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type txt

txt is the data source implementation.

type txt struct {
    client *client.Client
}

func (*txt) Configure

func (d *txt) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (txt) Metadata

func (txt) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (txt) Read

func (d txt) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (txt) Schema

func (txt) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type zone

zone is the data source implementation.

type zone struct {
    client *client.Client
}

func (*zone) Configure

func (d *zone) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (zone) Metadata

func (zone) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (zone) Read

func (d zone) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (zone) Schema

func (zone) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type zoneModel

zoneModel maps the data source schema data.

type zoneModel struct {
    ID   types.Int64  `tfsdk:"id"`
    Name types.String `tfsdk:"name"`
}

func (*zoneModel) setZone

func (d *zoneModel) setZone(zone models.Zone) error

type zones

zones is the data source implementation.

type zones struct {
    client *client.Client
}

func (*zones) Configure

func (d *zones) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure adds the provider configured client to the data source.

func (zones) Metadata

func (zones) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)

Metadata returns the data source type name.

func (zones) Read

func (d zones) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)

Read refreshes the Terraform state with the latest data.

func (zones) Schema

func (zones) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)

Schema defines the schema for the data source.

type zonesModel

zonesModel maps the data source schema data.

type zonesModel struct {
    ID    types.String `tfsdk:"id"`
    Zones []zoneModel  `tfsdk:"zones"`
}

Generated by gomarkdoc

# Functions

NewA initialises the A DataSource.
NewAAAA initialises the AAAA DataSource.
NewAccount initialises the Account DataSource.
NewAFSDB initialises the AFSDB DataSource.
NewALIAS initialises the ALIAS DataSource.
NewCAA initialises the CAA DataSource.
NewCNAME initialises the CNAME DataSource.
NewHINFO initialises the HINFO DataSource.
NewLOC initialises the LOC DataSource.
NewMX initialises the MX DataSource.
NewNAPTR initialises the NAPTR DataSource.
NewNS initialises the NS DataSource.
NewPTR initialises the PTR DataSource.
NewRecordIndex initialises the RecordIndex DataSource.
NewRP initialises the RP DataSource.
NewSOA initialises the SOA DataSource.
NewSPF initialises the SPF DataSource.
NewSRV initialises the SRV DataSource.
NewSSHFP initialises the SSHFP DataSource.
NewTXT initialises the TXT DataSource.
NewZone initialises the Zone DataSource.
NewZoneIndex initialises the ZoneIndex DataSource.