plugin

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 20 Imported by: 7

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 StartPlugin

func StartPlugin(opts *PluginOpts) (interface{}, 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

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 PublisherFunc added in v3.2.0

type PublisherFunc func() publisher.Publisher

type ServeOpts

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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