plugin

package
v0.50.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManifestFileName = "mf-manifest.json"
	PackageJSONFile  = "package.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Version string `json:"buildVersion"`
	Name    string `json:"buildName"`
}

type Metadata

type Metadata struct {
	BuildInfo BuildInfo `json:"buildInfo"`
}

type NPMManifest

type NPMManifest struct {
	ID       string   `json:"id"`
	Name     string   `json:"name"`
	Metadata Metadata `json:"metaData"`
}

func ReadManifest

func ReadManifest(pluginPath string) (*NPMManifest, error)

type NPMPackage

type NPMPackage struct {
	Author  string    `json:"author"`
	Version string    `json:"version"`
	Perses  NPMPerses `json:"perses"`
}

func ReadPackage

func ReadPackage(pluginPath string) (*NPMPackage, error)

type NPMPerses

type NPMPerses struct {
	PluginType string `json:"pluginType"`
}

Jump to

Keyboard shortcuts

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