rules

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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