plugin

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 19 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handshake = plugin.HandshakeConfig{
	MagicCookieKey:   "GO_SEMANTIC_RELEASE_MAGIC_COOKIE",
	MagicCookieValue: "beepboop",
}

Functions

func KillAllPlugins

func KillAllPlugins()

func Serve

func Serve(opts *ServeOpts)

func StartCIConditionPlugin

func StartCIConditionPlugin(opts *PluginOpts) (condition.CICondition, error)

func StartChangelogGeneratorPlugin

func StartChangelogGeneratorPlugin(opts *PluginOpts) (generator.ChangelogGenerator, error)

func StartCommitAnalyzerPlugin

func StartCommitAnalyzerPlugin(opts *PluginOpts) (analyzer.CommitAnalyzer, error)

func StartFilesUpdaterPlugin

func StartFilesUpdaterPlugin(opts *PluginOpts) (updater.FilesUpdater, error)

func StartHooksPlugin added in v2.6.0

func StartHooksPlugin(opts *PluginOpts) (hooks.Hooks, error)

func StartProviderPlugin

func StartProviderPlugin(opts *PluginOpts) (provider.Provider, error)

Types

type CIConditionFunc

type CIConditionFunc func() condition.CICondition

type ChangelogGeneratorFunc

type ChangelogGeneratorFunc func() generator.ChangelogGenerator

type CommitAnalyzerFunc

type CommitAnalyzerFunc func() analyzer.CommitAnalyzer

type FilesUpdaterFunc

type FilesUpdaterFunc func() updater.FilesUpdater

type GRPCWrapper

type GRPCWrapper struct {
	Type string
	Impl interface{}
	plugin.NetRPCUnsupportedPlugin
}

func (*GRPCWrapper) GRPCClient

func (p *GRPCWrapper) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*GRPCWrapper) GRPCServer

func (p *GRPCWrapper) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

type HooksFunc added in v2.6.0

type HooksFunc func() hooks.Hooks

type PluginOpts

type PluginOpts struct {
	Type       string
	PluginName string
	Cmd        *exec.Cmd
}

type ProviderFunc

type ProviderFunc func() provider.Provider

type ServeOpts

type ServeOpts struct {
	CommitAnalyzer     CommitAnalyzerFunc
	CICondition        CIConditionFunc
	ChangelogGenerator ChangelogGeneratorFunc
	Provider           ProviderFunc
	FilesUpdater       FilesUpdaterFunc
	Hooks              HooksFunc
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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