MCPcopy Index your code

hub / github.com/crossplane/crossplane-tools / functions

Functions157 in github.com/crossplane/crossplane-tools

↓ 76 callersMethodName
()
internal/method/method_test.go:34
↓ 52 callersMethodAnd
And chains the original Matcher o with a new Matcher m.
internal/fields/fields.go:76
↓ 35 callersFunctionIsEmbedded
IsEmbedded returns a Matcher that returns true if the supplied field is embedded.
internal/fields/fields.go:125
↓ 13 callersFunctionHasFieldThat
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 callersFunctionIn
In returns all comments in a particular package.
internal/comments/comments.go:44
↓ 13 callersFunctionIsTypeMeta
IsTypeMeta returns a Matcher that returns true if the supplied field appears to be Kubernetes type metadata.
internal/fields/fields.go:171
↓ 13 callersFunctionIsTypeNamed
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 callersFunctionAllOf
AllOf returns an Object matcher that returns true if all of the supplied Object matchers return true.
internal/match/match.go:206
↓ 11 callersFunctionDoesNotHaveMarker
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 callersFunctionWithHeaders
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 callersFunctionWithImportAliases
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 callersFunctionWithMatcher
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 callersFunctionWriteMethods
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 callersFunctionHas
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 callersFunctionIsObjectMeta
IsObjectMeta returns a Matcher that returns true if the supplied field appears to be Kubernetes object metadata.
internal/fields/fields.go:175
↓ 6 callersMethodFor
For returns the comments for the supplied Object, if any.
internal/comments/comments.go:57
↓ 5 callersFunctionIsSpec
IsSpec returns a Matcher that returns true if the supplied field appears to be a Kubernetes resource spec.
internal/fields/fields.go:183
↓ 5 callersFunctionIsStatus
IsStatus returns a Matcher that returns true if the supplied field appears to be a Kubernetes resource status.
internal/fields/fields.go:191
↓ 4 callersFunctionIsItems
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 callersFunctionIsResourceStatus
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 callersFunctionIsSlice
IsSlice returns a Matcher that returns true if the supplied field is a slice.
internal/fields/fields.go:132
↓ 4 callersFunctionNewGetCondition
NewGetCondition returns a NewMethod that writes a GetCondition method for the supplied Object to the supplied file.
internal/method/method.go:92
↓ 4 callersFunctionNewSetConditions
NewSetConditions returns a NewMethod that writes a SetConditions method for the supplied Object to the supplied file.
internal/method/method.go:81
↓ 4 callersMethodProcess
(n *types.Named, comment string)
internal/types/types.go:45
↓ 3 callersFunctionNewGetManagementPolicies
NewGetManagementPolicies returns a NewMethod that writes a GetManagementPolicies method for the supplied Object to the supplied file.
internal/method/method.go:252
↓ 3 callersFunctionNewGetRootResourceReference
NewGetRootResourceReference returns a NewMethod that writes a GetRootResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:361
↓ 3 callersFunctionNewManagedGetItems
NewManagedGetItems returns a New that writes a GetItems method for the supplied object to the supplied file.
internal/method/method.go:307
↓ 3 callersFunctionNewProviderConfigUsageGetItems
NewProviderConfigUsageGetItems returns a New that writes a GetItems method for the supplied object to the supplied file.
internal/method/method.go:372
↓ 3 callersFunctionNewSetManagementPolicies
NewSetManagementPolicies returns a NewMethod that writes a SetManagementPolicies method for the supplied Object to the supplied file.
internal/method/method.go:241
↓ 3 callersFunctionNewSetRootResourceReference
NewSetRootResourceReference returns a NewMethod that writes a SetRootResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:350
↓ 3 callersFunctionParseMarkers
ParseMarkers parses comment markers from the supplied comment using the DefaultMarkerPrefix.
internal/comments/comments.go:88
↓ 2 callersFunctionFromFloatPtrValue
FromFloatPtrValue adapts a float pointer field for use as a CurrentValue.
pkg/convert/convert.go:38
↓ 2 callersFunctionFromPtrValue
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 callersFunctionIsNamed
IsNamed returns a Matcher that returns true if the supplied field has the supplied name.
internal/fields/fields.go:141
↓ 2 callersFunctionIsProviderConfigUsage
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 callersFunctionIsResourceSpec
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 callersFunctionIsResourceV2Spec
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 callersFunctionIsTypedProviderConfigUsage
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 callersFunctionManaged
Managed returns an Object matcher that returns true if the supplied Object is a Crossplane managed resource.
internal/match/match.go:33
↓ 2 callersFunctionManagedV2
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 callersFunctionNewGetDeletionPolicy
NewGetDeletionPolicy returns a NewMethod that writes a GetDeletionPolicy method for the supplied Object to the supplied file.
internal/method/method.go:274
↓ 2 callersFunctionNewGetProviderConfigReference
NewGetProviderConfigReference returns a NewMethod that writes a GetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:136
↓ 2 callersFunctionNewGetRootProviderConfigReference
NewGetRootProviderConfigReference returns a NewMethod that writes a GetProviderConfigReference method for the supplied Object to the supplied file. No
internal/method/method.go:339
↓ 2 callersFunctionNewGetRootProviderConfigTypedReference
NewGetRootProviderConfigTypedReference returns a NewMethod that writes a GetProviderConfigTypedReference method for the supplied Object to the supplie
internal/method/method.go:404
↓ 2 callersFunctionNewGetTypedProviderConfigReference
NewGetTypedProviderConfigReference returns a NewMethod that writes a GetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:158
↓ 2 callersFunctionNewGetUsers
NewGetUsers returns a NewMethod that writes a GetUsers method for the supplied Object to the supplied file.
internal/method/method.go:296
↓ 2 callersFunctionNewGetWriteConnectionSecretToReference
NewGetWriteConnectionSecretToReference returns a NewMethod that writes a GetWriteConnectionSecretToReference method for the supplied Object to the sup
internal/method/method.go:182
↓ 2 callersFunctionNewLocalGetWriteConnectionSecretToReference
NewLocalGetWriteConnectionSecretToReference returns a NewMethod that writes a GetWriteConnectionSecretToReference method for the supplied Object to th
internal/method/method.go:230
↓ 2 callersFunctionNewLocalSetWriteConnectionSecretToReference
NewLocalSetWriteConnectionSecretToReference returns a NewMethod that writes a SetWriteConnectionSecretToReference method for the supplied Object to th
internal/method/method.go:218
↓ 2 callersFunctionNewResolveReferences
NewResolveReferences returns a NewMethod that writes a ResolveReferences for given managed resource, if needed.
internal/method/resolver.go:56
↓ 2 callersFunctionNewResolveReferencesCommon
NewResolveReferencesCommon returns a NewMethod that writes a ResolveReferences for given managed resource, if needed.
internal/method/resolver.go:80
↓ 2 callersFunctionNewResolveReferencesV2
NewResolveReferencesV2 returns a NewMethod that writes a ResolveReferences for given managed resource, if needed.
internal/method/resolver.go:68
↓ 2 callersFunctionNewSetDeletionPolicy
NewSetDeletionPolicy returns a NewMethod that writes a SetDeletionPolicy method for the supplied Object to the supplied file.
internal/method/method.go:263
↓ 2 callersFunctionNewSetProviderConfigReference
NewSetProviderConfigReference returns a NewMethod that writes a SetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:125
↓ 2 callersFunctionNewSetRootProviderConfigReference
NewSetRootProviderConfigReference returns a NewMethod that writes a SetProviderConfigReference method for the supplied Object to the supplied file. No
internal/method/method.go:325
↓ 2 callersFunctionNewSetRootProviderConfigTypedReference
NewSetRootProviderConfigTypedReference returns a NewMethod that writes a SetProviderConfigTypedReference method for the supplied Object to the supplie
internal/method/method.go:390
↓ 2 callersFunctionNewSetTypedProviderConfigReference
NewSetTypedProviderConfigReference returns a NewMethod that writes a SetProviderConfigReference method for the supplied Object to the supplied file.
internal/method/method.go:147
↓ 2 callersFunctionNewSetUsers
NewSetUsers returns a NewMethod that writes a SetUsers method for the supplied Object to the supplied file.
internal/method/method.go:285
↓ 2 callersFunctionNewSetWriteConnectionSecretToReference
NewSetWriteConnectionSecretToReference returns a NewMethod that writes a SetWriteConnectionSecretToReference method for the supplied Object to the sup
internal/method/method.go:170
↓ 2 callersFunctionNewTraverser
NewTraverser returns a new Traverser.
internal/types/types.go:73
↓ 2 callersFunctionPrintFields
PrintFields function recursively traverses through the keys.
cmd/breakingChanges/main.go:59
↓ 2 callersFunctionToFloatPtrValue
ToFloatPtrValue adapts a ResolvedValue for use as a float64 pointer field.
pkg/convert/convert.go:61
↓ 2 callersFunctionToPtrValue
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 callersFunctionencapsulate
encapsulate goes through the fields and encapsulates the final call with nil guard and/or for loops.
internal/method/resolver.go:138
↓ 2 callersFunctiongetTypeCodeFromPath
(path string, nameSuffix ...string)
internal/method/reference_processor.go:182
↓ 1 callersMethodBefore
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 callersFunctionDefinedOutside
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 callersFunctionFromFloatPtrValues
FromFloatPtrValues adapts a slice of float64 pointer fields for use as CurrentValues.
pkg/convert/convert.go:98
↓ 1 callersFunctionFromIntPtrValue
FromIntPtrValue adapts an int pointer field for use as a CurrentValue.
pkg/convert/convert.go:46
↓ 1 callersFunctionFromIntPtrValues
FromIntPtrValues adapts a slice of int64 pointer fields for use as CurrentValues.
pkg/convert/convert.go:107
↓ 1 callersFunctionFromPtrValues
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 callersFunctionGenerateManagedLegacy
GenerateManagedLegacy generates the resource.Managed method set.
cmd/angryjet/main.go:108
↓ 1 callersFunctionGenerateManagedListLegacy
GenerateManagedListLegacy generates the resource.ManagedList method set.
cmd/angryjet/main.go:170
↓ 1 callersFunctionGenerateManagedListModern
GenerateManagedListModern generates the resource.ManagedList method set for v2-style namespaced MRs.
cmd/angryjet/main.go:192
↓ 1 callersFunctionGenerateManagedModern
GenerateManagedModern generates the resource.Managed method set for v2-style namespaced MRs.
cmd/angryjet/main.go:140
↓ 1 callersFunctionGenerateProviderConfig
GenerateProviderConfig generates the resource.ProviderConfig method set.
cmd/angryjet/main.go:214
↓ 1 callersFunctionGenerateProviderConfigUsageLegacy
GenerateProviderConfigUsageLegacy generates the resource.ProviderConfigUsage method set.
cmd/angryjet/main.go:237
↓ 1 callersFunctionGenerateProviderConfigUsageListLegacy
GenerateProviderConfigUsageListLegacy generates the resource.ProviderConfigUsageList method set.
cmd/angryjet/main.go:284
↓ 1 callersFunctionGenerateProviderConfigUsageListModern
GenerateProviderConfigUsageListModern generates the resource.ProviderConfigUsageList method set for XPv2 namespaced MRs.
cmd/angryjet/main.go:306
↓ 1 callersFunctionGenerateProviderConfigUsageModern
GenerateProviderConfigUsageModern generates the v2.ProviderConfigUsage method set.
cmd/angryjet/main.go:260
↓ 1 callersFunctionGenerateReferencesLegacy
GenerateReferencesLegacy generates reference resolver calls.
cmd/angryjet/main.go:326
↓ 1 callersFunctionGenerateReferencesModern
GenerateReferencesModern generates reference resolver calls for XPv2 namespaced MRs.
cmd/angryjet/main.go:350
↓ 1 callersMethodGetReferences
GetReferences returns all the references accumulated so far from processing.
internal/method/reference_processor.go:178
↓ 1 callersFunctionHasMarker
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 callersFunctionIsProviderConfigStatus
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 callersFunctionManagedList
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 callersFunctionManagedListV2
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 callersFunctionNewGetPublishConnectionDetailsTo
NewGetPublishConnectionDetailsTo returns a NewMethod that writes a GetPublishConnectionDetailsTo method for the supplied Object to the supplied file.
internal/method/method.go:206
↓ 1 callersFunctionNewGetResourceReference
NewGetResourceReference returns a NewMethod that writes a GetResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:114
↓ 1 callersFunctionNewReferenceProcessor
NewReferenceProcessor returns a new *ReferenceProcessor .
internal/method/reference_processor.go:90
↓ 1 callersFunctionNewSetPublishConnectionDetailsTo
NewSetPublishConnectionDetailsTo returns a NewMethod that writes a NewSetPublishConnectionDetailsTo method for the supplied Object to the supplied fil
internal/method/method.go:194
↓ 1 callersFunctionNewSetResourceReference
NewSetResourceReference returns a NewMethod that writes a SetResourceReference method for the supplied Object to the supplied file.
internal/method/method.go:103
↓ 1 callersFunctionParseMarkersWithPrefix
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 callersFunctionProducedNothing
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 callersFunctionProviderConfig
ProviderConfig returns an Object matcher that returns true if the supplied Object is a Crossplane ProviderConfig.
internal/match/match.go:107
↓ 1 callersFunctionProviderConfigUsage
ProviderConfigUsage returns an Object matcher that returns true if the supplied Object is a Crossplane ProviderConfigUsage.
internal/match/match.go:122
↓ 1 callersFunctionProviderConfigUsageList
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 callersFunctionProviderConfigUsageListV2
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 callersFunctionProviderConfigUsageV2
ProviderConfigUsageV2 returns an Object matcher that returns true if the supplied Object is a Crossplane v2 style ProviderConfigUsage.
internal/match/match.go:134
↓ 1 callersFunctionToFloatPtrValues
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