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 { Path string `yaml:"-"` Relpath string `yaml:"-"` // Parsed external yaml config bufpluginconfig.ExternalConfig `yaml:"-"` // Plugin identity (parsed from ExternalConfig.Name). Identity bufpluginref.PluginIdentity `yaml:"-"` // contains filtered or unexported fields }
Plugin represents metadata (and filesystem path) information about a plugin.
func FilterByChangedFiles ¶
FilterByChangedFiles works with https://github.com/tj-actions/changed-files#outputs to filter out unchanged plugins. This allows PR builds to only build the plugins which changed instead of all plugins.
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.