package
1.4.2
Repository: https://github.com/alibaba/higress.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DeleteFromMap deletes an entry with the given key parent, which must be a map.
DeleteFromSlicePtr deletes an entry at index from the parent, which must be a slice ptr.
FormatterFilter uses github.com/google/yamlfmt to format yaml file.
InsertIntoMap inserts value with key into parent which must be a map, map ptr, or interface to map.
IsEmptyString returns true if value is an empty string.
IsFilePath reports whether the given URL is a local file path.
IsHTTPURL checks whether the given URL is a HTTP URL.
IsIntKind reports whether k is an integer kind of any size.
IsKVPathElement report whether pe is a key/value path element.
IsMap reports whether value is a map type.
IsMapPtr reports whether v is a map ptr type.
IsNilOrInvalidValue reports whether v is nil or reflect.Zero.
IsNPathElement report whether pe is an index path element.
IsPtr reports whether value is a ptr type.
IsSlice reports whether value is a slice type.
IsSliceInterfacePtr reports whether v is a slice ptr type.
IsSlicePtr reports whether v is a slice ptr type.
IsString reports whether value is a string type.
IsStruct reports whether value is a struct type.
IsTypeInterface reports whether v is an interface.
IsTypeMap reports whether v is a map type.
IsTypeSliceOfInterface reports whether v is a slice of interface.
IsTypeSlicePtr reports whether v is a slice ptr type.
IsTypeStructPtr reports whether v is a struct ptr type.
IsUintKind reports whether k is an unsigned integer kind of any size.
IsValidPathElement reports whether pe is a valid path element.
IsValueInterface reports whether v is an interface type.
IsValueMap reports whether v is a map type.
IsValueNil returns true if either value is nil, or has dynamic type {ptr, map, slice} with value nil.
IsValueNilOrDefault returns true if either IsValueNil(value) or the default value for the type.
IsValuePtr reports whether v is a ptr type.
IsValueScalar reports whether v is a scalar type.
IsValueSlice reports whether v is a slice type.
IsValueStruct reports whether v is a struct type.
IsValueStructPtr reports whether v is a struct ptr type.
IsVPathElement report whether pe is a value path element.
IsYAMLEmpty reports whether the YAML string y is logically empty.
IsYAMLEqual reports whether the YAML in strings a and b are equal.
LicenseFilter assumes that license is at the beginning.
NewHTTPFetcher create a new HTTP remote fetcher.
OverlayTrees performs a sequential JSON strategic of overlays over base.
OverlayYAML patches the overlay tree over the base tree and returns the result.
ParseValue parses string into a value.
PathFromString converts a string path of form a.b.c to a string slice representation.
PathKV returns the key and value string parts of the entire key/value path element.
PathN returns the index part of the entire value path element.
PathV returns the value string part of the entire value path element.
RemoveBrackets removes the [] around pe and returns the resulting string.
SpaceFilter removes all leading and trailing space.
SpaceLineFilter removes all space lines.
No description provided by the author
StringBoolMapToSlice creates and returns a slice of all the map keys with true.
StripPrefix removes the given prefix from prefix.
ToIntValue returns 0, false if val is not a number type, otherwise it returns the int value of val.
ToYAML returns a YAML string representation of val, or the error string if an error occurs.
ToYAMLPath converts a path string to path such that the first letter of each path element is lower case.
ToYAMLPathString converts a path string such that the first letter of each path element is lower case.
UpdateSlicePtr updates an entry at index in the parent, which must be a slice ptr, with the given value.
ValuesAreSameType returns true if v1 and v2 has the same reflect.Type, otherwise it returns false.
WriteFileString write string content to file.
YAMLDiff compares multiple YAML files and single YAML file.

# Constants

EscapedPathSeparator is what to use when the path shouldn't separate.
InsertIndex is the index that means "insert" when setting values.
KVSeparator is the separator between the key and value in a key/value path element,.
PathSeparator is the separator between path elements.

# Variables

ValidKeyRegex is a regex for a valid path key element.

# Structs

No description provided by the author

# Type aliases

FilterFunc is used to filter some contents of manifest.
Path is a path in slice form.