libraryuse

package
v1.170.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package libraryuse is who loads a managed-script library (#1941): one script whose current source loads it, and the refusal a delete of a library still in use answers with. It is its own package so the script contract in pkg/script can carry it without growing that package's public surface, as internal/runstate is for the run record.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InUseError

type InUseError struct {
	Users []string
}

InUseError is a refused delete of a library: Users are the scripts whose current source loads it. Its message is what the caller is told.

func (*InUseError) Error

func (e *InUseError) Error() string

type Use

type Use struct {
	ScriptID    string `json:"script_id" example:"3f0c9b1e-8a41-4c55-9d0e-2b7a6c1d4e5f"`
	Name        string `json:"name" example:"weekly-sales"`
	DisplayName string `json:"display_name" example:"Weekly Sales"`
	OwnerEmail  string `json:"owner_email" example:"jane@example.com"`
	Version     int    `json:"version" example:"2"`
}

Use is one script whose current source loads a library, and the version of the library it loads.

Jump to

Keyboard shortcuts

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