Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewAuthorizationDataSource() datasource.DataSource
- func NewAuthorizationResource() resource.Resource
- func NewAuthorizationsDataSource() datasource.DataSource
- func NewBucketDataSource() datasource.DataSource
- func NewBucketResource() resource.Resource
- func NewBucketsDataSource() datasource.DataSource
- func NewOrganizationDataSource() datasource.DataSource
- func NewOrganizationResource() resource.Resource
- func NewOrganizationsDataSource() datasource.DataSource
- type AuthorizationDataSource
- func (d *AuthorizationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *AuthorizationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *AuthorizationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *AuthorizationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type AuthorizationModel
- type AuthorizationPermissionModel
- type AuthorizationPermissionResourceModel
- type AuthorizationResource
- func (r *AuthorizationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *AuthorizationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AuthorizationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AuthorizationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AuthorizationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *AuthorizationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AuthorizationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *AuthorizationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type AuthorizationsDataSource
- func (d *AuthorizationsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *AuthorizationsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *AuthorizationsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *AuthorizationsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type AuthorizationsDataSourceModel
- type BucketDataSource
- func (d *BucketDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *BucketDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *BucketDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BucketDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type BucketModel
- type BucketResource
- func (r *BucketResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BucketResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BucketResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BucketResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BucketResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BucketResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BucketResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BucketResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BucketsDataSource
- func (d *BucketsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *BucketsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *BucketsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BucketsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type BucketsDataSourceModel
- 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 OrganizationDataSource
- func (d *OrganizationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *OrganizationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *OrganizationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *OrganizationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type OrganizationModel
- type OrganizationResource
- func (r *OrganizationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *OrganizationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *OrganizationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *OrganizationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *OrganizationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *OrganizationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *OrganizationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *OrganizationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type OrganizationsDataSource
- func (d *OrganizationsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *OrganizationsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *OrganizationsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *OrganizationsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type OrganizationsDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizationDataSource ¶
func NewAuthorizationDataSource() datasource.DataSource
NewAuthorizationDataSource is a helper function to simplify the provider implementation.
func NewAuthorizationResource ¶
NewAuthorizationResource is a helper function to simplify the provider implementation.
func NewAuthorizationsDataSource ¶
func NewAuthorizationsDataSource() datasource.DataSource
NewAuthorizationsDataSource is a helper function to simplify the provider implementation.
func NewBucketDataSource ¶
func NewBucketDataSource() datasource.DataSource
NewBucketDataSource is a helper function to simplify the provider implementation.
func NewBucketResource ¶
NewBucketResource is a helper function to simplify the provider implementation.
func NewBucketsDataSource ¶
func NewBucketsDataSource() datasource.DataSource
NewBucketsDataSource is a helper function to simplify the provider implementation.
func NewOrganizationDataSource ¶
func NewOrganizationDataSource() datasource.DataSource
NewOrganizationDataSource is a helper function to simplify the provider implementation.
func NewOrganizationResource ¶
NewOrganizationResource is a helper function to simplify the provider implementation.
func NewOrganizationsDataSource ¶
func NewOrganizationsDataSource() datasource.DataSource
NewOrganizationsDataSource is a helper function to simplify the provider implementation.
Types ¶
type AuthorizationDataSource ¶
type AuthorizationDataSource struct {
// contains filtered or unexported fields
}
AuthorizationsDataSource is the data source implementation.
func (*AuthorizationDataSource) Configure ¶
func (d *AuthorizationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*AuthorizationDataSource) Metadata ¶
func (d *AuthorizationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*AuthorizationDataSource) Read ¶
func (d *AuthorizationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*AuthorizationDataSource) Schema ¶
func (d *AuthorizationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type AuthorizationModel ¶
type AuthorizationModel struct { Id types.String `tfsdk:"id"` Token types.String `tfsdk:"token"` Status types.String `tfsdk:"status"` Description types.String `tfsdk:"description"` OrgID types.String `tfsdk:"org_id"` Org types.String `tfsdk:"org"` UserId types.String `tfsdk:"user_id"` User types.String `tfsdk:"user"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` Permissions []AuthorizationPermissionModel `tfsdk:"permissions"` }
AuthorizationModel maps InfluxDB authorization schema data.
type AuthorizationPermissionModel ¶
type AuthorizationPermissionModel struct { Action types.String `tfsdk:"action"` Resource AuthorizationPermissionResourceModel `tfsdk:"resource"` }
AuthorizationPermissionModel maps InfluxDB authorization permission schema data.
type AuthorizationPermissionResourceModel ¶ added in v1.1.0
type AuthorizationPermissionResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Org types.String `tfsdk:"org"` OrgID types.String `tfsdk:"org_id"` Type types.String `tfsdk:"type"` }
AuthorizationPermissionResourceModel maps InfluxDB authorization permission resource schema data.
type AuthorizationResource ¶
type AuthorizationResource struct {
// contains filtered or unexported fields
}
AuthorizationResource defines the resource implementation.
func (*AuthorizationResource) Configure ¶
func (r *AuthorizationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*AuthorizationResource) Create ¶
func (r *AuthorizationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*AuthorizationResource) Delete ¶
func (r *AuthorizationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*AuthorizationResource) ImportState ¶
func (r *AuthorizationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AuthorizationResource) Metadata ¶
func (r *AuthorizationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*AuthorizationResource) Read ¶
func (r *AuthorizationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*AuthorizationResource) Schema ¶
func (r *AuthorizationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*AuthorizationResource) Update ¶
func (r *AuthorizationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type AuthorizationsDataSource ¶
type AuthorizationsDataSource struct {
// contains filtered or unexported fields
}
AuthorizationsDataSource is the data source implementation.
func (*AuthorizationsDataSource) Configure ¶
func (d *AuthorizationsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*AuthorizationsDataSource) Metadata ¶
func (d *AuthorizationsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*AuthorizationsDataSource) Read ¶
func (d *AuthorizationsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*AuthorizationsDataSource) Schema ¶
func (d *AuthorizationsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type AuthorizationsDataSourceModel ¶
type AuthorizationsDataSourceModel struct {
Authorizations []AuthorizationModel `tfsdk:"authorizations"`
}
AuthorizationsDataSourceModel describes the data source data model.
type BucketDataSource ¶
type BucketDataSource struct {
// contains filtered or unexported fields
}
BucketsDataSource is the data source implementation.
func (*BucketDataSource) Configure ¶
func (d *BucketDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*BucketDataSource) Metadata ¶
func (d *BucketDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*BucketDataSource) Read ¶
func (d *BucketDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*BucketDataSource) Schema ¶
func (d *BucketDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type BucketModel ¶
type BucketModel struct { Id types.String `tfsdk:"id"` OrgID types.String `tfsdk:"org_id"` Type types.String `tfsdk:"type"` Description types.String `tfsdk:"description"` Name types.String `tfsdk:"name"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` RetentionPeriod types.Int64 `tfsdk:"retention_period"` // buckets cannot have more than one retention rule at this time }
BucketModel maps InfluxDB bucket schema data.
type BucketResource ¶
type BucketResource struct {
// contains filtered or unexported fields
}
BucketResource defines the resource implementation.
func (*BucketResource) Configure ¶
func (r *BucketResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*BucketResource) Create ¶
func (r *BucketResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*BucketResource) Delete ¶
func (r *BucketResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*BucketResource) ImportState ¶
func (r *BucketResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BucketResource) Metadata ¶
func (r *BucketResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*BucketResource) Read ¶
func (r *BucketResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*BucketResource) Schema ¶
func (r *BucketResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*BucketResource) Update ¶
func (r *BucketResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type BucketsDataSource ¶
type BucketsDataSource struct {
// contains filtered or unexported fields
}
BucketsDataSource is the data source implementation.
func (*BucketsDataSource) Configure ¶
func (d *BucketsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*BucketsDataSource) Metadata ¶
func (d *BucketsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*BucketsDataSource) Read ¶
func (d *BucketsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*BucketsDataSource) Schema ¶
func (d *BucketsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type BucketsDataSourceModel ¶
type BucketsDataSourceModel struct {
Buckets []BucketModel `tfsdk:"buckets"`
}
BucketsDataSourceModel 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 { URL types.String `tfsdk:"url"` Token types.String `tfsdk:"token"` }
InfluxDBProviderModel maps provider schema data to a Go type.
type OrganizationDataSource ¶
type OrganizationDataSource struct {
// contains filtered or unexported fields
}
OrganizationDataSource is the data source implementation.
func (*OrganizationDataSource) Configure ¶
func (d *OrganizationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*OrganizationDataSource) Metadata ¶
func (d *OrganizationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*OrganizationDataSource) Read ¶
func (d *OrganizationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*OrganizationDataSource) Schema ¶
func (d *OrganizationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type OrganizationModel ¶
type OrganizationModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` }
OrganizationModel maps InfluxDB organization schema data.
type OrganizationResource ¶
type OrganizationResource struct {
// contains filtered or unexported fields
}
OrganizationResource defines the resource implementation.
func (*OrganizationResource) Configure ¶
func (r *OrganizationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the resource.
func (*OrganizationResource) Create ¶
func (r *OrganizationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*OrganizationResource) Delete ¶
func (r *OrganizationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*OrganizationResource) ImportState ¶
func (r *OrganizationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*OrganizationResource) Metadata ¶
func (r *OrganizationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*OrganizationResource) Read ¶
func (r *OrganizationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*OrganizationResource) Schema ¶
func (r *OrganizationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*OrganizationResource) Update ¶
func (r *OrganizationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
type OrganizationsDataSource ¶
type OrganizationsDataSource struct {
// contains filtered or unexported fields
}
OrganizationsDataSource is the data source implementation.
func (*OrganizationsDataSource) Configure ¶
func (d *OrganizationsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*OrganizationsDataSource) Metadata ¶
func (d *OrganizationsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*OrganizationsDataSource) Read ¶
func (d *OrganizationsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*OrganizationsDataSource) Schema ¶
func (d *OrganizationsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type OrganizationsDataSourceModel ¶
type OrganizationsDataSourceModel struct {
Organizations []OrganizationModel `tfsdk:"organizations"`
}
OrganizationsDataSourceModel describes the data source data model.
Source Files ¶
- authorization_data_source.go
- authorization_model.go
- authorization_resource.go
- authorizations_data_source.go
- bucket_data_source.go
- bucket_model.go
- bucket_resource.go
- buckets_data_source.go
- organization_data_source.go
- organization_model.go
- organization_resource.go
- organizations_data_source.go
- provider.go