utils

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPluginId

func GetPluginId(archiveDir string) (string, error)

* GetPluginId returns the plugin id from the plugin.json file * in the archive directory * * The plugin.json file might not be in the root directory * at this point in the validator there's no certainty that the * plugin.json file even exists

func JSONToMetadata added in v0.14.0

func JSONToMetadata(jsonStr []byte) (metadata.Metadata, error)

func RunDependencies added in v0.20.1

func RunDependencies(pass *analysis.Pass, analyzer *analysis.Analyzer) error

RunDependencies runs the dependencies of an analyzer recursively. All the results are stored in the provided *analysis.Pass. If the result of an analyzer is already in the pass, it will not be run again.

Types

type BarebonePluginJson

type BarebonePluginJson struct {
	Id string `json:"id"`
}

Jump to

Keyboard shortcuts

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