Help us shape the future of Go! Take the 2026 Go Developer Survey

fetch

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LibraryName = "scriptling.provision.fetch"
	LibraryDesc = "Fetch provisioning utilities for downloading files and unpacking zip archives"

	StatusCreated   = "created"
	StatusUpdated   = "updated"
	StatusUnchanged = "unchanged"
)

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, guard *netsecurity.Guard)

RegisterConfigured registers the library with a filesystem allow-path policy and a netsecurity guard. It threads the same configs used by os/pathlib and requests so that scriptling.provision.fetch obeys --allowed-paths and --network-policy. Pass fssecurity.Config{} and a nil guard for no restriction.

A fresh library is built on every call, so each registrar gets exactly the policy and guard 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