rules

package
Version: v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FieldRules = resourcetree.FieldRules{
	Rules: []func(fieldName string) bool{
		IgnoreDeprecatedFields,
	},
}

FieldRules represent all resourcetree.FieldRules specified for knative serving.

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

func IgnoreDeprecatedFields(fieldName string) bool

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

func PackageDisplayRule(packageName string) string

PackageDisplayRule rule specifies how package name needs to be displayed for json type like result display

Types

This section is empty.

Jump to

Keyboard shortcuts

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