Documentation ¶
Index ¶
- func GetAuth(ctx *pulumi.Context) string
- func GetCaCert(ctx *pulumi.Context) string
- func GetCloudApiKey(ctx *pulumi.Context) string
- func GetCloudApiUrl(ctx *pulumi.Context) string
- func GetHttpHeaders(ctx *pulumi.Context) string
- func GetInsecureSkipVerify(ctx *pulumi.Context) bool
- func GetOncallAccessToken(ctx *pulumi.Context) string
- func GetOncallUrl(ctx *pulumi.Context) string
- func GetOrgId(ctx *pulumi.Context) int
- func GetRetries(ctx *pulumi.Context) int
- func GetSmAccessToken(ctx *pulumi.Context) string
- func GetSmUrl(ctx *pulumi.Context) string
- func GetStoreDashboardSha256(ctx *pulumi.Context) bool
- func GetTlsCert(ctx *pulumi.Context) string
- func GetTlsKey(ctx *pulumi.Context) string
- func GetUrl(ctx *pulumi.Context) string
- func PkgVersion() (semver.Version, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuth ¶
API token, basic auth in the `username:password` format or `anonymous` (string literal). May alternatively be set via the `GRAFANA_AUTH` environment variable.
func GetCaCert ¶
Certificate CA bundle to use to verify the Grafana server's certificate. May alternatively be set via the `GRAFANA_CA_CERT` environment variable.
func GetCloudApiKey ¶
API key for Grafana Cloud. May alternatively be set via the `GRAFANA_CLOUD_API_KEY` environment variable.
func GetCloudApiUrl ¶
Grafana Cloud's API URL. May alternatively be set via the `GRAFANA_CLOUD_API_URL` environment variable.
func GetHttpHeaders ¶
Optional. HTTP headers mapping keys to values used for accessing the Grafana and Grafana Cloud APIs. May alternatively be set via the `GRAFANA_HTTP_HEADERS` environment variable in JSON format.
func GetInsecureSkipVerify ¶
Skip TLS certificate verification. May alternatively be set via the `GRAFANA_INSECURE_SKIP_VERIFY` environment variable.
func GetOncallAccessToken ¶
A Grafana OnCall access token. May alternatively be set via the `GRAFANA_ONCALL_ACCESS_TOKEN` environment variable.
func GetOncallUrl ¶
An Grafana OnCall backend address. May alternatively be set via the `GRAFANA_ONCALL_URL` environment variable.
func GetOrgId ¶
The default organization id to operate on within grafana. For resources that have an `org_id` attribute, the resource-level attribute has priority. May alternatively be set via the `GRAFANA_ORG_ID` environment variable.
func GetRetries ¶
The amount of retries to use for Grafana API and Grafana Cloud API calls. May alternatively be set via the `GRAFANA_RETRIES` environment variable.
func GetSmAccessToken ¶
A Synthetic Monitoring access token. May alternatively be set via the `GRAFANA_SM_ACCESS_TOKEN` environment variable.
func GetSmUrl ¶
Synthetic monitoring backend address. May alternatively be set via the `GRAFANA_SM_URL` environment variable. The correct value for each service region is cited in the [Synthetic Monitoring documentation](https://grafana.com/docs/grafana-cloud/synthetic-monitoring/private-probes/#probe-api-server-url). Note the `sm_url` value is optional, but it must correspond with the value specified as the `region_slug` in the `grafana_cloud_stack` resource. Also note that when a Terraform configuration contains multiple provider instances managing SM resources associated with the same Grafana stack, specifying an explicit `sm_url` set to the same value for each provider ensures all providers interact with the same SM API.
func GetStoreDashboardSha256 ¶
Set to true if you want to save only the sha256sum instead of complete dashboard model JSON in the tfstate.
func GetTlsCert ¶
Client TLS certificate file to use to authenticate to the Grafana server. May alternatively be set via the `GRAFANA_TLS_CERT` environment variable.
func GetTlsKey ¶
Client TLS key file to use to authenticate to the Grafana server. May alternatively be set via the `GRAFANA_TLS_KEY` environment variable.
func GetUrl ¶
The root URL of a Grafana server. May alternatively be set via the `GRAFANA_URL` environment variable.
func PkgVersion ¶
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
This section is empty.