Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HardcodedIgnorePatterns = []string{
".git",
".git/**",
".svn",
".hg",
".env",
".env*",
".env.*",
"*.env",
"credentials.json",
"credentials.yaml",
"secrets.yaml",
"secrets.json",
"*.key",
"*.pem",
"*.p12",
"*.pfx",
".idea",
".vscode",
".DS_Store",
"Thumbs.db",
"node_modules",
}
HardcodedIgnorePatterns are always excluded for security.
Functions ¶
func CollectIgnorePatterns ¶
CollectIgnorePatterns gathers ignore patterns from all sources.
func CreateZip ¶
CreateZip writes a zip archive of srcDir into w, respecting the same ignore rules as Create (hardcoded security excludes + .gitignore + .dockerignore + .taufinityignore + taufinity.yaml).
Returns the number of files written. An empty source directory (zero files after filtering) is reported as an error so callers don't silently upload empty archives.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.