Documentation ¶
Index ¶
- type Handler
- func AllHandlers(config models.GenerateConfig) []Handler
- func Docker(config models.GenerateConfig) Handler
- func Github(config models.GenerateConfig) Handler
- func Gitlab(config models.GenerateConfig) Handler
- func Goreleaser(config models.GenerateConfig) Handler
- func Makefile(config models.GenerateConfig) Handler
- func Releaserc(config models.GenerateConfig) Handler
- func Sonar(config models.GenerateConfig) Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler represents a function to be executed on a specific file (with its source, destination and name).
It returns two booleans, the first one to indicate that the Handler is the right one for the inputs. The second one to indicate whether to apply something or not (apply something means doing whatever execution depending on apply value).
Handler is specifically used for optional handlers (to indicate whether to generate or remove optional files in craft generation).
func AllHandlers ¶
func AllHandlers(config models.GenerateConfig) []Handler
AllHandlers returns the full slice of optional handlers to handle options during craft generation.
func Docker ¶
func Docker(config models.GenerateConfig) Handler
Docker returns the handler for docker option generation matching.
func Github ¶
func Github(config models.GenerateConfig) Handler
Github returns the handler for github option generation matching.
func Gitlab ¶
func Gitlab(config models.GenerateConfig) Handler
Gitlab returns the handler for gitlab option generation matching.
func Goreleaser ¶
func Goreleaser(config models.GenerateConfig) Handler
Goreleaser returns the handler for goreleaser option generation matching.
func Makefile ¶
func Makefile(config models.GenerateConfig) Handler
Makefile returns the handler for makefile option generation matching.
func Releaserc ¶
func Releaserc(config models.GenerateConfig) Handler
Releaserc returns the handler for releaserc option generation matching.
func Sonar ¶
func Sonar(config models.GenerateConfig) Handler
Sonar returns the handler for sonar option generation matching.