Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dependency ¶
type Dependency struct {
Plugin string `yaml:"plugin"`
}
Dependency represents a dependency one plugin has on another.
type IncludePlugin ¶
type IncludePlugin struct {
// contains filtered or unexported fields
}
func ParsePluginsEnvVar ¶
func ParsePluginsEnvVar(pluginsEnv string) ([]IncludePlugin, error)
func (IncludePlugin) Matches ¶
func (p IncludePlugin) Matches(pluginName, pluginVersion, latestVersion string) bool
type Plugin ¶
type Plugin struct { // Parsed external yaml config bufremotepluginconfig.ExternalConfig `yaml:"-"` Path string `yaml:"-"` Relpath string `yaml:"-"` // Plugin identity (parsed from ExternalConfig.Name). Identity bufremotepluginref.PluginIdentity `yaml:"-"` // contains filtered or unexported fields }
Plugin represents metadata (and filesystem path) information about a plugin.
func FilterByBaseRefDiff ¶
FilterByBaseRefDiff filters the passed plugins to the ones that changed from a base Git ref to diff against. It calculates the changed files from that ref, and filters the relevant files in the plugins directory(ies) to determine which plugins changed from the ones passed.
func FilterByPluginsEnv ¶
FilterByPluginsEnv returns matching plugins based on a space separated list of plugins (and optional versions) to include.
func Load ¶
Load loads the buf.plugin.yaml at the specified path and returns a structure containing metadata for the plugin.
Click to show internal directories.
Click to hide internal directories.