Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FieldRules = resourcetree.FieldRules{ Rules: []func(fieldName string) bool{ IgnoreDeprecatedFields, }, }
FieldRules represent all resourcetree.FieldRules specified for knativer serving.
var NodeRules = resourcetree.NodeRules{ Rules: []func(node resourcetree.NodeInterface) bool{ IgnoreLowerLevelMetaFields, }, }
NodeRules contains all resourcetree.NodeRules specified for knative serving.
Functions ¶
func GetDisplayRules ¶
func GetDisplayRules() view.DisplayRules
GetDisplayRules returns the view.DisplayRules for knative serving.
func IgnoreDeprecatedFields ¶
IgnoreDeprecatedFields ignores fields that are prefixed with the word "deprecated"
func IgnoreLowerLevelMetaFields ¶
func IgnoreLowerLevelMetaFields(node resourcetree.NodeInterface) bool
IgnoreLowerLevelMetaFields rule ignores metadata nodes that are at a level lower than 2. This is done to ensure we only have ObjectMeta and TypeMeta coverage details for higherlevel types like Service, Route and not for nodes which appear in spec.
func PackageDisplayRule ¶
PackageDisplayRule rule specifies how package name needs to be displayed for json type like result display
Types ¶
This section is empty.