Documentation ¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
const (
DefaultInventoryCategory = "integration"
)
Variables ¶
var ( CustomAttrsID = PluginID{ Category: "metadata", Term: "attributes", } HostInfo = PluginID{ Category: "metadata", Term: "system", } EmptyInventorySource = PluginID{} )
PluginID list:
Functions ¶
This section is empty.
Types ¶
type PluginID ¶
PluginID identifies a plugin in a taxonomy-like form, given a Category name (e.g. `kernel`) and a Term (e.g. `sysctl`). Implements the next interfaces: json.Marshaler, json.Unmarshaler, yaml.Unmarshaler, fmt.Stringer, agent.Sortable
func FromString ¶
FromString creates a PluginID from a category/term string, returning error if it is not properly formatted
func NewDefaultInventoryPluginID ¶
NewDefaultInventoryPluginID creates a PluginID using default inventory category
func NewPluginID ¶
NewPluginID creates a new PluginID.
func (PluginID) MarshalJSON ¶
MarshallJSON creates a JSON `category/term` string representation
func (PluginID) SortKey ¶
SortKey returns the "category/term" string representation of the PluginID, ready to be used as a sorting key
func (*PluginID) UnmarshalJSON ¶
UnmarshallJSON creates a PluginID from its JSON `category/term` string representation
func (*PluginID) UnmarshalYAML ¶
UnmarshalYAML populates the PluginID given the yaml.Unmarshaler interface