Documentation ¶
Overview ¶
Package adapters is for data conversion.
Index ¶
- Variables
- func ConfigFromJSONString(configStr string) (map[string]interface{}, error)
- func ConfigFromString(configStr string) (map[interface{}]interface{}, error)
- func ConfigToContainerProbe(config map[interface{}]interface{}) (*corev1.Probe, error)
- func ConfigToMetricsPort(logger logr.Logger, config map[interface{}]interface{}) (int32, error)
- type ComponentType
- type CwaConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidYAML represents an error in the format of the configuration file. ErrInvalidYAML = errors.New("couldn't parse the yaml configuration") ErrInvalidJSON = errors.New("couldn't parse cloudwatch agent json configuration") )
View Source
var ( ErrNoServiceExtensions = errors.New("service property in the configuration doesn't contain extensions") ErrNoServiceExtensionHealthCheck = errors.New("no healthcheck extension available in service extension configuration") )
Functions ¶
func ConfigFromJSONString ¶
func ConfigFromString ¶
ConfigFromString extracts a configuration map from the given string. If the given string isn't a valid YAML, ErrInvalidYAML is returned.
func ConfigToContainerProbe ¶
ConfigToContainerProbe converts the incoming configuration object into a container probe or returns an error.
Types ¶
type ComponentType ¶
type ComponentType int
const ( ComponentTypeReceiver ComponentType = iota ComponentTypeExporter )
func (ComponentType) String ¶
func (c ComponentType) String() string
Click to show internal directories.
Click to hide internal directories.