scriptnotify

package
v1.146.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 3 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 scriptnotify reads a managed script's platform.notify and platform.publish arguments into the notify tool call each one issues.

It holds only the reading: what each argument may be, and the payload it becomes. Issuing the call -- admission, the write barrier in a draft, the funnel every host call goes through, recording what was posted -- stays in internal/platform/scriptrun with the rest of the host. The two bindings' arguments grew past what that package's size budget had room for, and nothing in them needs a run.

Index

Constants

View Source
const Tool = "notify"

Tool is the platform tool both bindings issue. It is named here rather than imported from internal/platform/notifylayer because the host reaches every tool by name through one funnel and imports none of them.

Variables

This section is empty.

Functions

func Publish

func Publish(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (map[string]any, error)

Publish reads platform.publish(channel, name, message="", key="", repeat_after="") into a notify action=publish call.

The asset is named the way platform.export named it when it wrote it, so a script that builds a report and publishes it says the same name twice rather than carrying an id between the two calls.

func Send

func Send(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple, runLink string) (map[string]any, error)

Send reads platform.notify(channel, title, body="", link="", data=None, key="", repeat_after="", attachments=None) into a notify action=send call.

runLink is the run's own page. It is the link when the script names none, so every post from a scheduled script leads back to the run that produced it: a monitor that posts a number without saying where the number came from is the thing people mute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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