Documentation
¶
Index ¶
- Constants
- func ExecutionTimeout() time.Duration
- func PolicyJSON(policy Policy) ([]byte, error)
- func RejectSecretEnvironment(env []string) error
- func SanitizedEnvironment(cacheRoot string) []string
- func SecretLikeEnvName(name string) bool
- func SecretLikePathName(rel string) bool
- func UnsafeExportDirectory(rel string) bool
- func UnsafeExportFile(rel string) bool
- type ExportResult
- type File
- type Limits
- type Options
- type Policy
- type Workspace
Constants ¶
View Source
const ( DefaultMaxFiles = 128 DefaultMaxFileBytes = 256 * 1024 DefaultMaxTotalBytes = 2 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func ExecutionTimeout ¶
func PolicyJSON ¶
func RejectSecretEnvironment ¶
func SanitizedEnvironment ¶
func SecretLikeEnvName ¶
func SecretLikePathName ¶
func UnsafeExportDirectory ¶
func UnsafeExportFile ¶
Types ¶
type ExportResult ¶
func ExportArchive ¶
func ExportArchive(sourceDir string, archivePath string, options Options) (ExportResult, error)
type Policy ¶
type Policy struct {
HostedExecutionEnabled bool `json:"hostedExecutionEnabled"`
Workspace string `json:"workspace"`
Network string `json:"network"`
Filesystem string `json:"filesystem"`
Persistence string `json:"persistence"`
VersionPinning string `json:"versionPinning"`
Export string `json:"export"`
Limits Limits `json:"limits"`
Environment []string `json:"environment"`
RequiredAbuseControls []string `json:"requiredAbuseControls"`
}
func DefaultPolicy ¶
func DefaultPolicy() Policy
Click to show internal directories.
Click to hide internal directories.