Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/crossplane/crossplane-tools
/ functions
Functions
157 in github.com/crossplane/crossplane-tools
⨍
Functions
157
◇
Types & classes
24
↓ 76 callers
Method
Name
()
internal/method/method_test.go:34
↓ 52 callers
Method
And
And chains the original Matcher o with a new Matcher m.
internal/fields/fields.go:76
↓ 35 callers
Function
IsEmbedded
IsEmbedded returns a Matcher that returns true if the supplied field is embedded.
internal/fields/fields.go:125
↓ 13 callers
Function
HasFieldThat
HasFieldThat returns a Matcher that returns true if the supplied field is a struct that matches the supplied field matchers.
internal/fields/fields.go:163
↓ 13 callers
Function
In
In returns all comments in a particular package.
internal/comments/comments.go:44
↓ 13 callers
Function
IsTypeMeta
IsTypeMeta returns a Matcher that returns true if the supplied field appears to be Kubernetes type metadata.
internal/fields/fields.go:171
↓ 13 callers
Function
IsTypeNamed
IsTypeNamed returns a Matcher that returns true if the supplied field has the supplied type name suffix and name.
internal/fields/fields.go:152
↓ 11 callers
Function
AllOf
AllOf returns an Object matcher that returns true if all of the supplied Object matchers return true.
internal/match/match.go:206
↓ 11 callers
Function
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 marke
internal/match/match.go:198
↓ 11 callers
Function
WithHeaders
WithHeaders specifies strings to be written as comments to the generated file, above the package definition. Single line strings use // comments, whil
internal/generate/generate.go:51
↓ 11 callers
Function
WithImportAliases
WithImportAliases configures a map of import paths to aliases that will be used when generating code. For example if a generated method requires "exam
internal/generate/generate.go:69
↓ 11 callers
Function
WithMatcher
WithMatcher specifies an Object matcher that is used to filter the Objects within the package down to the set that need the generated methods.
internal/generate/generate.go:59
↓ 11 callers
Function
WriteMethods
WriteMethods writes the supplied methods for each object in the supplied package to the supplied file. Use WithMatcher to limit the objects for which
internal/generate/generate.go:80
↓ 10 callers
Function
Has
Has returns true if the supplied Object's underlying type is struct (or a slice or map of struct), and it matches all of the supplied field Matchers.
internal/fields/fields.go:84
↓ 9 callers
Function
IsObjectMeta
IsObjectMeta returns a Matcher that returns true if the supplied field appears to be Kubernetes object metadata.
internal/fields/fields.go:175
↓ 6 callers
Method
For
For returns the comments for the supplied Object, if any.
internal/comments/comments.go:57
↓ 5 callers
Function
IsSpec
IsSpec returns a Matcher that returns true if the supplied field appears to be a Kubernetes resource spec.
internal/fields/fields.go:183
↓ 5 callers
Function
IsStatus
IsStatus returns a Matcher that returns true if the supplied field appears to be a Kubernetes resource status.
internal/fields/fields.go:191
↓ 4 callers
Function
IsItems
IsItems returns a Matcher that returns true if the supplied field appears to be the Items of a Kubernetes list.
internal/fields/fields.go:231
↓ 4 callers
Function
IsResourceStatus
IsResourceStatus returns a Matcher that returns true if the supplied field appears to be a Crossplane managed resource status.
internal/fields/fields.go:203
↓ 4 callers
Function
IsSlice
IsSlice returns a Matcher that returns true if the supplied field is a slice.
internal/fields/fields.go:132
↓ 4 callers
Function
NewGetCondition
NewGetCondition returns a NewMethod that writes a GetCondition method for the supplied Object to the supplied file.
internal/method/method.go:92
↓ 4 callers
Function
NewSetConditions
NewSetConditions returns a NewMethod that writes a SetConditions method for the supplied Object to the supplied file.
internal/method/method.go:81
↓ 4 callers
Method
Process
(n *types.Named, comment string)
internal/types/types.go:45
↓ 3 callers
Function
NewGetManagementPolicies
NewGetManagementPolicies returns a NewMethod that writes a GetManagementPolicies method for the supplied Object to the supplied file.
internal/method/method.go:252
↓ 3 callers
Function
NewGetRootResourceReference
NewGetRootResourceReference returns a NewMethod that writes a GetRootResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:361
↓ 3 callers
Function
NewManagedGetItems
NewManagedGetItems returns a New that writes a GetItems method for the supplied object to the supplied file.
internal/method/method.go:307
↓ 3 callers
Function
NewProviderConfigUsageGetItems
NewProviderConfigUsageGetItems returns a New that writes a GetItems method for the supplied object to the supplied file.
internal/method/method.go:372
↓ 3 callers
Function
NewSetManagementPolicies
NewSetManagementPolicies returns a NewMethod that writes a SetManagementPolicies method for the supplied Object to the supplied file.
internal/method/method.go:241
↓ 3 callers
Function
NewSetRootResourceReference
NewSetRootResourceReference returns a NewMethod that writes a SetRootResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:350
↓ 3 callers
Function
ParseMarkers
ParseMarkers parses comment markers from the supplied comment using the DefaultMarkerPrefix.
internal/comments/comments.go:88
↓ 2 callers
Function
FromFloatPtrValue
FromFloatPtrValue adapts a float pointer field for use as a CurrentValue.
pkg/convert/convert.go:38
↓ 2 callers
Function
FromPtrValue
NOTE(negz): There are many equivalents of FromPtrValue and ToPtrValue throughout the Crossplane codebase. We duplicate them here to reduce the number
pkg/convert/convert.go:33
↓ 2 callers
Function
IsNamed
IsNamed returns a Matcher that returns true if the supplied field has the supplied name.
internal/fields/fields.go:141
↓ 2 callers
Function
IsProviderConfigUsage
IsProviderConfigUsage returns a Matcher that returns true if the supplied field appears to be a Crossplane provider config usage.
internal/fields/fields.go:219
↓ 2 callers
Function
IsResourceSpec
IsResourceSpec returns a Matcher that returns true if the supplied field appears to be a Crossplane managed resource spec.
internal/fields/fields.go:195
↓ 2 callers
Function
IsResourceV2Spec
IsResourceV2Spec returns a Matcher that returns true if the supplied field appears to be a Crossplane managed resource spec.
internal/fields/fields.go:199
↓ 2 callers
Function
IsTypedProviderConfigUsage
IsTypedProviderConfigUsage returns a Matcher that returns true if the supplied field appears to be a Crossplane provider config usage with typed ref.
internal/fields/fields.go:225
↓ 2 callers
Function
Managed
Managed returns an Object matcher that returns true if the supplied Object is a Crossplane managed resource.
internal/match/match.go:33
↓ 2 callers
Function
ManagedV2
ManagedV2 returns an Object matcher that returns true if the supplied Object is a v2-style Crossplane managed resource.
internal/match/match.go:50
↓ 2 callers
Function
NewGetDeletionPolicy
NewGetDeletionPolicy returns a NewMethod that writes a GetDeletionPolicy method for the supplied Object to the supplied file.
internal/method/method.go:274
↓ 2 callers
Function
NewGetProviderConfigReference
NewGetProviderConfigReference returns a NewMethod that writes a GetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:136
↓ 2 callers
Function
NewGetRootProviderConfigReference
NewGetRootProviderConfigReference returns a NewMethod that writes a GetProviderConfigReference method for the supplied Object to the supplied file. No
internal/method/method.go:339
↓ 2 callers
Function
NewGetRootProviderConfigTypedReference
NewGetRootProviderConfigTypedReference returns a NewMethod that writes a GetProviderConfigTypedReference method for the supplied Object to the supplie
internal/method/method.go:404
↓ 2 callers
Function
NewGetTypedProviderConfigReference
NewGetTypedProviderConfigReference returns a NewMethod that writes a GetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:158
↓ 2 callers
Function
NewGetUsers
NewGetUsers returns a NewMethod that writes a GetUsers method for the supplied Object to the supplied file.
internal/method/method.go:296
↓ 2 callers
Function
NewGetWriteConnectionSecretToReference
NewGetWriteConnectionSecretToReference returns a NewMethod that writes a GetWriteConnectionSecretToReference method for the supplied Object to the sup
internal/method/method.go:182
↓ 2 callers
Function
NewLocalGetWriteConnectionSecretToReference
NewLocalGetWriteConnectionSecretToReference returns a NewMethod that writes a GetWriteConnectionSecretToReference method for the supplied Object to th
internal/method/method.go:230
↓ 2 callers
Function
NewLocalSetWriteConnectionSecretToReference
NewLocalSetWriteConnectionSecretToReference returns a NewMethod that writes a SetWriteConnectionSecretToReference method for the supplied Object to th
internal/method/method.go:218
↓ 2 callers
Function
NewResolveReferences
NewResolveReferences returns a NewMethod that writes a ResolveReferences for given managed resource, if needed.
internal/method/resolver.go:56
↓ 2 callers
Function
NewResolveReferencesCommon
NewResolveReferencesCommon returns a NewMethod that writes a ResolveReferences for given managed resource, if needed.
internal/method/resolver.go:80
↓ 2 callers
Function
NewResolveReferencesV2
NewResolveReferencesV2 returns a NewMethod that writes a ResolveReferences for given managed resource, if needed.
internal/method/resolver.go:68
↓ 2 callers
Function
NewSetDeletionPolicy
NewSetDeletionPolicy returns a NewMethod that writes a SetDeletionPolicy method for the supplied Object to the supplied file.
internal/method/method.go:263
↓ 2 callers
Function
NewSetProviderConfigReference
NewSetProviderConfigReference returns a NewMethod that writes a SetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:125
↓ 2 callers
Function
NewSetRootProviderConfigReference
NewSetRootProviderConfigReference returns a NewMethod that writes a SetProviderConfigReference method for the supplied Object to the supplied file. No
internal/method/method.go:325
↓ 2 callers
Function
NewSetRootProviderConfigTypedReference
NewSetRootProviderConfigTypedReference returns a NewMethod that writes a SetProviderConfigTypedReference method for the supplied Object to the supplie
internal/method/method.go:390
↓ 2 callers
Function
NewSetTypedProviderConfigReference
NewSetTypedProviderConfigReference returns a NewMethod that writes a SetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:147
↓ 2 callers
Function
NewSetUsers
NewSetUsers returns a NewMethod that writes a SetUsers method for the supplied Object to the supplied file.
internal/method/method.go:285
↓ 2 callers
Function
NewSetWriteConnectionSecretToReference
NewSetWriteConnectionSecretToReference returns a NewMethod that writes a SetWriteConnectionSecretToReference method for the supplied Object to the sup
internal/method/method.go:170
↓ 2 callers
Function
NewTraverser
NewTraverser returns a new Traverser.
internal/types/types.go:73
↓ 2 callers
Function
PrintFields
PrintFields function recursively traverses through the keys.
cmd/breakingChanges/main.go:59
↓ 2 callers
Function
ToFloatPtrValue
ToFloatPtrValue adapts a ResolvedValue for use as a float64 pointer field.
pkg/convert/convert.go:61
↓ 2 callers
Function
ToPtrValue
ToPtrValue adapts a ResolvedValue for use as a string pointer field. Deprecated: Use ptr.To from k8s.io/utils/ptr.
pkg/convert/convert.go:56
↓ 2 callers
Function
encapsulate
encapsulate goes through the fields and encapsulates the final call with nil guard and/or for loops.
internal/method/resolver.go:138
↓ 2 callers
Function
getTypeCodeFromPath
(path string, nameSuffix ...string)
internal/method/reference_processor.go:182
↓ 1 callers
Method
Before
Before returns the comments before the supplied Object, if any. A comment is deemed to be 'before' (rather than 'for') an Object if it ends exactly on
internal/comments/comments.go:65
↓ 1 callers
Function
DefinedOutside
DefinedOutside returns a MethodFilter that returns true if the supplied object has a method with the supplied name that is not defined in the supplied
internal/method/method.go:63
↓ 1 callers
Function
FromFloatPtrValues
FromFloatPtrValues adapts a slice of float64 pointer fields for use as CurrentValues.
pkg/convert/convert.go:98
↓ 1 callers
Function
FromIntPtrValue
FromIntPtrValue adapts an int pointer field for use as a CurrentValue.
pkg/convert/convert.go:46
↓ 1 callers
Function
FromIntPtrValues
FromIntPtrValues adapts a slice of int64 pointer fields for use as CurrentValues.
pkg/convert/convert.go:107
↓ 1 callers
Function
FromPtrValues
FromPtrValues adapts a slice of string pointer fields for use as CurrentValues. NOTE: Do not use this utility function unless you have to. Using point
pkg/convert/convert.go:89
↓ 1 callers
Function
GenerateManagedLegacy
GenerateManagedLegacy generates the resource.Managed method set.
cmd/angryjet/main.go:108
↓ 1 callers
Function
GenerateManagedListLegacy
GenerateManagedListLegacy generates the resource.ManagedList method set.
cmd/angryjet/main.go:170
↓ 1 callers
Function
GenerateManagedListModern
GenerateManagedListModern generates the resource.ManagedList method set for v2-style namespaced MRs.
cmd/angryjet/main.go:192
↓ 1 callers
Function
GenerateManagedModern
GenerateManagedModern generates the resource.Managed method set for v2-style namespaced MRs.
cmd/angryjet/main.go:140
↓ 1 callers
Function
GenerateProviderConfig
GenerateProviderConfig generates the resource.ProviderConfig method set.
cmd/angryjet/main.go:214
↓ 1 callers
Function
GenerateProviderConfigUsageLegacy
GenerateProviderConfigUsageLegacy generates the resource.ProviderConfigUsage method set.
cmd/angryjet/main.go:237
↓ 1 callers
Function
GenerateProviderConfigUsageListLegacy
GenerateProviderConfigUsageListLegacy generates the resource.ProviderConfigUsageList method set.
cmd/angryjet/main.go:284
↓ 1 callers
Function
GenerateProviderConfigUsageListModern
GenerateProviderConfigUsageListModern generates the resource.ProviderConfigUsageList method set for XPv2 namespaced MRs.
cmd/angryjet/main.go:306
↓ 1 callers
Function
GenerateProviderConfigUsageModern
GenerateProviderConfigUsageModern generates the v2.ProviderConfigUsage method set.
cmd/angryjet/main.go:260
↓ 1 callers
Function
GenerateReferencesLegacy
GenerateReferencesLegacy generates reference resolver calls.
cmd/angryjet/main.go:326
↓ 1 callers
Function
GenerateReferencesModern
GenerateReferencesModern generates reference resolver calls for XPv2 namespaced MRs.
cmd/angryjet/main.go:350
↓ 1 callers
Method
GetReferences
GetReferences returns all the references accumulated so far from processing.
internal/method/reference_processor.go:178
↓ 1 callers
Function
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 th
internal/match/match.go:177
↓ 1 callers
Function
IsProviderConfigStatus
IsProviderConfigStatus returns a Matcher that returns true if the supplied field appears to be a Crossplane provider config status.
internal/fields/fields.go:213
↓ 1 callers
Function
ManagedList
ManagedList returns an Object matcher that returns true if the supplied Object is a list of Crossplane managed resource.
internal/match/match.go:67
↓ 1 callers
Function
ManagedListV2
ManagedListV2 returns an Object matcher that returns true if the supplied Object is a list of Crossplane managed resource.
internal/match/match.go:87
↓ 1 callers
Function
NewGetPublishConnectionDetailsTo
NewGetPublishConnectionDetailsTo returns a NewMethod that writes a GetPublishConnectionDetailsTo method for the supplied Object to the supplied file.
internal/method/method.go:206
↓ 1 callers
Function
NewGetResourceReference
NewGetResourceReference returns a NewMethod that writes a GetResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:114
↓ 1 callers
Function
NewReferenceProcessor
NewReferenceProcessor returns a new *ReferenceProcessor .
internal/method/reference_processor.go:90
↓ 1 callers
Function
NewSetPublishConnectionDetailsTo
NewSetPublishConnectionDetailsTo returns a NewMethod that writes a NewSetPublishConnectionDetailsTo method for the supplied Object to the supplied fil
internal/method/method.go:194
↓ 1 callers
Function
NewSetResourceReference
NewSetResourceReference returns a NewMethod that writes a SetResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:103
↓ 1 callers
Function
ParseMarkersWithPrefix
ParseMarkersWithPrefix parses comment markers from the supplied comment. Any line that begins with the supplied prefix is considered a comment marker.
internal/comments/comments.go:100
↓ 1 callers
Function
ProducedNothing
ProducedNothing returns true if the supplied data is either not a valid Go source file, or a valid Go file that contains no top level objects or decla
internal/generate/generate.go:127
↓ 1 callers
Function
ProviderConfig
ProviderConfig returns an Object matcher that returns true if the supplied Object is a Crossplane ProviderConfig.
internal/match/match.go:107
↓ 1 callers
Function
ProviderConfigUsage
ProviderConfigUsage returns an Object matcher that returns true if the supplied Object is a Crossplane ProviderConfigUsage.
internal/match/match.go:122
↓ 1 callers
Function
ProviderConfigUsageList
ProviderConfigUsageList returns an Object matcher that returns true if the supplied Object is a list of Crossplane provider config usages.
internal/match/match.go:146
↓ 1 callers
Function
ProviderConfigUsageListV2
ProviderConfigUsageListV2 returns an Object matcher that returns true if the supplied Object is a list of Crossplane v2 style provider config usages.
internal/match/match.go:161
↓ 1 callers
Function
ProviderConfigUsageV2
ProviderConfigUsageV2 returns an Object matcher that returns true if the supplied Object is a Crossplane v2 style ProviderConfigUsage.
internal/match/match.go:134
↓ 1 callers
Function
ToFloatPtrValues
ToFloatPtrValues adapts ResolvedValues for use as a slice of float64 pointer fields.
pkg/convert/convert.go:129
next →
1–100 of 157, ranked by callers