Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewDatabaseDataSource() datasource.DataSource
- func NewDatabaseResource() resource.Resource
- func NewDatabasesDataSource() datasource.DataSource
- func NewTokenDataSource() datasource.DataSource
- func NewTokenResource() resource.Resource
- func NewTokensDataSource() datasource.DataSource
- type DatabaseDataSource
- func (d *DatabaseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DatabaseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DatabaseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DatabaseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatabaseModel
- type DatabasePartitionTemplateModel
- type DatabaseResource
- func (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DatabasesDataSource
- func (d *DatabasesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DatabasesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DatabasesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DatabasesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatabasesDataSourceModel
- type InfluxDBProvider
- func (p *InfluxDBProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *InfluxDBProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *InfluxDBProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *InfluxDBProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *InfluxDBProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type InfluxDBProviderModel
- type TokenDataSource
- func (d *TokenDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *TokenDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *TokenDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *TokenDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type TokenModel
- type TokenPermissionModel
- type TokenResource
- func (r *TokenResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TokenResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TokenResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TokenResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TokenResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TokenResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TokenResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TokenResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TokensDataSource
- func (d *TokensDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *TokensDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *TokensDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *TokensDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type TokensDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabaseDataSource ¶
func NewDatabaseDataSource() datasource.DataSource
NewDatabaseDataSource is a helper function to simplify the provider implementation.
func NewDatabaseResource ¶
NewDatabaseResource is a helper function to simplify the provider implementation.
func NewDatabasesDataSource ¶
func NewDatabasesDataSource() datasource.DataSource
NewDatabasesDataSource is a helper function to simplify the provider implementation.
func NewTokenDataSource ¶
func NewTokenDataSource() datasource.DataSource
NewTokenDataSource is a helper function to simplify the provider implementation.
func NewTokenResource ¶
NewTokenResource is a helper function to simplify the provider implementation.
func NewTokensDataSource ¶
func NewTokensDataSource() datasource.DataSource
NewTokensDataSource is a helper function to simplify the provider implementation.
Types ¶
type DatabaseDataSource ¶
type DatabaseDataSource struct {
// contains filtered or unexported fields
}
DatabasesDataSource is the data source implementation.
func (*DatabaseDataSource) Configure ¶
func (d *DatabaseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*DatabaseDataSource) Metadata ¶
func (d *DatabaseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*DatabaseDataSource) Read ¶
func (d *DatabaseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*DatabaseDataSource) Schema ¶
func (d *DatabaseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type DatabaseModel ¶
type DatabaseModel struct { AccountId types.String `tfsdk:"account_id"` ClusterId types.String `tfsdk:"cluster_id"` Name types.String `tfsdk:"name"` MaxTables types.Int64 `tfsdk:"max_tables"` MaxColumnsPerTable types.Int64 `tfsdk:"max_columns_per_table"` RetentionPeriod types.Int64 `tfsdk:"retention_period"` PartitionTemplate []DatabasePartitionTemplateModel `tfsdk:"partition_template"` }
DatabaseModel maps InfluxDB database schema data.
type DatabasePartitionTemplateModel ¶
type DatabasePartitionTemplateModel struct { Type types.String `json:"type" tfsdk:"type"` Value types.String `json:"value" tfsdk:"value"` }
DatabasePartitionTemplateModel maps InfluxDB database partition template schema data.
func (DatabasePartitionTemplateModel) GetAttrType ¶
func (d DatabasePartitionTemplateModel) GetAttrType() attr.Type
GetAttrType returns the attribute type for the DatabasePartitionTemplateModel.
type DatabaseResource ¶
type DatabaseResource struct {
// contains filtered or unexported fields
}
DatabaseResource defines the resource implementation.
func (*DatabaseResource) Configure ¶
func (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*DatabaseResource) Create ¶
func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*DatabaseResource) Delete ¶
func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*DatabaseResource) ImportState ¶
func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DatabaseResource) Metadata ¶
func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*DatabaseResource) Read ¶
func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*DatabaseResource) Schema ¶
func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*DatabaseResource) Update ¶
func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type DatabasesDataSource ¶
type DatabasesDataSource struct {
// contains filtered or unexported fields
}
DatabasesDataSource is the data source implementation.
func (*DatabasesDataSource) Configure ¶
func (d *DatabasesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*DatabasesDataSource) Metadata ¶
func (d *DatabasesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*DatabasesDataSource) Read ¶
func (d *DatabasesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*DatabasesDataSource) Schema ¶
func (d *DatabasesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type DatabasesDataSourceModel ¶
type DatabasesDataSourceModel struct {
Databases []DatabaseModel `tfsdk:"databases"`
}
DatabasesDataSourceModel describes the data source data model.
type InfluxDBProvider ¶
type InfluxDBProvider struct {
// contains filtered or unexported fields
}
InfluxDBProvider defines the provider implementation.
func (*InfluxDBProvider) Configure ¶
func (p *InfluxDBProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure prepares a InfluxDB API client for data sources and resources.
func (*InfluxDBProvider) DataSources ¶
func (p *InfluxDBProvider) DataSources(ctx context.Context) []func() datasource.DataSource
DataSources defines the data sources implemented in the provider.
func (*InfluxDBProvider) Metadata ¶
func (p *InfluxDBProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata returns the provider type name.
func (*InfluxDBProvider) Resources ¶
func (p *InfluxDBProvider) Resources(ctx context.Context) []func() resource.Resource
Resources defines the resources implemented in the provider.
func (*InfluxDBProvider) Schema ¶
func (p *InfluxDBProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema defines the provider-level schema for configuration data.
type InfluxDBProviderModel ¶
type InfluxDBProviderModel struct { AccountID types.String `tfsdk:"account_id"` ClusterID types.String `tfsdk:"cluster_id"` Token types.String `tfsdk:"token"` URL types.String `tfsdk:"url"` }
InfluxDBProviderModel maps provider schema data to a Go type.
type TokenDataSource ¶
type TokenDataSource struct {
// contains filtered or unexported fields
}
TokensDataSource is the data source implementation.
func (*TokenDataSource) Configure ¶
func (d *TokenDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*TokenDataSource) Metadata ¶
func (d *TokenDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*TokenDataSource) Read ¶
func (d *TokenDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*TokenDataSource) Schema ¶
func (d *TokenDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type TokenModel ¶
type TokenModel struct { AccessToken types.String `tfsdk:"access_token"` AccountId types.String `tfsdk:"account_id"` CreatedAt types.String `tfsdk:"created_at"` ClusterId types.String `tfsdk:"cluster_id"` Description types.String `tfsdk:"description"` Id types.String `tfsdk:"id"` Permissions []TokenPermissionModel `tfsdk:"permissions"` }
TokenModel maps InfluxDB database token schema data.
type TokenPermissionModel ¶
type TokenPermissionModel struct { Action types.String `tfsdk:"action"` Resource types.String `tfsdk:"resource"` }
TokenPermissionModel maps InfluxDB database token permission schema data.
type TokenResource ¶
type TokenResource struct {
// contains filtered or unexported fields
}
TokenResource defines the resource implementation.
func (*TokenResource) Configure ¶
func (r *TokenResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*TokenResource) Create ¶
func (r *TokenResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*TokenResource) Delete ¶
func (r *TokenResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*TokenResource) ImportState ¶
func (r *TokenResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TokenResource) Metadata ¶
func (r *TokenResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*TokenResource) Read ¶
func (r *TokenResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*TokenResource) Schema ¶
func (r *TokenResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*TokenResource) Update ¶
func (r *TokenResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type TokensDataSource ¶
type TokensDataSource struct {
// contains filtered or unexported fields
}
TokensDataSource is the data source implementation.
func (*TokensDataSource) Configure ¶
func (d *TokensDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*TokensDataSource) Metadata ¶
func (d *TokensDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*TokensDataSource) Read ¶
func (d *TokensDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*TokensDataSource) Schema ¶
func (d *TokensDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type TokensDataSourceModel ¶
type TokensDataSourceModel struct {
Tokens []TokenModel `tfsdk:"tokens"`
}
TokensDataSourceModel describes the data source data model.