plugin

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version string `json:"version,omitempty" yaml:"version,omitempty" mapstructure:"version"`
	Path    string `json:"path,omitempty"    yaml:"path,omitempty"    mapstructure:"path"`
	URL     string `json:"url,omitempty"     yaml:"url,omitempty"     mapstructure:"url"`

	PipelineType string
	// contains filtered or unexported fields
}

func (*Config) Download

func (cfg *Config) Download() (string, error)

func (*Config) GetLatestRelease added in v0.1.6

func (cfg *Config) GetLatestRelease(pluginURL string) (string, error)

func (*Config) GetType added in v0.1.7

func (cfg *Config) GetType() string

func (*Config) GetVersion added in v0.1.7

func (cfg *Config) GetVersion() string

func (*Config) SetType added in v0.1.7

func (cfg *Config) SetType(pipelines []string) error

func (*Config) SetVersion added in v0.1.7

func (cfg *Config) SetVersion(version string)

func (*Config) ValidatePlugin

func (cfg *Config) ValidatePlugin(pipelines []string) (bool, error)

type GithubTags added in v0.1.6

type GithubTags struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type Plugin

type Plugin interface {
	ValidatePlugin(pipelines []string) (bool, error)
	Download() (string, error)
	SetType(pipelines []string) error
	GetType() string
	SetVersion(version string)
	GetVersion() string
}

func NewPluginConfig

func NewPluginConfig(version, path, url, loglevel string) Plugin

Jump to

Keyboard shortcuts

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