opentofu/builtin/providers/influxdb
Raphael Randschau 7630a585a2 Improve influxdb provider (#7333)
* Improve influxdb provider

- reduce public funcs. We should not make things public that don't need to be public
- improve tests by verifying remote state
- add influxdb_user resource

    allows you to manage influxdb users:

    ```
    resource "influxdb_user" "admin" {
      name = "administrator"
      password = "super-secret"
      admin = true
    }
    ```

    and also database specific grants:

    ```
    resource "influxdb_user" "ro" {
      name = "read-only"
      password = "read-only"

      grant {
        database = "a"
        privilege = "read"
      }
    }
    ```

* Grant/ revoke admin access properly

* Add continuous_query resource

see
https://docs.influxdata.com/influxdb/v0.13/query_language/continuous_queries/
for the details about continuous queries:

```
resource "influxdb_database" "test" {
    name = "terraform-test"
}

resource "influxdb_continuous_query" "minnie" {
    name = "minnie"
    database = "${influxdb_database.test.name}"
    query = "SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)"
}
```
2016-08-05 16:27:03 +10:00
..
continuous_query_test.go Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
continuous_query.go Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
provider_test.go InfluxDB provider 2016-03-20 14:53:34 -05:00
provider.go Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
resource_database_test.go Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
resource_database.go Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
resource_user_test.go Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
resource_user.go Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00