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"` // TLSSettings contains TLS configurations that are specific to client // connection used to communicate with the Openshift API. TLSSettings configtls.TLSClientSetting `mapstructure:"tls"` ResourceAttributes metadata.ResourceAttributesConfig `mapstructure:"resource_attributes"` }
Config can contain user-specified inputs to overwrite default values. See `openshift.go#NewDetector` for more information.
func CreateDefaultConfig ¶ added in v0.81.0
func CreateDefaultConfig() Config
func (*Config) MergeWithDefaults ¶
MergeWithDefaults fills unset fields with default values.
Click to show internal directories.
Click to hide internal directories.