README ¶
resources
import "github.com/SuperBuker/terraform-provider-dns-he-net/internal/resources"
Index
- Variables
- func NewA() resource.Resource
- func NewAAAA() resource.Resource
- func NewAFSDB() resource.Resource
- func NewALIAS() resource.Resource
- func NewCAA() resource.Resource
- func NewCNAME() resource.Resource
- func NewDDNSKey() resource.Resource
- func NewHINFO() resource.Resource
- func NewLOC() resource.Resource
- func NewMX() resource.Resource
- func NewNAPTR() resource.Resource
- func NewNS() resource.Resource
- func NewPTR() resource.Resource
- func NewRP() resource.Resource
- func NewSPF() resource.Resource
- func NewSRV() resource.Resource
- func NewSSHFP() resource.Resource
- func NewTXT() resource.Resource
- func configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) (*client.Client, bool)
- func importRecordState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func readRecord(ctx context.Context, cli *client.Client, ID types.Int64, zoneID types.Int64, typ string, resp *resource.ReadResponse) (models.RecordX, bool)
- type a
- func (r *a) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r a) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r a) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (a) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (a) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r a) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (a) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r a) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (a) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
- type aaaa
- func (r *aaaa) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r aaaa) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r aaaa) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (aaaa) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (aaaa) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r aaaa) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (aaaa) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r aaaa) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (aaaa) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
- type afsdb
- func (r *afsdb) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r afsdb) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r afsdb) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (afsdb) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (afsdb) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r afsdb) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (afsdb) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r afsdb) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type alias
- func (r *alias) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r alias) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r alias) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (alias) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (alias) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r alias) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (alias) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r alias) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type caa
- func (r *caa) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r caa) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r caa) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (caa) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (caa) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r caa) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (caa) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r caa) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type cname
- func (r *cname) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r cname) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r cname) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (cname) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (cname) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r cname) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (cname) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r cname) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ddnsKey
- func (dk *ddnsKey) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (dk ddnsKey) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (ddnsKey) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (ddnsKey) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (ddnsKey) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
- func (dk ddnsKey) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (ddnsKey) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (dk ddnsKey) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ddnsKeyModel
- type hinfo
- func (r *hinfo) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r hinfo) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r hinfo) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (hinfo) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (hinfo) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r hinfo) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (hinfo) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r hinfo) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type loc
- func (r *loc) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r loc) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r loc) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (loc) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (loc) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r loc) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (loc) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r loc) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type mx
- func (r *mx) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r mx) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r mx) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (mx) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (mx) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r mx) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (mx) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r mx) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type naptr
- func (r *naptr) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r naptr) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r naptr) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (naptr) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (naptr) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r naptr) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (naptr) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r naptr) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ns
- func (r *ns) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r ns) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r ns) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (ns) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (ns) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r ns) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (ns) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r ns) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ptr
- func (r *ptr) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r ptr) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r ptr) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (ptr) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (ptr) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r ptr) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (ptr) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r ptr) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type rp
- func (r *rp) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r rp) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r rp) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (rp) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (rp) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r rp) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (rp) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r rp) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type spf
- func (r *spf) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r spf) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r spf) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (spf) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (spf) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r spf) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (spf) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r spf) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type srv
- func (r *srv) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r srv) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r srv) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (srv) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (srv) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r srv) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (srv) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r srv) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type sshfp
- func (r *sshfp) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r sshfp) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r sshfp) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (sshfp) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (sshfp) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r sshfp) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (sshfp) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r sshfp) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type txt
- func (r *txt) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
- func (r txt) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r txt) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (txt) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
- func (txt) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r txt) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (txt) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r txt) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (txt) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
Variables
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &a{}
_ resource.ResourceWithConfigure = &a{}
_ resource.ResourceWithImportState = &a{}
_ resource.ResourceWithConfigure = &a{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &aaaa{}
_ resource.ResourceWithConfigure = &aaaa{}
_ resource.ResourceWithImportState = &aaaa{}
_ resource.ResourceWithConfigure = &aaaa{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &afsdb{}
_ resource.ResourceWithConfigure = &afsdb{}
_ resource.ResourceWithImportState = &afsdb{}
_ resource.ResourceWithConfigure = &afsdb{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &alias{}
_ resource.ResourceWithConfigure = &alias{}
_ resource.ResourceWithImportState = &alias{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &caa{}
_ resource.ResourceWithConfigure = &caa{}
_ resource.ResourceWithImportState = &caa{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &cname{}
_ resource.ResourceWithConfigure = &cname{}
_ resource.ResourceWithImportState = &cname{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &hinfo{}
_ resource.ResourceWithConfigure = &hinfo{}
_ resource.ResourceWithImportState = &hinfo{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &loc{}
_ resource.ResourceWithConfigure = &loc{}
_ resource.ResourceWithImportState = &loc{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &mx{}
_ resource.ResourceWithConfigure = &mx{}
_ resource.ResourceWithImportState = &mx{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &naptr{}
_ resource.ResourceWithConfigure = &naptr{}
_ resource.ResourceWithImportState = &naptr{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &ns{}
_ resource.ResourceWithConfigure = &ns{}
_ resource.ResourceWithImportState = &ns{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &ptr{}
_ resource.ResourceWithConfigure = &ptr{}
_ resource.ResourceWithImportState = &ptr{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &rp{}
_ resource.ResourceWithConfigure = &rp{}
_ resource.ResourceWithImportState = &rp{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &spf{}
_ resource.ResourceWithConfigure = &spf{}
_ resource.ResourceWithImportState = &spf{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &srv{}
_ resource.ResourceWithConfigure = &srv{}
_ resource.ResourceWithImportState = &srv{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &sshfp{}
_ resource.ResourceWithConfigure = &sshfp{}
_ resource.ResourceWithImportState = &sshfp{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &txt{}
_ resource.ResourceWithConfigure = &txt{}
_ resource.ResourceWithImportState = &txt{}
_ resource.ResourceWithConfigure = &txt{}
)
Ensure the implementation satisfies the expected interfaces.
var (
_ resource.Resource = &ddnsKey{}
_ resource.ResourceWithConfigure = &ddnsKey{}
_ resource.ResourceWithModifyPlan = &ddnsKey{}
)
var afsdbRegexp = regexp.MustCompile(`^[1,2] (?:[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]\.)+[a-zA-Z]{2,}$`)
var afsdbValidator = stringvalidator.RegexMatches(afsdbRegexp, "value must be a valid AFSDB record")
var caaRegexp = regexp.MustCompile(`^(?:0|128) (?:iodef|issue|issuewild) "[^"]*"$`) // Very light regexp, can be hardened
var caaValidator = stringvalidator.RegexMatches(caaRegexp, "value must be a valid CAA record")
var domainRegexp = regexp.MustCompile(`^(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-\_]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$`)
var domainValidator = stringvalidator.RegexMatches(domainRegexp, "value must be a valid domain name")
var hinfoRegexp = regexp.MustCompile(`^"[^ ]+ [^ ]+"$`) // Very light regexp, can be hardened
var hinfoValidator = stringvalidator.RegexMatches(hinfoRegexp, "value must be a valid HINFO record")
var ipv4Regexp = regexp.MustCompile(`^(?:(?:25[0-5]|(?:2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$`)
var ipv4Validator = stringvalidator.RegexMatches(ipv4Regexp, "value must be a valid IPv4 address")
var ipv6Regexp = regexp.MustCompile(`^(?:[0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|(?:[0-9a-fA-F]{1,4}:){1,7}:|(?:[0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|(?:[0-9a-fA-F]{1,4}:){1,5}(?::[0-9a-fA-F]{1,4}){1,2}|(?:[0-9a-fA-F]{1,4}:){1,4}(?::[0-9a-fA-F]{1,4}){1,3}|(?:[0-9a-fA-F]{1,4}:){1,3}(?::[0-9a-fA-F]{1,4}){1,4}|(?:[0-9a-fA-F]{1,4}:){1,2}(?::[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:(?:(?::[0-9a-fA-F]{1,4}){1,6})|:(?:(?::[0-9a-fA-F]{1,4}){1,7}|:)$`)
var ipv6Validator = stringvalidator.RegexMatches(ipv6Regexp, "value must be a valid IPv6 address")
var locRegexp = regexp.MustCompile(`^(?:[\d]+(?:\.[\d]+)? ){3}[NS] (?:[\d]+(?:\.[\d]+)? ){3}[EW](?: [\d]+(?:\.[\d]+)?m){4}$`)
var locValidator = stringvalidator.RegexMatches(locRegexp, "value must be a valid LOC record")
var naptrRegexp = regexp.MustCompile(`^\d+ \d+ "[SAUP]?" "[^"]*" "[^"]*" [^" ]+$`) // Very light regexp, can be hardened
var naptrValidator = stringvalidator.RegexMatches(naptrRegexp, "value must be a valid NAPTR record")
var rpRegexp = regexp.MustCompile(`^(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-\_]{0,61}[a-zA-Z0-9])?\.){2,}[a-zA-Z]{2,} (?:[a-zA-Z0-9](?:[a-zA-Z0-9\-\_]{0,61}[a-zA-Z0-9])?\.){2,}[a-zA-Z]{2,}$`)
var rpValidator = stringvalidator.RegexMatches(rpRegexp, "value must be a valid RP record")
var spfRegexp = regexp.MustCompile(`^"v=spf1 .+"$`)
var spfValidator = stringvalidator.RegexMatches(spfRegexp, "value must be a valid SPF record")
var srvDomainValidator = stringvalidator.RegexMatches(srvRegexp, "value must be a valid SRV domain name")
var srvRegexp = regexp.MustCompile(`^_[a-zA-Z0-9]+\._(?:tcp|udp)\.(?:[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]\.)+[a-zA-Z]{2,}$`)
var sshfpRegexp = regexp.MustCompile(`^[12346] [12] [a-fA-F0-9]+$`) // Case insensitive ¯\_(ツ)_/¯
var sshfpValidator = stringvalidator.RegexMatches(sshfpRegexp, "value must be a valid SSHFP record")
var txtRegexp = regexp.MustCompile(`^"[ -~]*"$`)
var txtValidator = stringvalidator.RegexMatches(txtRegexp, "value must be a valid TXT record")
func NewA
func NewA() resource.Resource
NewA initialises the A Resource.
func NewAAAA
func NewAAAA() resource.Resource
NewAAAA initialises the A Resource.
func NewAFSDB
func NewAFSDB() resource.Resource
NewAFSDB initialises the A Resource.
func NewALIAS
func NewALIAS() resource.Resource
NewALIAS initialises the A Resource.
func NewCAA
func NewCAA() resource.Resource
NewCAA initialises the A Resource.
func NewCNAME
func NewCNAME() resource.Resource
NewCNAME initialises the A Resource.
func NewDDNSKey
func NewDDNSKey() resource.Resource
NewAccount initialises the DDNS Key Resource.
func NewHINFO
func NewHINFO() resource.Resource
NewHINFO initialises the A Resource.
func NewLOC
func NewLOC() resource.Resource
NewLOC initialises the A Resource.
func NewMX
func NewMX() resource.Resource
NewMX initialises the A Resource.
func NewNAPTR
func NewNAPTR() resource.Resource
NewNAPTR initialises the A Resource.
func NewNS
func NewNS() resource.Resource
NewNS initialises the A Resource.
func NewPTR
func NewPTR() resource.Resource
NewPTR initialises the A Resource.
func NewRP
func NewRP() resource.Resource
NewRP initialises the A Resource.
func NewSPF
func NewSPF() resource.Resource
NewSPF initialises the A Resource.
func NewSRV
func NewSRV() resource.Resource
NewSRV initialises the A Resource.
func NewSSHFP
func NewSSHFP() resource.Resource
NewSSHFP initialises the A Resource.
func NewTXT
func NewTXT() resource.Resource
NewTXT initialises the A Resource.
func configure
func configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) (*client.Client, bool)
func importRecordState
func importRecordState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func readRecord
func readRecord(ctx context.Context, cli *client.Client, ID types.Int64, zoneID types.Int64, typ string, resp *resource.ReadResponse) (models.RecordX, bool)
type a
a is the data source implementation.
type a struct {
client *client.Client
}
func (*a) Configure
func (r *a) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (a) Create
func (r a) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (a) Delete
func (r a) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (a) ImportState
func (a) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (a) Metadata
func (a) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (a) Read
func (r a) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (a) Schema
func (a) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (a) Update
func (r a) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
func (a) ValidateConfig
func (a) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type aaaa
aaaa is the data source implementation.
type aaaa struct {
client *client.Client
}
func (*aaaa) Configure
func (r *aaaa) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (aaaa) Create
func (r aaaa) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (aaaa) Delete
func (r aaaa) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (aaaa) ImportState
func (aaaa) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (aaaa) Metadata
func (aaaa) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (aaaa) Read
func (r aaaa) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (aaaa) Schema
func (aaaa) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (aaaa) Update
func (r aaaa) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
func (aaaa) ValidateConfig
func (aaaa) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type afsdb
afsdb is the data source implementation.
type afsdb struct {
client *client.Client
}
func (*afsdb) Configure
func (r *afsdb) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (afsdb) Create
func (r afsdb) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (afsdb) Delete
func (r afsdb) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (afsdb) ImportState
func (afsdb) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (afsdb) Metadata
func (afsdb) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (afsdb) Read
func (r afsdb) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (afsdb) Schema
func (afsdb) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (afsdb) Update
func (r afsdb) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type alias
alias is the data source implementation.
type alias struct {
client *client.Client
}
func (*alias) Configure
func (r *alias) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (alias) Create
func (r alias) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (alias) Delete
func (r alias) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (alias) ImportState
func (alias) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (alias) Metadata
func (alias) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (alias) Read
func (r alias) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (alias) Schema
func (alias) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (alias) Update
func (r alias) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type caa
caa is the data source implementation.
type caa struct {
client *client.Client
}
func (*caa) Configure
func (r *caa) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (caa) Create
func (r caa) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (caa) Delete
func (r caa) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (caa) ImportState
func (caa) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (caa) Metadata
func (caa) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (caa) Read
func (r caa) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (caa) Schema
func (caa) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (caa) Update
func (r caa) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type cname
cname is the data source implementation.
type cname struct {
client *client.Client
}
func (*cname) Configure
func (r *cname) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (cname) Create
func (r cname) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (cname) Delete
func (r cname) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (cname) ImportState
func (cname) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (cname) Metadata
func (cname) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (cname) Read
func (r cname) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (cname) Schema
func (cname) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (cname) Update
func (r cname) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type ddnsKey
account is the data source implementation.
type ddnsKey struct {
client *client.Client
}
func (*ddnsKey) Configure
func (dk *ddnsKey) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (ddnsKey) Create
func (dk ddnsKey) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (ddnsKey) Delete
func (ddnsKey) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (ddnsKey) Metadata
func (ddnsKey) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (ddnsKey) ModifyPlan
func (ddnsKey) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (ddnsKey) Read
func (dk ddnsKey) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (ddnsKey) Schema
func (ddnsKey) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (ddnsKey) Update
func (dk ddnsKey) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type ddnsKeyModel
accountModel maps the data source schema data.
type ddnsKeyModel struct {
ID types.String `tfsdk:"id"`
Domain types.String `tfsdk:"domain"`
ZoneID types.Int64 `tfsdk:"zone_id"`
Key types.String `tfsdk:"key"`
}
func (ddnsKeyModel) get
func (dk ddnsKeyModel) get() models.DDNSKey
type hinfo
hinfo is the data source implementation.
type hinfo struct {
client *client.Client
}
func (*hinfo) Configure
func (r *hinfo) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (hinfo) Create
func (r hinfo) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (hinfo) Delete
func (r hinfo) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (hinfo) ImportState
func (hinfo) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (hinfo) Metadata
func (hinfo) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (hinfo) Read
func (r hinfo) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (hinfo) Schema
func (hinfo) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (hinfo) Update
func (r hinfo) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type loc
loc is the data source implementation.
type loc struct {
client *client.Client
}
func (*loc) Configure
func (r *loc) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (loc) Create
func (r loc) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (loc) Delete
func (r loc) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (loc) ImportState
func (loc) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (loc) Metadata
func (loc) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (loc) Read
func (r loc) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (loc) Schema
func (loc) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (loc) Update
func (r loc) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type mx
mx is the data source implementation.
type mx struct {
client *client.Client
}
func (*mx) Configure
func (r *mx) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (mx) Create
func (r mx) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (mx) Delete
func (r mx) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (mx) ImportState
func (mx) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (mx) Metadata
func (mx) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (mx) Read
func (r mx) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (mx) Schema
func (mx) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (mx) Update
func (r mx) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type naptr
naptr is the data source implementation.
type naptr struct {
client *client.Client
}
func (*naptr) Configure
func (r *naptr) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (naptr) Create
func (r naptr) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (naptr) Delete
func (r naptr) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (naptr) ImportState
func (naptr) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (naptr) Metadata
func (naptr) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (naptr) Read
func (r naptr) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (naptr) Schema
func (naptr) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (naptr) Update
func (r naptr) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type ns
ns is the data source implementation.
type ns struct {
client *client.Client
}
func (*ns) Configure
func (r *ns) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (ns) Create
func (r ns) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (ns) Delete
func (r ns) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (ns) ImportState
func (ns) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (ns) Metadata
func (ns) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (ns) Read
func (r ns) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (ns) Schema
func (ns) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (ns) Update
func (r ns) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type ptr
ptr is the data source implementation.
type ptr struct {
client *client.Client
}
func (*ptr) Configure
func (r *ptr) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (ptr) Create
func (r ptr) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (ptr) Delete
func (r ptr) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (ptr) ImportState
func (ptr) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (ptr) Metadata
func (ptr) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (ptr) Read
func (r ptr) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (ptr) Schema
func (ptr) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (ptr) Update
func (r ptr) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type rp
rp is the data source implementation.
type rp struct {
client *client.Client
}
func (*rp) Configure
func (r *rp) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (rp) Create
func (r rp) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (rp) Delete
func (r rp) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (rp) ImportState
func (rp) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (rp) Metadata
func (rp) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (rp) Read
func (r rp) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (rp) Schema
func (rp) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (rp) Update
func (r rp) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type spf
spf is the data source implementation.
type spf struct {
client *client.Client
}
func (*spf) Configure
func (r *spf) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (spf) Create
func (r spf) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (spf) Delete
func (r spf) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (spf) ImportState
func (spf) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (spf) Metadata
func (spf) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (spf) Read
func (r spf) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (spf) Schema
func (spf) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (spf) Update
func (r spf) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type srv
srv is the data source implementation.
type srv struct {
client *client.Client
}
func (*srv) Configure
func (r *srv) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (srv) Create
func (r srv) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (srv) Delete
func (r srv) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (srv) ImportState
func (srv) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (srv) Metadata
func (srv) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (srv) Read
func (r srv) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (srv) Schema
func (srv) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (srv) Update
func (r srv) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type sshfp
sshfp is the data source implementation.
type sshfp struct {
client *client.Client
}
func (*sshfp) Configure
func (r *sshfp) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (sshfp) Create
func (r sshfp) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (sshfp) Delete
func (r sshfp) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (sshfp) ImportState
func (sshfp) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (sshfp) Metadata
func (sshfp) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (sshfp) Read
func (r sshfp) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (sshfp) Schema
func (sshfp) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (sshfp) Update
func (r sshfp) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type txt
txt is the data source implementation.
type txt struct {
client *client.Client
}
func (*txt) Configure
func (r *txt) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (txt) Create
func (r txt) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (txt) Delete
func (r txt) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (txt) ImportState
func (txt) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (txt) Metadata
func (txt) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (txt) Read
func (r txt) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (txt) Schema
func (txt) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (txt) Update
func (r txt) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
func (txt) ValidateConfig
func (txt) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
Generated by gomarkdoc
Documentation ¶
Index ¶
- func NewA() resource.Resource
- func NewAAAA() resource.Resource
- func NewAFSDB() resource.Resource
- func NewALIAS() resource.Resource
- func NewCAA() resource.Resource
- func NewCNAME() resource.Resource
- func NewDDNSKey() resource.Resource
- func NewHINFO() resource.Resource
- func NewLOC() resource.Resource
- func NewMX() resource.Resource
- func NewNAPTR() resource.Resource
- func NewNS() resource.Resource
- func NewPTR() resource.Resource
- func NewRP() resource.Resource
- func NewSPF() resource.Resource
- func NewSRV() resource.Resource
- func NewSSHFP() resource.Resource
- func NewTXT() resource.Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.