README ¶
datasources
import "github.com/SuperBuker/terraform-provider-dns-he-net/internal/datasources"
Index
- Variables
- func NewA() datasource.DataSource
- func NewAAAA() datasource.DataSource
- func NewAFSDB() datasource.DataSource
- func NewALIAS() datasource.DataSource
- func NewAccount() datasource.DataSource
- func NewCAA() datasource.DataSource
- func NewCNAME() datasource.DataSource
- func NewHINFO() datasource.DataSource
- func NewLOC() datasource.DataSource
- func NewMX() datasource.DataSource
- func NewNAPTR() datasource.DataSource
- func NewNS() datasource.DataSource
- func NewPTR() datasource.DataSource
- func NewRP() datasource.DataSource
- func NewRecordIndex() datasource.DataSource
- func NewSOA() datasource.DataSource
- func NewSPF() datasource.DataSource
- func NewSRV() datasource.DataSource
- func NewSSHFP() datasource.DataSource
- func NewTXT() datasource.DataSource
- func NewZone() datasource.DataSource
- func NewZoneIndex() datasource.DataSource
- func configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) (*client.Client, bool)
- func readRecord(ctx context.Context, cli *client.Client, ID types.Int64, zoneID types.Int64, typ string, resp *datasource.ReadResponse) (models.RecordX, bool)
- type a
- func (d *a) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (a) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d a) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (a) Schema(ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type aaaa
- func (d *aaaa) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (aaaa) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d aaaa) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (aaaa) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type account
- func (d *account) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (account) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d account) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (account) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type accountModel
- type afsdb
- func (d *afsdb) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (afsdb) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d afsdb) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (afsdb) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type alias
- func (d *alias) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (alias) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d alias) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (alias) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type caa
- func (d *caa) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (caa) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d caa) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (caa) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type cname
- func (d *cname) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (cname) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d cname) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (cname) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type hinfo
- func (d *hinfo) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (hinfo) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d hinfo) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (hinfo) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type loc
- func (d *loc) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (loc) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d loc) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (loc) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type mx
- func (d *mx) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (mx) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d mx) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (mx) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type naptr
- func (d *naptr) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (naptr) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d naptr) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (naptr) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ns
- func (d *ns) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (ns) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d ns) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (ns) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ptr
- func (d *ptr) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (ptr) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d ptr) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (ptr) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type recordModel
- type records
- func (d *records) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (records) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d records) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (records) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type recordsModel
- type rp
- func (d *rp) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (rp) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d rp) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (rp) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type soa
- func (d *soa) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (soa) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d soa) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (soa) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type spf
- func (d *spf) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (spf) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d spf) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (spf) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type srv
- func (d *srv) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (srv) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d srv) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (srv) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type sshfp
- func (d *sshfp) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (sshfp) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d sshfp) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (sshfp) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type txt
- func (d *txt) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (txt) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d txt) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (txt) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type zone
- func (d *zone) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (zone) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d zone) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (zone) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type zoneModel
- type zones
- func (d *zones) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
- func (zones) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
- func (d zones) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (zones) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type zonesModel
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
Documentation ¶
Index ¶
- func NewA() datasource.DataSource
- func NewAAAA() datasource.DataSource
- func NewAFSDB() datasource.DataSource
- func NewALIAS() datasource.DataSource
- func NewAccount() datasource.DataSource
- func NewCAA() datasource.DataSource
- func NewCNAME() datasource.DataSource
- func NewHINFO() datasource.DataSource
- func NewLOC() datasource.DataSource
- func NewMX() datasource.DataSource
- func NewNAPTR() datasource.DataSource
- func NewNS() datasource.DataSource
- func NewPTR() datasource.DataSource
- func NewRP() datasource.DataSource
- func NewRecordIndex() datasource.DataSource
- func NewSOA() datasource.DataSource
- func NewSPF() datasource.DataSource
- func NewSRV() datasource.DataSource
- func NewSSHFP() datasource.DataSource
- func NewTXT() datasource.DataSource
- func NewZone() datasource.DataSource
- func NewZoneIndex() datasource.DataSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccount ¶
func NewAccount() datasource.DataSource
NewAccount initialises the Account DataSource.
func NewRecordIndex ¶
func NewRecordIndex() datasource.DataSource
NewRecordIndex initialises the RecordIndex DataSource.
func NewZoneIndex ¶
func NewZoneIndex() datasource.DataSource
NewZoneIndex initialises the ZoneIndex DataSource.
Types ¶
This section is empty.