Documentation ¶
Index ¶
- Constants
- Variables
- func Download(url, outPath string) error
- func DownloadAndListFalcoCodeFiles() ([]string, error)
- func GenSourceFile(w io.Writer, info *GenTemplateInfo) error
- func ListDirFiles(dirPath string, recursive bool) ([]string, error)
- func Unzip(zipFile, outDir string) error
- func VarNameFromFilePath(path, prefix string) string
- type GenTemplateInfo
- type LargeFileVarInfo
- type StringFileVarInfo
Constants ¶
View Source
const ( // FalcoCodeVersion is a git tag used to pull the code of // falcosecurity/falco and extract the test data files used in the // legacy Python regression tests FalcoCodeVersion = "0.34.1" FalcoCodeDir = "falco-" + FalcoCodeVersion )
Variables ¶
View Source
var ( DownloadDir = "" FalcoCodeURL = fmt.Sprintf("https://github.com/falcosecurity/falco/archive/refs/tags/%s.zip", FalcoCodeVersion) )
Functions ¶
func GenSourceFile ¶
func GenSourceFile(w io.Writer, info *GenTemplateInfo) error
func VarNameFromFilePath ¶
Types ¶
type GenTemplateInfo ¶
type GenTemplateInfo struct { Timestamp time.Time PackageName string LargeFiles []*LargeFileVarInfo StringFiles []*StringFileVarInfo }
type LargeFileVarInfo ¶
type StringFileVarInfo ¶
Click to show internal directories.
Click to hide internal directories.