Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(id, name string) *is
Types ¶
type CacheBuilder ¶
type GetResourceIDAndNamer ¶
type Provider ¶
type Provider interface { // ID returns the canonical id of the thing, generated and // usable by whichever system has ownership of it. ID() string // the human-readable name of the thing. Name() string }
Provider is a tuple containing an ID and a Name. Names are assumed to be human-displayable versions of system IDs. Providers should always be populated, while a nil values is likely an error. Compliant structs should provide both a name and an ID, never just one. Values are not validated, so both values being empty is an allowed conditions, but the assumption is that downstream consumers will have problems as a result.
Click to show internal directories.
Click to hide internal directories.