Documentation
¶
Overview ¶
Package types defines shared type definitions and interfaces used across the crossplane-diff application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositionProvider ¶
type CompositionProvider func(ctx context.Context, res *un.Unstructured) (*apiextensionsv1.Composition, error)
CompositionProvider is a function that provides a composition for a given resource.
type FindCompositesOptions ¶ added in v0.8.0
type FindCompositesOptions struct {
// Namespace scopes default discovery to a single namespace. Empty = all namespaces.
// Ignored when Refs is non-empty (refs carry their own namespace).
Namespace string
// Refs limits the result to specific user-named composites. When non-empty, a ref is included
// in the result only if (a) the named resource exists at the ref's [namespace/]name and (b) it
// references the supplied composition. Refs that don't satisfy both are silently omitted; the
// caller derives "unmatched" from the diff between input refs and returned objects.
Refs []k8stypes.NamespacedName
}
FindCompositesOptions narrows what CompositionClient.FindComposites returns. Lives here (not in the crossplane client package) so test mocks in cmd/diff/testutils can implement the interface without creating an import cycle with cmd/diff/client/crossplane.
Click to show internal directories.
Click to hide internal directories.