Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Runner ¶
func Runner(path, filename string, ctx speccontext.GitContext, partsCtx parts.Context) error
Types ¶
type AWSLambdaHook ¶ added in v0.1.0
type AWSLambdaHook struct { AssumeRole string `mapstructure:"assume_role"` FunctionName string `mapstructure:"function_name"` InvocationType string `mapstructure:"invocation_type"` // RequestResponse, Event, DryRun Region string Payload string }
func (*AWSLambdaHook) Run ¶ added in v0.1.0
func (l *AWSLambdaHook) Run(path string) error
type Hook ¶
type Hook struct { Type string PathFilter string `mapstructure:"path_filter"` MatchContext map[string]string `mapstructure:"match_context"` RequireEnv []string `mapstructure:"require_env"` Spec interface{} }
func (*Hook) CanRun ¶
func (h *Hook) CanRun(path string, ctx speccontext.GitContext, partsCtx parts.Context) (matched bool)
CanRun ensures the hook can be executed. It checks that the path matches what specified in path_filter checks that match_context rules are satisfied. If the match defined with "/" as prefix and suffix it matches it as a regexp. To execute hook for a part upload you have to specify the match_context["part"] require_env matches can be a full line, specified like: "CI=true" or only with a name of the variable "CI"
func (*Hook) Definition ¶
Click to show internal directories.
Click to hide internal directories.