Documentation ¶
Index ¶
- Variables
- type CompilableConfig
- type Handler
- type HandlerOptions
- func WithArgs(args []string) HandlerOptions
- func WithCwd(cwd string) HandlerOptions
- func WithEnv(env []string) HandlerOptions
- func WithExpressionEngine(engine expression.Engine) HandlerOptions
- func WithFileSystem(fs billy.Filesystem) HandlerOptions
- func WithGlobalVars(globalVars map[string]any) HandlerOptions
- func WithHooksConfig(configs *configuration.HooksConfig) HandlerOptions
- func WithOutput(output io.Writer) HandlerOptions
- func WithRepository(repo internal.Repository) HandlerOptions
- func WithWorkersCount(workersCount uint) HandlerOptions
- type HookHandler
- type Rule
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotPresented = errors.New("configuration for hook is not presented")
Functions ¶
This section is empty.
Types ¶
type CompilableConfig ¶
type HandlerOptions ¶
type HandlerOptions = func(*HookHandler)
func WithArgs ¶
func WithArgs(args []string) HandlerOptions
func WithCwd ¶
func WithCwd(cwd string) HandlerOptions
func WithEnv ¶
func WithEnv(env []string) HandlerOptions
func WithExpressionEngine ¶
func WithExpressionEngine(engine expression.Engine) HandlerOptions
func WithFileSystem ¶
func WithFileSystem(fs billy.Filesystem) HandlerOptions
func WithGlobalVars ¶
func WithGlobalVars(globalVars map[string]any) HandlerOptions
func WithHooksConfig ¶
func WithHooksConfig(configs *configuration.HooksConfig) HandlerOptions
func WithOutput ¶
func WithOutput(output io.Writer) HandlerOptions
func WithRepository ¶
func WithRepository(repo internal.Repository) HandlerOptions
func WithWorkersCount ¶
func WithWorkersCount(workersCount uint) HandlerOptions
type HookHandler ¶
type HookHandler struct {
// contains filtered or unexported fields
}
func NewHookHandler ¶
func NewHookHandler(hook string, options ...HandlerOptions) (*HookHandler, error)
type Rule ¶
type Rule = configuration.Rule
Click to show internal directories.
Click to hide internal directories.