Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFatalWithDiags ¶
func LogFatalWithDiags(diags hcl.Diagnostics, format string, a ...any)
func LogFatalWithSourceRange ¶
func LogInternalError ¶
func PrintAllAndExit ¶
func PrintAllAndExit(errs []ValidationError)
Types ¶
type ResourceValidationInfo ¶
type ResourceValidationInfo struct {
SourceRanges map[string]hcl.Range
BlockDefRange hcl.Range
ResourceId string
}
func NewResourceValidationInfoFromContent ¶
func NewResourceValidationInfoFromContent(content *hcl.BodyContent, definitionRange hcl.Range, id string) *ResourceValidationInfo
func NewResourceValidationInfoWithId ¶
func NewResourceValidationInfoWithId(resourceId string) *ResourceValidationInfo
func (*ResourceValidationInfo) LogFatal ¶
func (info *ResourceValidationInfo) LogFatal(resourceId string, fieldName string, errorMessage string)
func (*ResourceValidationInfo) NewError ¶
func (info *ResourceValidationInfo) NewError(errorMessage string, fieldName string) ValidationError
type ValidationError ¶
type ValidationError struct {
SourceRange hcl.Range
ErrorMessage string
ResourceId string
FieldName string
}
func (ValidationError) Print ¶
func (e ValidationError) Print()
Click to show internal directories.
Click to hide internal directories.