plugin

package
v2.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 21 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetSysProcAttr added in v2.24.0

func GetSysProcAttr() *syscall.SysProcAttr

func KillAllPlugins

func KillAllPlugins()

func Serve

func Serve(opts *ServeOpts)

func StartPlugin added in v2.12.0

func StartPlugin(pluginInfo *Info) (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(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*GRPCWrapper) GRPCServer

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

type HooksFunc added in v2.6.0

type HooksFunc func() hooks.Hooks

type Info added in v2.25.0

type Info struct {
	Type                string
	Name                string
	NormalizedName      string
	ShortNormalizedName string
	Constraint          *semver.Constraints
	Resolver            string
	RepoSlug            string
	PluginPath          string
	BinPath             string
}

func GetPluginInfo added in v2.24.0

func GetPluginInfo(pluginType, pluginName string) (*Info, error)

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