Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- func NewAAAARecordDataSource() datasource.DataSource
- func NewAAAARecordResource() resource.Resource
- func NewARecordDataSource() datasource.DataSource
- func NewARecordResource() resource.Resource
- func NewCAARecordDataSource() datasource.DataSource
- func NewCAARecordResource() resource.Resource
- func NewCNAMERecordDataSource() datasource.DataSource
- func NewCNAMERecordResource() resource.Resource
- func NewDNAMERecordDataSource() datasource.DataSource
- func NewDNAMERecordResource() resource.Resource
- func NewLOCRecordDataSource() datasource.DataSource
- func NewLOCRecordResource() resource.Resource
- func NewMXRecordDataSource() datasource.DataSource
- func NewMXRecordResource() resource.Resource
- func NewNAPTRRecordDataSource() datasource.DataSource
- func NewNAPTRRecordResource() resource.Resource
- func NewNSRecordDataSource() datasource.DataSource
- func NewNSRecordResource() resource.Resource
- func NewPTRRecordDataSource() datasource.DataSource
- func NewPTRRecordResource() resource.Resource
- func NewRecordDataSource() datasource.DataSource
- func NewRecordResource() resource.Resource
- func NewSPFRecordDataSource() datasource.DataSource
- func NewSPFRecordResource() resource.Resource
- func NewSRVRecordDataSource() datasource.DataSource
- func NewSRVRecordResource() resource.Resource
- func NewSSHFPRecordDataSource() datasource.DataSource
- func NewSSHFPRecordResource() resource.Resource
- func NewTXTRecordDataSource() datasource.DataSource
- func NewTXTRecordResource() resource.Resource
- func NewURLFWDRecordDataSource() datasource.DataSource
- func NewURLFWDRecordResource() resource.Resource
- func RecordFromDataModel(ctx context.Context, data *RecordModel, record *models.Record) (diags diag.Diagnostics)
- func RecordToDataModel(ctx context.Context, data *RecordModel, record *models.Record) diag.Diagnostics
- type OctodnsAzureDNSModel
- type OctodnsCloudflareModel
- type OctodnsConfigModel
- type OctodnsProvider
- func (p *OctodnsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *OctodnsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *OctodnsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *OctodnsProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *OctodnsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type OctodnsProviderModel
- type RecordDataSource
- func (d *RecordDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *RecordDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *RecordDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *RecordDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type RecordModel
- type RecordResource
- func (r *RecordResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RecordResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SubdomainModel
- type TypeModel
Constants ¶
View Source
const ENVPREFIX = "OCTODNS_"
Variables ¶
This section is empty.
Functions ¶
func NewAAAARecordDataSource ¶
func NewAAAARecordDataSource() datasource.DataSource
func NewAAAARecordResource ¶
func NewARecordDataSource ¶
func NewARecordDataSource() datasource.DataSource
func NewARecordResource ¶
func NewCAARecordDataSource ¶
func NewCAARecordDataSource() datasource.DataSource
func NewCAARecordResource ¶
func NewCNAMERecordDataSource ¶
func NewCNAMERecordDataSource() datasource.DataSource
func NewCNAMERecordResource ¶
func NewDNAMERecordDataSource ¶
func NewDNAMERecordDataSource() datasource.DataSource
func NewDNAMERecordResource ¶
func NewLOCRecordDataSource ¶
func NewLOCRecordDataSource() datasource.DataSource
func NewLOCRecordResource ¶
func NewMXRecordDataSource ¶
func NewMXRecordDataSource() datasource.DataSource
func NewMXRecordResource ¶
func NewNAPTRRecordDataSource ¶
func NewNAPTRRecordDataSource() datasource.DataSource
func NewNAPTRRecordResource ¶
func NewNSRecordDataSource ¶
func NewNSRecordDataSource() datasource.DataSource
func NewNSRecordResource ¶
func NewPTRRecordDataSource ¶
func NewPTRRecordDataSource() datasource.DataSource
func NewPTRRecordResource ¶
func NewRecordDataSource ¶
func NewRecordDataSource() datasource.DataSource
func NewRecordResource ¶
func NewSPFRecordDataSource ¶
func NewSPFRecordDataSource() datasource.DataSource
func NewSPFRecordResource ¶
func NewSRVRecordDataSource ¶
func NewSRVRecordDataSource() datasource.DataSource
func NewSRVRecordResource ¶
func NewSSHFPRecordDataSource ¶
func NewSSHFPRecordDataSource() datasource.DataSource
func NewSSHFPRecordResource ¶
func NewTXTRecordDataSource ¶
func NewTXTRecordDataSource() datasource.DataSource
func NewTXTRecordResource ¶
func NewURLFWDRecordDataSource ¶
func NewURLFWDRecordDataSource() datasource.DataSource
func NewURLFWDRecordResource ¶
func RecordFromDataModel ¶ added in v0.1.0
func RecordFromDataModel(ctx context.Context, data *RecordModel, record *models.Record) (diags diag.Diagnostics)
func RecordToDataModel ¶ added in v0.1.0
func RecordToDataModel(ctx context.Context, data *RecordModel, record *models.Record) diag.Diagnostics
Types ¶
type OctodnsAzureDNSModel ¶
type OctodnsAzureDNSModel struct { HCInterval types.Int64 `tfsdk:"hc_interval"` HCTimeout types.Int64 `tfsdk:"hc_timeout"` HCNumFailures types.Int64 `tfsdk:"hc_numfailures"` }
func (OctodnsAzureDNSModel) Attributes ¶ added in v0.1.0
func (o OctodnsAzureDNSModel) Attributes() (attributes map[string]attr.Type)
type OctodnsCloudflareModel ¶
type OctodnsCloudflareModel struct { Proxied types.Bool `tfsdk:"proxied"` AutoTTL types.Bool `tfsdk:"auto_ttl"` }
func (o OctodnsConfigModel) HasConfig() bool { if o.Cloudflare != nil || o.AzureDNS != nil { return true } else { return false } }
func (OctodnsCloudflareModel) Attributes ¶ added in v0.1.0
func (o OctodnsCloudflareModel) Attributes() (attributes map[string]attr.Type)
type OctodnsConfigModel ¶
type OctodnsProvider ¶
type OctodnsProvider struct {
// contains filtered or unexported fields
}
OctodnsProvider defines the provider implementation.
func (*OctodnsProvider) Configure ¶
func (p *OctodnsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*OctodnsProvider) DataSources ¶
func (p *OctodnsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*OctodnsProvider) Metadata ¶
func (p *OctodnsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*OctodnsProvider) Resources ¶
func (p *OctodnsProvider) Resources(ctx context.Context) []func() resource.Resource
func (*OctodnsProvider) Schema ¶
func (p *OctodnsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type OctodnsProviderModel ¶
type OctodnsProviderModel struct { GitProvider types.String `tfsdk:"git_provider"` GithubAccessToken types.String `tfsdk:"github_access_token"` GithubOrg types.String `tfsdk:"github_org"` GithubRepo types.String `tfsdk:"github_repo"` GitBranch types.String `tfsdk:"branch"` GitAuthorName types.String `tfsdk:"author_name"` GitAuthorEmail types.String `tfsdk:"author_email"` Scopes []struct { Name types.String `tfsdk:"name"` Path types.String `tfsdk:"path"` Branch types.String `tfsdk:"branch"` } `tfsdk:"scope"` }
OctodnsProviderModel describes the provider data model.
type RecordDataSource ¶
type RecordDataSource struct {
// contains filtered or unexported fields
}
RecordDataSource defines the data source implementation.
func (*RecordDataSource) Configure ¶
func (d *RecordDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*RecordDataSource) Metadata ¶
func (d *RecordDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*RecordDataSource) Read ¶
func (d *RecordDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*RecordDataSource) Schema ¶
func (d *RecordDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type RecordModel ¶
type RecordResource ¶
type RecordResource struct {
// contains filtered or unexported fields
}
RecordResource defines the resource implementation.
func (*RecordResource) Configure ¶
func (r *RecordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RecordResource) Create ¶
func (r *RecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RecordResource) Delete ¶
func (r *RecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RecordResource) ImportState ¶
func (r *RecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*RecordResource) Metadata ¶
func (r *RecordResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RecordResource) Read ¶
func (r *RecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RecordResource) Schema ¶
func (r *RecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RecordResource) Update ¶
func (r *RecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.