Documentation
¶
Index ¶
- func Ptr[T any](t T) *T
- func ServePlugin(p Plugin)
- type BasePlugin
- func (p BasePlugin) Apply(ctx *protocolv1.Context) error
- func (p BasePlugin) Filter(ctx *protocolv1.Context) (bool, error)
- func (p BasePlugin) Init(config map[string]string) error
- func (p BasePlugin) OnPrClosed(ctx *protocolv1.Context) error
- func (p BasePlugin) OnPrCreated(ctx *protocolv1.Context) error
- func (p BasePlugin) OnPrMerged(ctx *protocolv1.Context) error
- func (p BasePlugin) Priority() int32
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServePlugin ¶ added in v0.2.0
func ServePlugin(p Plugin)
Types ¶
type BasePlugin ¶ added in v0.2.0
type BasePlugin struct{}
func (BasePlugin) Apply ¶ added in v0.2.0
func (p BasePlugin) Apply(ctx *protocolv1.Context) error
func (BasePlugin) Filter ¶ added in v0.2.0
func (p BasePlugin) Filter(ctx *protocolv1.Context) (bool, error)
func (BasePlugin) OnPrClosed ¶ added in v0.2.0
func (p BasePlugin) OnPrClosed(ctx *protocolv1.Context) error
func (BasePlugin) OnPrCreated ¶ added in v0.2.0
func (p BasePlugin) OnPrCreated(ctx *protocolv1.Context) error
func (BasePlugin) OnPrMerged ¶ added in v0.2.0
func (p BasePlugin) OnPrMerged(ctx *protocolv1.Context) error
func (BasePlugin) Priority ¶ added in v0.2.0
func (p BasePlugin) Priority() int32
type Plugin ¶ added in v0.2.0
type Plugin interface { Apply(ctx *protocolv1.Context) error Filter(ctx *protocolv1.Context) (bool, error) Init(config map[string]string) error Name() string OnPrClosed(ctx *protocolv1.Context) error OnPrCreated(ctx *protocolv1.Context) error OnPrMerged(ctx *protocolv1.Context) error Priority() int32 }
Click to show internal directories.
Click to hide internal directories.