Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FetchFile = func(src string) ([]byte, error) { var f []byte var err error if env.Config().GetBool("FetchFromRemote") { f, err = fetchFromRemote(src) } else { f, err = FetchFromLocal(src) } return f, err }
FetchFile first tries to retrieve file from local disk (workDir/<Hostname>/). If it fails then connects to Hostname to retrieve file and stores it locally To force a network connection remove workDir/... prior to exec.
Functions ¶
func FetchFromLocal ¶
FetchFromLocal retrieve file from local WorkDir
func FetchStringSource ¶
func FetchStringSource(stringSource legacyconfigv1.StringSource) (string, error)
FetchStringSource fetches a string from an source cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.