Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DomainAttributes = map[string]schema.Attribute{ "id": schema.Int64Attribute{ Description: "The Domain's unique ID.", Optional: true, Validators: []validator.Int64{ int64validator.ConflictsWith(path.Expressions{ path.MatchRoot("domain"), }...), }, }, "domain": schema.StringAttribute{ Description: "The domain this Domain represents. These must be unique in our system; you cannot have " + "two Domains representing the same domain.", Optional: true, }, "type": schema.StringAttribute{ Description: "If this Domain represents the authoritative source of information for the domain it " + "describes, or if it is a read-only copy of a master (also called a slave).", Computed: true, }, "group": schema.StringAttribute{ Description: "The group this Domain belongs to. This is for display purposes only.", Computed: true, }, "status": schema.StringAttribute{ Description: "Used to control whether this Domain is currently being rendered.", Computed: true, }, "description": schema.StringAttribute{ Description: "A description for this Domain. This is for display purposes only.", Computed: true, }, "master_ips": schema.SetAttribute{ Description: "The IP addresses representing the master DNS for this Domain.", ElementType: types.StringType, Computed: true, }, "axfr_ips": schema.SetAttribute{ Description: "The list of IPs that may perform a zone transfer for this Domain. This is potentially " + "dangerous, and should be set to an empty list unless you intend to use it.", ElementType: types.StringType, Computed: true, }, "ttl_sec": schema.Int64Attribute{ Description: "'Time to Live' - the amount of time in seconds that this Domain's records may be " + "cached by resolvers or other domain servers. " + domainSecondsDescription, Computed: true, }, "retry_sec": schema.Int64Attribute{ Description: "The interval, in seconds, at which a failed refresh should be retried. " + domainSecondsDescription, Computed: true, }, "expire_sec": schema.Int64Attribute{ Description: "The amount of time in seconds that may pass before this Domain is no longer " + domainSecondsDescription, Computed: true, }, "refresh_sec": schema.Int64Attribute{ Description: "The amount of time in seconds before this Domain should be refreshed. " + domainSecondsDescription, Computed: true, }, "soa_email": schema.StringAttribute{ Description: "Start of Authority email address. This is required for master Domains.", Computed: true, }, "tags": schema.SetAttribute{ Description: "An array of tags applied to this object. Tags are for organizational purposes only.", Computed: true, ElementType: types.StringType, }, }
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
Types ¶
type DataSource ¶
type DataSource struct {
helper.BaseDataSource
}
func (*DataSource) Read ¶
func (d *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
type DomainModel ¶
type DomainModel struct { ID types.Int64 `tfsdk:"id"` Domain types.String `tfsdk:"domain"` Type types.String `tfsdk:"type"` Group types.String `tfsdk:"group"` Status types.String `tfsdk:"status"` Description types.String `tfsdk:"description"` MasterIPs []types.String `tfsdk:"master_ips"` AXFRIPs []types.String `tfsdk:"axfr_ips"` TTLSec types.Int64 `tfsdk:"ttl_sec"` RetrySec types.Int64 `tfsdk:"retry_sec"` ExpireSec types.Int64 `tfsdk:"expire_sec"` RefreshSec types.Int64 `tfsdk:"refresh_sec"` SOAEmail types.String `tfsdk:"soa_email"` Tags []types.String `tfsdk:"tags"` }
DomainModel maps a Linode Domain object to a Terraform config.
func (*DomainModel) ParseDomain ¶ added in v2.14.0
func (m *DomainModel) ParseDomain(domain *linodego.Domain)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.