Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IntegrationPlugin ¶
type IntegrationPlugin interface {
// Run runs the plugin. Once this function returns the plugin stops running.
// Implementors must respect the context deadline as that's the signal for graceful shutdown.
Run(ctx context.Context, config interface{}, srv v1.WerftServiceClient) error
}
IntegrationPlugin works on the public werft API
type ServeOpt ¶
type ServeOpt struct {
Type common.Type
Run func(ctx context.Context, config interface{}, socket string) error
}
ServeOpt configures a plugin serve
func WithIntegrationPlugin ¶
func WithIntegrationPlugin(p IntegrationPlugin) ServeOpt
WithIntegrationPlugin registers integration plugin capabilities
Click to show internal directories.
Click to hide internal directories.