Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeStr is type of detector.
TypeStr = "openshift"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
func NewDetector(set processor.CreateSettings, dcfg internal.DetectorConfig) (internal.Detector, error)
NewDetector returns a detector which can detect resource attributes on OpenShift 4.
Types ¶
type Config ¶
type Config struct { // Address is the address of the openshift api server Address string `mapstructure:"address"` // Token is used to identify against the openshift api server Token string `mapstructure:"token"` }
Config can contain user-specified inputs to overwrite default values. See `openshift.go#NewDetector` for more information.
func (*Config) MergeWithDefaults ¶
MergeWithDefaults fills unset fields with default values.
Click to show internal directories.
Click to hide internal directories.