mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
18 lines
476 B
Go
18 lines
476 B
Go
package models
|
|
|
|
type Provenance string
|
|
|
|
const (
|
|
// ProvenanceNone reflects the provenance when no provenance is stored
|
|
// for the requested object in the database.
|
|
ProvenanceNone Provenance = ""
|
|
ProvenanceAPI Provenance = "api"
|
|
ProvenanceFile Provenance = "file"
|
|
)
|
|
|
|
// Provisionable represents a resource that can be created through a provisioning mechanism, such as Terraform or config file.
|
|
type Provisionable interface {
|
|
ResourceType() string
|
|
ResourceID() string
|
|
}
|