mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-08 14:01:51 +00:00
⚡ Change consts
type to map[string]interface{}
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ScriptingConfig struct {
|
type ScriptingConfig struct {
|
||||||
Consts map[string]string `yaml:"consts"`
|
Consts map[string]interface{} `yaml:"consts"`
|
||||||
Source string `yaml:"source" default:""`
|
Source string `yaml:"source" default:""`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -177,7 +177,7 @@ func (connector *Connector) PostLicense(license string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (connector *Connector) PostConsts(consts map[string]string) {
|
func (connector *Connector) PostConsts(consts map[string]interface{}) {
|
||||||
if len(consts) == 0 {
|
if len(consts) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user