plugins

package
v0.0.0-...-fa313d6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigRepo = PluginMap{
	"yaml.config.plugin":                      NewInfo("https://api.github.com/repos/tomzo/gocd-yaml-config-plugin/releases", ">=0.8.3"),
	"json.config.plugin":                      NewInfo("https://api.github.com/repos/tomzo/gocd-json-config-plugin/releases", ">=0.3.3"),
	"cd.go.contrib.plugins.configrepo.groovy": NewInfo("https://api.github.com/repos/ketan/gocd-groovy-dsl-config-plugin/releases", ">=0.7.3"),
}

Functions

func PluginById

func PluginById(id string, path string) (string, error)

Types

type Info

type Info struct {
	Url     string
	Version string
	Compat  semver.Range
}

func NewInfo

func NewInfo(url string, version string) *Info

func (*Info) IsCompatible

func (info *Info) IsCompatible(version string) bool

type PluginMap

type PluginMap map[string]*Info

func (PluginMap) Ids

func (pm PluginMap) Ids() []string

func (PluginMap) ShortList

func (pm PluginMap) ShortList() string

type PluginNotFoundError

type PluginNotFoundError struct {
	PluginId, Path string
}

func (*PluginNotFoundError) Error

func (e *PluginNotFoundError) Error() string

Jump to

Keyboard shortcuts

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