Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEnv ¶
ConvertEnv []string to map[string]interface{}, example [IP=127.0.0.1,IP=192.160.0.2,Key=value] will convert to {IP:[127.0.0.1,192.168.0.2],key:value}
Types ¶
type Interface ¶
type Interface interface {
PreProcessor
// WrapperShell :If host already set env like DATADISK=/data
// This function add env to the shell, like:
// Input shell: cat /etc/hosts
// Output shell: DATADISK=/data cat /etc/hosts
// So that you can get env values in you shell script
WrapperShell(host net.IP, shell string) string
// RenderAll :render env to all the files in dir
RenderAll(host net.IP, dir string) error
}
func NewEnvProcessor ¶
type PreProcessor ¶
Click to show internal directories.
Click to hide internal directories.