generated

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: GPL-3.0 Imports: 0 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

Code generated by protocolgen; DO NOT EDIT.

Index

Constants

View Source
const JSONRPCVersion = "2.0"
View Source
const SchemaVersion = "1.0.0"

Variables

View Source
var Methods = map[string]MethodMetadata{
	"scripts.delete.request":  {Params: "ScriptUUIDParams", Result: "ScriptsDeleteResult", Scope: "scripts:delete:request", Effect: "write", Blocking: "approval"},
	"scripts.edit.request":    {Params: "ScriptsEditParams", Result: "ScriptMutationResult", Scope: "scripts:edit:request", Effect: "write", Blocking: "approval"},
	"scripts.install.request": {Params: "ScriptsInstallParams", Result: "ScriptMutationResult", Scope: "scripts:install:request", Effect: "write", Blocking: "approval"},
	"scripts.list":            {Params: "ScriptsListParams", Result: "ScriptsListResult", Scope: "scripts:list", Effect: "read", Blocking: "none"},
	"scripts.metadata.get":    {Params: "ScriptUUIDParams", Result: "ScriptMetadata", Scope: "scripts:metadata:read", Effect: "read", Blocking: "none"},
	"scripts.source.get":      {Params: "ScriptsSourceGetParams", Result: "ScriptSource", Scope: "scripts:source:read", Effect: "read", Blocking: "disclosure"},
	"scripts.source.grep":     {Params: "ScriptsSourceGrepParams", Result: "ScriptSourceGrepResult", Scope: "scripts:source:read", Effect: "read", Blocking: "disclosure"},
	"scripts.toggle.request":  {Params: "ScriptsToggleParams", Result: "ScriptsToggleResult", Scope: "scripts:toggle:request", Effect: "write", Blocking: "approval"},
}

Functions

This section is empty.

Types

type Method

type Method string
const (
	MethodScriptsDeleteRequest  Method = "scripts.delete.request"
	MethodScriptsEditRequest    Method = "scripts.edit.request"
	MethodScriptsInstallRequest Method = "scripts.install.request"
	MethodScriptsList           Method = "scripts.list"
	MethodScriptsMetadataGet    Method = "scripts.metadata.get"
	MethodScriptsSourceGet      Method = "scripts.source.get"
	MethodScriptsSourceGrep     Method = "scripts.source.grep"
	MethodScriptsToggleRequest  Method = "scripts.toggle.request"
)

type MethodMetadata

type MethodMetadata struct{ Params, Result, Scope, Effect, Blocking string }

type ScriptMetadata

type ScriptMetadata struct {
	Author       *string  `json:"author,omitempty"`
	Connects     []string `json:"connects"`
	ContentTrust string   `json:"contentTrust"`
	Crontab      *string  `json:"crontab,omitempty"`
	Description  *string  `json:"description,omitempty"`
	Enabled      bool     `json:"enabled"`
	Excludes     []string `json:"excludes"`
	Grants       []string `json:"grants"`
	HasUpdateUrl bool     `json:"hasUpdateUrl"`
	Includes     []string `json:"includes"`
	Matches      []string `json:"matches"`
	Name         string   `json:"name"`
	Namespace    string   `json:"namespace"`
	Requires     []string `json:"requires"`
	Resources    []string `json:"resources"`
	RunAt        *string  `json:"runAt,omitempty"`
	Type         string   `json:"type"`
	UpdatedAt    string   `json:"updatedAt"`
	UUID         string   `json:"uuid"`
	Version      *string  `json:"version,omitempty"`
}

type ScriptMutationResult

type ScriptMutationResult struct {
	Enabled bool   `json:"enabled"`
	Name    string `json:"name"`
	UUID    string `json:"uuid"`
}

type ScriptSource

type ScriptSource struct {
	Code         string  `json:"code"`
	ContentTrust string  `json:"contentTrust"`
	EndLine      int     `json:"endLine"`
	Name         string  `json:"name"`
	SHA256       string  `json:"sha256"`
	StartLine    int     `json:"startLine"`
	TotalLines   int     `json:"totalLines"`
	UUID         string  `json:"uuid"`
	Version      *string `json:"version,omitempty"`
}

type ScriptSourceGrepResult

type ScriptSourceGrepResult struct {
	ContentTrust string `json:"contentTrust"`
	Matches      []struct {
		After      []string `json:"after"`
		Before     []string `json:"before"`
		Line       string   `json:"line"`
		LineNumber int      `json:"lineNumber"`
	} `json:"matches"`
	Name             string  `json:"name"`
	SHA256           string  `json:"sha256"`
	SkippedLongLines int     `json:"skippedLongLines"`
	TotalLines       int     `json:"totalLines"`
	TotalMatches     int     `json:"totalMatches"`
	Truncated        bool    `json:"truncated"`
	UUID             string  `json:"uuid"`
	Version          *string `json:"version,omitempty"`
}

type ScriptUUIDParams

type ScriptUUIDParams struct {
	UUID string `json:"uuid"`
}

type ScriptsDeleteResult

type ScriptsDeleteResult struct {
	Deleted bool   `json:"deleted"`
	UUID    string `json:"uuid"`
}

type ScriptsEditParams

type ScriptsEditParams struct {
	Edits []struct {
		NewText    string `json:"newText"`
		OldText    string `json:"oldText"`
		ReplaceAll *bool  `json:"replaceAll,omitempty"`
	} `json:"edits"`
	UUID string `json:"uuid"`
}

type ScriptsInstallParams

type ScriptsInstallParams struct {
	Code *string `json:"code,omitempty"`
	URL  *string `json:"url,omitempty"`
}

type ScriptsListParams

type ScriptsListParams struct {
}

type ScriptsListResult

type ScriptsListResult struct {
	ContentTrust string `json:"contentTrust"`
	Scripts      []struct {
		Author       *string `json:"author,omitempty"`
		Description  *string `json:"description,omitempty"`
		Enabled      bool    `json:"enabled"`
		HasUpdateUrl bool    `json:"hasUpdateUrl"`
		Name         string  `json:"name"`
		Namespace    string  `json:"namespace"`
		Type         string  `json:"type"`
		UpdatedAt    string  `json:"updatedAt"`
		UUID         string  `json:"uuid"`
		Version      *string `json:"version,omitempty"`
	} `json:"scripts"`
}

type ScriptsSourceGetParams

type ScriptsSourceGetParams struct {
	EndLine   *int   `json:"endLine,omitempty"`
	MaxBytes  *int   `json:"maxBytes,omitempty"`
	StartLine *int   `json:"startLine,omitempty"`
	UUID      string `json:"uuid"`
}

type ScriptsSourceGrepParams

type ScriptsSourceGrepParams struct {
	ContextLines *int    `json:"contextLines,omitempty"`
	IgnoreCase   *bool   `json:"ignoreCase,omitempty"`
	MaxMatches   *int    `json:"maxMatches,omitempty"`
	Mode         *string `json:"mode,omitempty"`
	Query        string  `json:"query"`
	UUID         string  `json:"uuid"`
}

type ScriptsToggleParams

type ScriptsToggleParams struct {
	Enable bool   `json:"enable"`
	UUID   string `json:"uuid"`
}

type ScriptsToggleResult

type ScriptsToggleResult struct {
	Enabled bool   `json:"enabled"`
	UUID    string `json:"uuid"`
}

Jump to

Keyboard shortcuts

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