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

permtext

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package permtext holds the plain-English wording for plugin permissions, shared by the admin install prompt, the public plugin directory and the static registry page. It is host UI copy, not plugin API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Help

func Help(name string) string

Help returns the full sentence for a known permission and "" for a name this build does not know, so the admin shows the bare name instead of repeating it.

Types

type Text

type Text struct {
	// Help is the full sentence shown next to the permission name.
	Help string
	// Short is the badge label of a risky permission; empty otherwise.
	Short string
	// Warn marks permissions that deserve a visible warning.
	Warn bool
}

Text describes one permission for a human reader.

func Lookup

func Lookup(name string) Text

Lookup returns the wording for a permission. A name this build does not know (a registry can be newer than the host) falls back to the raw name.

Jump to

Keyboard shortcuts

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