Discover Packages
github.com/credo-go/credo
internal
resourceid
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package resourceid canonicalizes stable resource identity tokens shared by
lifecycle-aware framework integrations.
Identity is a comparable canonical resource key.
Of returns the stable identity of value. Values implementing Provider
supply an explicit token; other values identify as themselves.
Valid reports whether identity was produced by Of .
type Provider interface {
ResourceIdentity() any
}
Provider lets a semantic wrapper identify the physical resource whose
lifecycle it represents. The returned token must be non-nil, comparable,
reflexively equal, and stable for the resource lifetime; a pointer is the
usual token.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.