2023-07-03 20:21:30 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-08-06 14:21:18 +00:00
|
|
|
package tfprotov6
|
|
|
|
|
|
|
|
const (
|
|
|
|
// StringKindPlain indicates a string is plaintext, and should be
|
|
|
|
// interpreted as having no formatting information.
|
|
|
|
StringKindPlain StringKind = 0
|
|
|
|
|
|
|
|
// StringKindMarkdown indicates a string is markdown-formatted, and
|
|
|
|
// should be rendered using a Markdown renderer to correctly display
|
|
|
|
// its formatting.
|
|
|
|
StringKindMarkdown StringKind = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
// StringKind indicates a formatting or encoding scheme for a string.
|
|
|
|
type StringKind int32
|
|
|
|
|
|
|
|
func (s StringKind) String() string {
|
|
|
|
switch s {
|
|
|
|
case 0:
|
|
|
|
return "PLAIN"
|
|
|
|
case 1:
|
|
|
|
return "MARKDOWN"
|
|
|
|
}
|
|
|
|
return "UNKNOWN"
|
|
|
|
}
|