match

package
v0.0.0-...-628280f Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package match identifies Go types as common Crossplane resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object func(o types.Object) bool

An Object matcher is a function that returns true if the supplied object matches.

func AllOf

func AllOf(match ...Object) Object

AllOf returns an Object matcher that returns true if all of the supplied Object matchers return true.

func AnyOf

func AnyOf(match ...Object) Object

AnyOf returns an Object matcher that returns true if any of the supplied Object matchers return true.

func DoesNotHaveMarker

func DoesNotHaveMarker(c comments.Comments, k, v string) Object

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

func HasMarker(c comments.Comments, k, v string) Object

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 Crossplane managed resource.

func ManagedList

func ManagedList() Object

ManagedList returns an Object matcher that returns true if the supplied Object is a list of Crossplane managed resource.

func ProviderConfig

func ProviderConfig() Object

ProviderConfig returns an Object matcher that returns true if the supplied Object is a Crossplane ProviderConfig.

func ProviderConfigUsage

func ProviderConfigUsage() Object

ProviderConfigUsage returns an Object matcher that returns true if the supplied Object is a Crossplane ProviderConfigUsage.

func ProviderConfigUsageList

func ProviderConfigUsageList() Object

ProviderConfigUsageList returns an Object matcher that returns true if the supplied Object is a list of Crossplane provider config usages.

Jump to

Keyboard shortcuts

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