Documentation ¶
Overview ¶
Package template provides template for creating new plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildVersion = Target{
Filepath: "BUILD_VERSION",
Template: `0.0.1`,
}
BuildVersion target
View Source
var Codeowners = Target{
Filepath: "CODEOWNERS",
Template: `* @pbarker @vuil`,
}
Codeowners target TODO (pbarker): replace with the CLI reviewers group
View Source
var CommonMK = Target{ Filepath: "common.mk", Template: plugintemplates.CommonMK, }
CommonMK MK4 target
View Source
var DefaultInitTargets = []Target{ GoMod, BuildVersion, GitIgnore, Makefile, Codeowners, MainReadMe, GolangCIConfig, Tools, CommonMK, }
DefaultInitTargets are the default initialization targets.
View Source
var DefaultPluginTargets = []Target{ PluginReadMe, PluginMain, PluginTest, }
DefaultPluginTargets are the default plugin targets.
View Source
var GitHubCI = Target{ Filepath: ".github/workflows/release.yaml", Template: plugintemplates.GithubWorkflowRelease, }
GitHubCI target TODO (pbarker): should we push everything to a single repository, or at least make that possible? TODO (pbarker): should report stats
View Source
var GitIgnore = Target{
Filepath: ".gitignore",
Template: `/artifacts`,
}
GitIgnore target
View Source
var GitLabCI = Target{ Filepath: ".gitlab-ci.yaml", Template: plugintemplates.GitlabCI, }
GitLabCI target
View Source
var GoMod = Target{ Filepath: "go.mod", Template: plugintemplates.Gomod, }
GoMod target
View Source
var GolangCIConfig = Target{ Filepath: ".golangci.yaml", Template: plugintemplates.GolangCIConfig, }
GolangCIConfig target.
View Source
var MainReadMe = Target{ Filepath: "README.md", Template: plugintemplates.PluginReadme, }
MainReadMe target
View Source
var Makefile = Target{ Filepath: "Makefile", Template: plugintemplates.Makefile, }
Makefile target
View Source
var PluginMain = Target{ Filepath: "cmd/plugin/{{ .PluginName | ToLower }}/main.go", Template: plugintemplates.MainGo, }
PluginMain target TODO (pbarker): proper logging
View Source
var PluginReadMe = Target{ Filepath: "cmd/plugin/{{ .PluginName }}/README.md", Template: plugintemplates.CommandReadme, }
PluginReadMe target
View Source
var PluginTest = Target{ Filepath: "cmd/plugin/{{ .PluginName }}/test/main.go", Template: plugintemplates.MainTestGo, }
PluginTest target
View Source
var Tools = Target{ Filepath: "tools/tools.go", Template: plugintemplates.ToolsGo, }
Tools target.
Functions ¶
This section is empty.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package plugintemplates provides templates for bootstrapping plugins.
|
Package plugintemplates provides templates for bootstrapping plugins. |
Click to show internal directories.
Click to hide internal directories.