file

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 8 Imported by: 0

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 Register

func Register(registrar interface{ RegisterLibrary(*object.Library) })

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL