Documentation
¶
Index ¶
- func ResolveHooks(reloaderConfig *v2.ReloaderConfig, typ HookType) (hooks []v2.LifecycleHookConfig)
- func ResolveHooksInRepository(caproniCfg *v2.CaproniConfig, repoName string, typ HookType) (hooks []v2.LifecycleHookConfig)
- func RunHooks(ctx context.Context, exec executor.CommandRunner, caproniCfg *v2.CaproniConfig, ...) error
- type HookType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveHooks ¶
func ResolveHooks(reloaderConfig *v2.ReloaderConfig, typ HookType) (hooks []v2.LifecycleHookConfig)
func ResolveHooksInRepository ¶
func ResolveHooksInRepository(caproniCfg *v2.CaproniConfig, repoName string, typ HookType) (hooks []v2.LifecycleHookConfig)
func RunHooks ¶
func RunHooks( ctx context.Context, exec executor.CommandRunner, caproniCfg *v2.CaproniConfig, repoConfig *v2.RepositoryConfig, repoName string, hooks []v2.LifecycleHookConfig, ) error
Types ¶
type HookType ¶
type HookType string
const ( // TypeEditModePrepare is a hook that runs after a repository is cloned or updated. TypeEditModePrepare HookType = "edit_mode_prepare" // TypeEditModeStart is a hook that runs before starting an edit mode process. TypeEditModeStart HookType = "edit_mode_start" // TypeEditModeStop is a hook that runs after an edit mode process exits, regardless of exit code. TypeEditModeStop HookType = "edit_mode_stop" )
Click to show internal directories.
Click to hide internal directories.