Documentation ¶
Overview ¶
Package resource provides functionality for resource, which capture identifying information about the entities for which signals are exported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource describes an entity about which identifying information and metadata is exposed.
func Merge ¶
Merge creates a new resource by combining resource a and b. If there are common key between resource a and b then value from resource a is preserved. If one of the resources is nil then the other resource is returned without creating a new one.
func New ¶
New creates a resource from a set of attributes. If there are duplicates keys then the first value of the key is preserved.
func (Resource) Attributes ¶
Attributes returns a copy of attributes from the resource.
Directories ¶
Path | Synopsis |
---|---|
Package resourcekeys contains well known type and label keys for resources.
|
Package resourcekeys contains well known type and label keys for resources. |