Documentation ¶
Overview ¶
Package match identifies Go types as common ndd resources.
Index ¶
- type Object
- func AllOf(match ...Object) Object
- func AnyOf(match ...Object) Object
- func DoesNotHaveMarker(c comments.Comments, k, v string) Object
- func HasMarker(c comments.Comments, k, v string) Object
- func Managed() Object
- func ManagedList() Object
- func NetworkNode() Object
- func NetworkNodeUsage() Object
- func NetworkNodeUsageList() Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
An Object matcher is a function that returns true if the supplied object matches.
func AllOf ¶
AllOf returns an Object matcher that returns true if all of the supplied Object matchers return true.
func AnyOf ¶
AnyOf returns an Object matcher that returns true if any of the supplied Object matchers return true.
func DoesNotHaveMarker ¶
DoesNotHaveMarker returns and Object matcher that returns true if the supplied Object does not have a comment marker k with the value v. Comment marker are read from the supplied Comments.
func HasMarker ¶
HasMarker returns an Object matcher that returns true if the supplied Object has a comment marker k with the value v. Comment markers are read from the supplied Comments.
func Managed ¶
func Managed() Object
Managed returns an Object matcher that returns true if the supplied Object is a ndd managed resource.
func ManagedList ¶
func ManagedList() Object
ManagedList returns an Object matcher that returns true if the supplied Object is a list of ndd managed resource.
func NetworkNode ¶ added in v0.1.11
func NetworkNode() Object
NetworkNode returns an Object matcher that returns true if the supplied Object is a NetworkNode.
func NetworkNodeUsage ¶ added in v0.1.11
func NetworkNodeUsage() Object
NetworkNodeUsage returns an Object matcher that returns true if the supplied Object is a NetworkNodeUsage.
func NetworkNodeUsageList ¶ added in v0.1.11
func NetworkNodeUsageList() Object
NetworkNodeUsageList returns an Object matcher that returns true if the supplied Object is a list of NetworkNode usages.