package
0.0.0-20200714085832-f408beefc360
Repository: https://github.com/istio/operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AppendErr appends err to errors if it is not nil and returns the result.
AppendErrs appends newErrs to errors and returns the result.
ConsolidateLog is a helper function to dedup the log message.
DeleteAnnotation is a helper function which deletes the specified annotation from the specified object.
DeleteFromSlicePtr deletes an entry at index from the parent, which must be a slice ptr.
DeleteLabel is a helper function which deletes the specified label from the specified object.
EqualErrors reports whether a and b are equal, regardless of ordering.
GetAnnotation is a helper function which returns the value of the specified annotation on the specified object.
GetLabel is a helper function which returns the value of the specified label on the specified object.
HasAnnotation is a helper function returning true if the specified object contains the specified annotation.
HasLabel is a helper function returning true if the specified object contains the specified label.
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, empty path or relative URLs would be rejected.
IsInterfacePtr reports whether v is a slice ptr type.
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.
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.
No description provided by the author
IsTypeInterface reports whether v is an interface.
IsTypeMap reports whether v is a map type.
IsTypeSlice reports whether v is a slice type.
IsTypeSliceOfInterface reports whether v is a slice of interface.
IsTypeSlicePtr reports whether v is a slice ptr type.
IsTypeStruct reports whether t is a struct 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.
IsYAMLEqual reports whether the YAML in strings a and b are equal.
MarshalWithJSONPB returns a YAML string representation of val (using jsonpb).
NewErrs returns a slice of error with a single element err.
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.
Path KVreturns the key and value string parts of the entire key/value path element.
PathV returns the value string part of the entire value path element.
PrettyJSON returns a pretty printed version of the JSON string b.
RandomString returns a random string of length n.
ReadFilesWithFilter reads files from path, for a directory it recursively reads files and filters the results for single file it directly reads the file.
RemoveBrackets removes the [] around pe and returns the resulting string.
RenderTemplate is a helper method to render a template with the given values.
SetAnnotation is a helper function which sets the specified annotation and value on the specified object.
SetLabel is a helper function which sets the specified label and value on the specified object.
StringBoolMapToSlice creates and returns a slice of all the map keys with true.
ToIntValue returns 0, false if val is not a number type, otherwise it returns the int value of val.
ToString returns a string representation of errors.
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.
ToYAMLWithJSONPB returns a YAML string representation of val (using jsonpb), or the error string if an error occurs.
UnmarshalValuesWithJSONPB unmarshals y into out using golang jsonpb.
UnmarshalWithJSONPB unmarshals y into out using gogo jsonpb (required for many proto defined structs).
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.
No description provided by the author

# Constants

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.

# Type aliases

Errors is a slice of error.
No description provided by the author
Path is a path in slice form.
Tree is a tree.