Documentation
¶
Index ¶
Constants ¶
View Source
const ( LibraryName = "scriptling.provision.file" LibraryDesc = "File provisioning utilities for creating and updating files with correct permissions" )
View Source
const ( StatusCreated = "created" StatusUpdated = "updated" StatusUnchanged = "unchanged" StatusRemoved = "removed" StatusAbsent = "absent" StatusExists = "exists" )
Variables ¶
This section is empty.
Functions ¶
func RegisterConfigured ¶ added in v0.27.0
func RegisterConfigured(registrar interface{ RegisterLibrary(*object.Library) }, paths fssecurity.Config)
RegisterConfigured registers the library with a filesystem allow-path policy. It threads the same fssecurity.Config used by os/pathlib/shutil/zipfile so that scriptling.provision.file obeys --allowed-paths. Pass fssecurity.Config{} for no restriction.
A fresh library is built on every call, so each registrar gets exactly the policy it passed — safe for an embedder that registers this library against interpreters with different per-request/per-tenant configs, not just a single process-wide policy set once at startup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.