common

package
v0.38.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrFmtNoAttribute is an error string for not-found attributes
	ErrFmtNoAttribute = `"attribute not found: %s`
	// ErrFmtUnexpectedType is an error string for attribute map values of unexpected type
	ErrFmtUnexpectedType = `unexpected type for attribute %s: Expecting a string`
)

Variables

This section is empty.

Functions

func AddCommonReferences

func AddCommonReferences(r *tjconfig.Resource) error

AddCommonReferences adds some common reference fields. This is a part of resource generation pipeline.

func GetField added in v0.35.0

func GetField(from map[string]interface{}, path string) (string, error)

GetField returns the value of field as a string in a map[string]interface{},

fails properly otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL