/
keys.go
27 lines (22 loc) · 906 Bytes
/
keys.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package logging
// Structured logging keys.
//
// Practitioners or tooling reading logs may be depending on these keys, so be
// conscious of that when changing them.
//
// Refer to the terraform-plugin-go logging keys as well, which should be
// equivalent to these when possible.
const (
// Attribute path representation, which is typically in flatmap form such
// as parent.0.child in this project.
KeyAttributePath = "tf_attribute_path"
// The type of data source being operated on, such as "archive_file"
KeyDataSourceType = "tf_data_source_type"
// Human readable string when calling a provider defined type that must
// implement the Description() method, such as validators.
KeyDescription = "description"
// Underlying Go error string when logging an error.
KeyError = "error"
// The type of resource being operated on, such as "random_pet"
KeyResourceType = "tf_resource_type"
)