Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchVersion ¶
Types ¶
type ActionHandler ¶
type ActionHandler interface {
Handle(api.ActionSpec, common.Properties) (api.ActionResult, error)
}
type ActionHandlerMatch ¶
type ActionHandlerMatch struct { Handler ActionHandler Version string Priority int }
type ActionsProvider ¶
type ActionsProvider interface {
GetActions() Registry
}
type HandlerConfig ¶
type HandlerConfig = registrations.HandlerConfig
type HandlerRegistrationHandler ¶
type HandlerRegistrationHandler = registrations.HandlerRegistrationHandler[Target, Option]
type HandlerRegistrationRegistry ¶
type HandlerRegistrationRegistry = registrations.HandlerRegistrationRegistry[Target, Option]
func NewHandlerRegistrationRegistry ¶
func NewHandlerRegistrationRegistry(base ...HandlerRegistrationRegistry) HandlerRegistrationRegistry
type Options ¶
func NewOptions ¶
type Registry ¶
type Registry interface { registrations.HandlerRegistrationRegistry[Target, Option] GetActionTypes() api.ActionTypeRegistry Register(h ActionHandler, opts ...Option) error Execute(spec api.ActionSpec, creds common.Properties) (api.ActionResult, error) Get(spec api.ActionSpec, possible ...string) []ActionHandlerMatch AddTo(t Registry) }
func DefaultRegistry ¶
func DefaultRegistry() Registry
func NewRegistry ¶
func NewRegistry(types api.ActionTypeRegistry, base ...Registry) Registry
type Target ¶
type Target = ActionsProvider
Click to show internal directories.
Click to hide internal directories.