mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-06 12:59:13 +00:00
⚡ Change consts
type to map[string]interface{}
This commit is contained in:
parent
e62ebea8d8
commit
776f9ce9af
@ -12,8 +12,8 @@ import (
|
||||
)
|
||||
|
||||
type ScriptingConfig struct {
|
||||
Consts map[string]string `yaml:"consts"`
|
||||
Source string `yaml:"source" default:""`
|
||||
Consts map[string]interface{} `yaml:"consts"`
|
||||
Source string `yaml:"source" default:""`
|
||||
}
|
||||
|
||||
type Script struct {
|
||||
|
@ -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 {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user