Documentation
¶
Overview ¶
Package template provides template for creating new plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Codeowners = Target{
Filepath: "CODEOWNERS",
Template: `* # edit as appropriate`,
}
Codeowners target
var CommonMK = Target{ Filepath: "common.mk", Template: plugintemplates.CommonMK, }
CommonMK MK4 target
var DefaultInitTargets = []Target{ GoMod, GitIgnore, Makefile, Codeowners, MainReadMe, GolangCIConfig, CommonMK, PluginToolingMK, }
DefaultInitTargets are the default initialization targets.
var DefaultPluginTargets = []Target{ PluginReadMe, PluginMain, PluginTest, }
DefaultPluginTargets are the default plugin targets.
var GitHubCI = Target{ Filepath: ".github/workflows/build.yaml", Template: plugintemplates.GithubWorkflowBuild, }
GitHubCI target
var GitIgnore = Target{
Filepath: ".gitignore",
Template: gitignore,
}
GitIgnore target
var GitLabCI = Target{ Filepath: ".gitlab-ci.yml", Template: plugintemplates.GitlabCI, }
GitLabCI target
var GoMod = Target{ Filepath: "go.mod", Template: plugintemplates.Gomod, }
GoMod target
var GolangCIConfig = Target{ Filepath: ".golangci.yaml", Template: plugintemplates.GolangCIConfig, }
GolangCIConfig target.
var MainReadMe = Target{ Filepath: "README.md", Template: plugintemplates.PluginReadme, }
MainReadMe target
var Makefile = Target{ Filepath: "Makefile", Template: plugintemplates.Makefile, }
Makefile target
var PluginMain = Target{ Filepath: "cmd/plugin/{{ .PluginName | ToLower }}/main.go", Template: plugintemplates.MainGo, }
PluginMain target TODO (pbarker): proper logging
var PluginReadMe = Target{ Filepath: "cmd/plugin/{{ .PluginName }}/README.md", Template: plugintemplates.CommandReadme, }
PluginReadMe target
var PluginTest = Target{ Filepath: "cmd/plugin/{{ .PluginName }}/test/main.go", Template: plugintemplates.MainTestGo, }
PluginTest target
var PluginToolingMK = Target{ Filepath: "plugin-tooling.mk", Template: plugintemplates.PluginToolingMK, }
PluginToolingMK target
Functions ¶
This section is empty.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package plugintemplates provides templates for bootstrapping plugins.
|
Package plugintemplates provides templates for bootstrapping plugins. |