Documentation ¶
Index ¶
- func DynamicFromField(s string) func(map[string]interface{}) string
- func EndDoc() map[string]interface{}
- func IsEndDoc(doc map[string]interface{}) bool
- func IsHttp(url string) bool
- func IsSoFile(url string) bool
- func LoadPlugin(url string) (*plugin.Plugin, error)
- func SigControl(handler func()) struct{}
- func SubMatchMapRegex(reg string, str string) (map[string]string, error)
- func YamlConvert(contentMapStr map[string]interface{}, target interface{}) error
- type Fragment
- type IncludeProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamicFromField ¶
DynamicFromField return a `function` with based on given str if str consist xxx{{field}}xxx, the `function` will replace `field` with doc[field] otherwise, the `function` simply return s
func SigControl ¶
func SigControl(handler func()) struct{}
SigControl provides a block over SIGTERM(Ctrl-C) and SIGINT which provides a graceful shutdown control when pod is killed
func YamlConvert ¶
YamlConvert try to convert contentMapStr to target with yaml (un)marshal
Types ¶
type Fragment ¶
type Fragment struct {
// contains filtered or unexported fields
}
func (*Fragment) UnmarshalYAML ¶
type IncludeProcessor ¶
type IncludeProcessor struct {
Target interface{}
}
func (*IncludeProcessor) UnmarshalYAML ¶
func (i *IncludeProcessor) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.