Documentation
¶
Index ¶
- Constants
- func ActionUIVisible(signal, name string) bool
- func ApplyRoleContexts(ctx context.Context, bindings map[string]string) error
- func BackupDestinationOwner(name string) (string, bool)
- func BackupDestinations() []string
- func BuilderSignals() map[string]bool
- func ClearInstalled(id string) error
- func CollectStatusContributions(home, role string) []glyph.StatusContribution
- func ContextTools() []string
- func DataPaths(home string) []string
- func DiagnosticLines() []string
- func Enabled(id string) bool
- func FilterNames() []string
- func HasBuilder(signal string) bool
- func HasCapability(signal string, cap Capability) bool
- func HasContextProvider(tool string) bool
- func HasDiagnostics() bool
- func HasFilter(name string) bool
- func HasFilterEngine(name string) bool
- func HasFilterKeywords(name string) bool
- func HasStreamBuilder(signal string) bool
- func HasTheme(key string) bool
- func HasView(viewID string) bool
- func Installed(id string) bool
- func IsInternal(id string) bool
- func KVNamespacePrefix(ownerID string) string
- func KnownRefs(kind Kind) map[string]bool
- func KnownSignals() map[string]bool
- func ListEnabled() []struct{ ... }
- func ListInstalled() []struct{ ... }
- func LoadEnabled()
- func LookupFilter(name string) (filter.Filter, bool)
- func LookupFilterKeywords(name string) (map[string]string, bool)
- func LookupStatusContribution(pluginID, home, role string) (glyph.StatusContribution, bool)
- func MarkInstalled(id string) error
- func NoteDiagnostic(pluginID string, kind Kind, ref, message string)
- func OwnerID(d Descriptor) string
- func ParamSignals() []string
- func PluginsDir(home string) string
- func Register(d Descriptor)
- func RegisterAction(signal, name string, run ActionFunc, opts ...Option)
- func RegisterBackupDestination(pluginID, name string, open BackupDestinationFunc)
- func RegisterBuilders(signal string, b Builders)
- func RegisterBuiltins()
- func RegisterContext(parentID string, p ContextProvider)
- func RegisterContextProvider(p ContextProvider)
- func RegisterDataPath(fn func(home string) string)
- func RegisterFilter(parentID string, f filter.Filter)
- func RegisterFilterEngine(parentID, name string, fn FilterFunc)
- func RegisterFilterKeywords(parentID, name string, fn KeywordsFunc)
- func RegisterLoginProvider(p LoginProvider)
- func RegisterQueryParams(signal string, specs ...ParamSpec)
- func RegisterSeeds(pluginID string, files []FileSeed)
- func RegisterSignal(d Descriptor, b Builders)
- func RegisterStatusContribution(pluginID string, f StatusFactory)
- func RegisterTheme(parentID, key, displayName string, p theme.Palette)
- func RegisterView(parentID, viewID string, ctor func() deck.View, opts ...Option)
- func ResetBackupDestinations()
- func ResetDiagnostics()
- func ResetLoginProviders()
- func ResetQueryParams()
- func RunAction(ctx context.Context, signal, name string, params map[string]string) error
- func RunScheduled(ctx context.Context, jobs []Scheduled, ...) error
- func ScopeKV(raw stream.KV, ownerID string) stream.KV
- func SeedPluginIDs() []string
- func ServiceAttached() bool
- func ServiceAttachedAt(home string) bool
- func SetEnabled(id string, on bool) error
- func Setting(settings map[string]any, key, def string) string
- func SettingBool(settings map[string]any, key string, def bool) bool
- func SettingInt(settings map[string]any, key string, def int) int
- func SettingList(settings map[string]any, key string) []string
- func SignalEnabled(signal string) bool
- func SplitActionRef(ref string) (signal, name string, ok bool)
- func StatusContributionIDs() []string
- func SwitchContext(ctx context.Context, tool, name string) error
- func UIVisible(d Descriptor) bool
- func ValidKind(k Kind) bool
- func ViewUIVisible(viewID string) bool
- type Action
- type ActionFunc
- type ActionSpec
- type BackupDestination
- type BackupDestinationFunc
- type BuildContext
- type Builders
- type Capability
- type Chip
- type Context
- type ContextProvider
- type Credential
- type CredentialStore
- type Descriptor
- type DetailSection
- type Detailer
- type Diagnostic
- type FileSeed
- type FilterFunc
- type FilterRule
- type Host
- type InstallCandidate
- type InstallOptions
- type InstallResult
- type ItemDetail
- type KV
- type KeywordsFunc
- type Kind
- type LocalPlugin
- type LoginField
- type LoginProvider
- type NamedFilter
- type Option
- type ParamSpec
- type Query
- type QueryFunc
- type Scheduled
- type ScheduledAck
- type StatusEntry
- type StatusFactory
- type Stream
- type StreamFunc
- type TokenSource
- type UninstallOptions
- type UninstallResult
Constants ¶
const ( KindSignal = pub.KindSignal KindFilter = pub.KindFilter KindAction = pub.KindAction KindView = pub.KindView KindTheme = pub.KindTheme KindContext = pub.KindContext )
const ( CapQuery = pub.CapQuery CapAction = pub.CapAction CapStream = pub.CapStream CapScheduled = pub.CapScheduled CapCacheable = pub.CapCacheable CapDetail = pub.CapDetail )
const ( KindLogin = pub.KindLogin KindBackup = pub.KindBackup )
Variables ¶
This section is empty.
Functions ¶
func ActionUIVisible ¶
func ApplyRoleContexts ¶
func BackupDestinationOwner ¶
func BackupDestinations ¶
func BackupDestinations() []string
func BuilderSignals ¶
func ClearInstalled ¶
func CollectStatusContributions ¶
func CollectStatusContributions(home, role string) []glyph.StatusContribution
func ContextTools ¶
func ContextTools() []string
func DiagnosticLines ¶
func DiagnosticLines() []string
DiagnosticLines renders one line per diagnostic, ready to append to a `plugins list` listing.
func FilterNames ¶
func FilterNames() []string
func HasBuilder ¶
func HasCapability ¶
func HasCapability(signal string, cap Capability) bool
func HasContextProvider ¶
func HasDiagnostics ¶
func HasDiagnostics() bool
func HasFilterEngine ¶
func HasFilterKeywords ¶
func HasStreamBuilder ¶
func IsInternal ¶
func KVNamespacePrefix ¶
KVNamespacePrefix is the namespace prefix owned by ownerID. "/" is stripped from the id so no owner's prefix can contain the separator, and therefore no owner can address another owner's namespaces.
func KnownSignals ¶
func ListEnabled ¶
func ListInstalled ¶
func LoadEnabled ¶
func LoadEnabled()
func LookupStatusContribution ¶
func LookupStatusContribution(pluginID, home, role string) (glyph.StatusContribution, bool)
func MarkInstalled ¶
func NoteDiagnostic ¶
func OwnerID ¶
func OwnerID(d Descriptor) string
func ParamSignals ¶
func ParamSignals() []string
func PluginsDir ¶
func Register ¶
func Register(d Descriptor)
func RegisterAction ¶
func RegisterAction(signal, name string, run ActionFunc, opts ...Option)
func RegisterBackupDestination ¶
func RegisterBackupDestination(pluginID, name string, open BackupDestinationFunc)
func RegisterBuilders ¶
func RegisterBuiltins ¶
func RegisterBuiltins()
func RegisterContext ¶
func RegisterContext(parentID string, p ContextProvider)
func RegisterContextProvider ¶
func RegisterContextProvider(p ContextProvider)
func RegisterDataPath ¶
func RegisterFilter ¶
func RegisterFilterEngine ¶
func RegisterFilterEngine(parentID, name string, fn FilterFunc)
func RegisterFilterKeywords ¶
func RegisterFilterKeywords(parentID, name string, fn KeywordsFunc)
func RegisterLoginProvider ¶
func RegisterLoginProvider(p LoginProvider)
func RegisterQueryParams ¶
func RegisterSeeds ¶
func RegisterSignal ¶
func RegisterSignal(d Descriptor, b Builders)
func RegisterStatusContribution ¶
func RegisterStatusContribution(pluginID string, f StatusFactory)
func RegisterTheme ¶
func RegisterView ¶
func ResetBackupDestinations ¶
func ResetBackupDestinations()
func ResetDiagnostics ¶
func ResetDiagnostics()
func ResetLoginProviders ¶
func ResetLoginProviders()
func ResetQueryParams ¶
func ResetQueryParams()
func RunScheduled ¶
func ScopeKV ¶
ScopeKV confines a raw stream.KV handle to one plugin's own namespaces via stream.ScopedKV. Callers that hand a KV to plugin code must scope it first, or the plugin could read or wipe another signal's persisted cursors.
func SeedPluginIDs ¶
func SeedPluginIDs() []string
func ServiceAttached ¶
func ServiceAttached() bool
func ServiceAttachedAt ¶
func SetEnabled ¶
func SignalEnabled ¶
func SplitActionRef ¶
func StatusContributionIDs ¶
func StatusContributionIDs() []string
func UIVisible ¶
func UIVisible(d Descriptor) bool
func ViewUIVisible ¶
Types ¶
type ActionFunc ¶
type ActionFunc = pub.ActionFunc
type ActionSpec ¶
type ActionSpec = pub.ActionSpec
func ActionsFor ¶
func ActionsFor(signal string) []ActionSpec
func LookupAction ¶
func LookupAction(signal, name string) (ActionSpec, bool)
type BackupDestination ¶
type BackupDestination = pub.BackupDestination
type BackupDestinationFunc ¶
type BackupDestinationFunc = pub.BackupDestinationFunc
func LookupBackupDestination ¶
func LookupBackupDestination(name string) (BackupDestinationFunc, bool)
type BuildContext ¶
type BuildContext = pub.BuildContext
type Builders ¶
func LookupBuilders ¶
type Capability ¶
type Capability = pub.Capability
type Context ¶
func ListContexts ¶
type ContextProvider ¶
type ContextProvider = pub.ContextProvider
type Credential ¶
type Credential = pub.Credential
type CredentialStore ¶
type CredentialStore = pub.CredentialStore
type Descriptor ¶
type Descriptor = pub.Descriptor
func All ¶
func All() []Descriptor
func AllOfKind ¶
func AllOfKind(kind Kind) []Descriptor
func BySignal ¶
func BySignal(signal string) (Descriptor, bool)
func Lookup ¶
func Lookup(id string) (Descriptor, bool)
func Primaries ¶
func Primaries() []Descriptor
type DetailSection ¶
type DetailSection = pub.DetailSection
type Diagnostic ¶
type Diagnostic = pub.Diagnostic
func Diagnostics ¶
func Diagnostics() []Diagnostic
Diagnostics returns every contribution the registry skipped or degraded. A skipped contribution is absent from the registry, so `plugins enable`, `plugins disable` and `plugins install` all answer "unknown plugin" for it: listings are the only place a user can be told it exists at all.
func DiagnosticsFor ¶
func DiagnosticsFor(pluginID string) []Diagnostic
type FilterFunc ¶
type FilterFunc = pub.FilterFunc
func LookupFilterEngine ¶
func LookupFilterEngine(name string) (FilterFunc, bool)
type FilterRule ¶
type FilterRule = pub.FilterRule
type InstallCandidate ¶
type InstallCandidate struct {
ID string
Label string
Desc string
Source string
LocalDir string
Seeds []FileSeed
Installable bool
Reason string
}
func ListInstallCandidates ¶
func ListInstallCandidates(home string) ([]InstallCandidate, error)
type InstallOptions ¶
type InstallOptions struct {
Force bool
}
type InstallResult ¶
type InstallResult struct {
PluginID string
Installed bool
Enabled bool
Written []string
Skipped []string
}
func Install ¶
func Install(home, id string, opts InstallOptions) (InstallResult, error)
func InstallCandidateEntry ¶
func InstallCandidateEntry(home string, c InstallCandidate, opts InstallOptions) (InstallResult, error)
type ItemDetail ¶
type ItemDetail = pub.ItemDetail
type KeywordsFunc ¶
type KeywordsFunc = pub.KeywordsFunc
type LocalPlugin ¶
type LocalPlugin struct {
ID string
Name string
Dir string
Description string
Seeds []FileSeed
Registered bool
Installable bool
Reason string
}
func DiscoverLocal ¶
func DiscoverLocal(home string) ([]LocalPlugin, error)
type LoginField ¶
type LoginField = pub.LoginField
type LoginProvider ¶
type LoginProvider = pub.LoginProvider
func LoginProviders ¶
func LoginProviders() []LoginProvider
func LookupLoginProvider ¶
func LookupLoginProvider(key string) (LoginProvider, bool)
type NamedFilter ¶
type NamedFilter = pub.NamedFilter
type ParamSpec ¶
func QueryParams ¶
type Query ¶
func BuildQuery ¶
func BuildQuery(signal string, bc BuildContext) (Query, error)
type ScheduledAck ¶
type StatusEntry ¶
type StatusEntry = pub.StatusEntry
func CollectStatusEntries ¶
func CollectStatusEntries(home, role string) []StatusEntry
type StatusFactory ¶
type StatusFactory = pub.StatusFactory
type Stream ¶
func BuildStream ¶
func BuildStream(signal string, bc BuildContext) (Stream, error)
type StreamFunc ¶
type StreamFunc = pub.StreamFunc
type TokenSource ¶
type TokenSource = pub.TokenSource
type UninstallOptions ¶
type UninstallResult ¶
type UninstallResult struct {
PluginID string
Uninstalled bool
Disabled bool
Removed []string
Kept []string
}
func Uninstall ¶
func Uninstall(home, id string, opts UninstallOptions) (UninstallResult, error)