Documentation
¶
Overview ¶
Package handler defines a common interface for handling provider-specific resources in Crossplane functions. This abstraction exists because multiple providers (e.g., GitLab, Azure, GitHub) may require different logic for resource operations, but share the same high-level tasks such as retrieving identifiers, paths, and checking resource existence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
GetNamespaceID(des *resource.DesiredComposed) (int, error)
GetPath(des *resource.DesiredComposed) (string, error)
CheckResourceExists(obs resource.ObservedComposed) (string, bool)
}
Handler defines a common contract for working with provider-specific resources in Crossplane functions.
The interface ensures consistent operations across providers by specifying methods for:
- GetNamespaceID: Extracting the namespace or parent ID from a desired resource.
- GetPath: Retrieving the resource path from a desired resource.
- CheckResourceExists: Determining if the resource already exists based on observed conditions.
Implementations of this interface (such as GitLab-specific handlers) provide provider-specific logic.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package gitlabhandler provides helper types and methods for interacting with GitLab resources in the context of Crossplane compositions.
|
Package gitlabhandler provides helper types and methods for interacting with GitLab resources in the context of Crossplane compositions. |