Versions in this module Expand all Collapse all v0 v0.6.9 Nov 26, 2024 v0.6.8 Apr 12, 2022 Changes in this version + func BoolForScalarNode(node *yaml.Node) (bool, bool) + func CallExtension(context *Context, in *yaml.Node, extensionName string) (handled bool, response *any.Any, err error) + func ClearCaches() + func ClearFileCache() + func ClearInfoCache() + func ConvertInterfaceArrayToStringArray(interfaceArray []interface{}) []string + func Description(item interface{}) string + func DisableFileCache() + func DisableInfoCache() + func Display(node *yaml.Node) string + func EnableFileCache() + func EnableInfoCache() + func FetchFile(fileurl string) ([]byte, error) + func FloatForScalarNode(node *yaml.Node) (float64, bool) + func GetInfoCache() map[string]*yaml.Node + func IntForScalarNode(node *yaml.Node) (int64, bool) + func InvalidKeysInMap(m *yaml.Node, allowedKeys []string, allowedPatterns []*regexp.Regexp) []string + func MapHasKey(m *yaml.Node, key string) bool + func MapValueForKey(m *yaml.Node, key string) *yaml.Node + func Marshal(in *yaml.Node) []byte + func MissingKeysInMap(m *yaml.Node, requiredKeys []string) []string + func NewErrorGroupOrNil(errors []error) error + func NewMappingNode() *yaml.Node + func NewNullNode() *yaml.Node + func NewScalarNodeForBool(b bool) *yaml.Node + func NewScalarNodeForFloat(f float64) *yaml.Node + func NewScalarNodeForInt(i int64) *yaml.Node + func NewScalarNodeForString(s string) *yaml.Node + func NewSequenceNode() *yaml.Node + func NewSequenceNodeForStringArray(strings []string) *yaml.Node + func PluralProperties(count int) string + func ReadBytesForFile(filename string) ([]byte, error) + func ReadInfoForRef(basefile string, ref string) (*yaml.Node, error) + func ReadInfoFromBytes(filename string, bytes []byte) (*yaml.Node, error) + func RemoveFromFileCache(fileurl string) + func RemoveFromInfoCache(filename string) + func SequenceNodeForNode(node *yaml.Node) (*yaml.Node, bool) + func SortedKeysForMap(m *yaml.Node) []string + func StringArrayContainsValue(array []string, value string) bool + func StringArrayContainsValues(array []string, values []string) bool + func StringArrayForSequenceNode(node *yaml.Node) []string + func StringForScalarNode(node *yaml.Node) (string, bool) + func StringValue(item interface{}) (value string, ok bool) + func UnpackMap(in *yaml.Node) (*yaml.Node, bool) + type Context struct + ExtensionHandlers *[]ExtensionHandler + Name string + Node *yaml.Node + Parent *Context + func NewContext(name string, node *yaml.Node, parent *Context) *Context + func NewContextWithExtensions(name string, node *yaml.Node, parent *Context, ...) *Context + func (context *Context) Description() string + type Error struct + Context *Context + Message string + func NewError(context *Context, message string) *Error + func (err *Error) Error() string + type ErrorGroup struct + Errors []error + func (group *ErrorGroup) Error() string + type ExtensionHandler struct + Name string