Documentation
¶
Index ¶
- Variables
- func CallPlugin(logger hclog.Logger, plugin interface{}) []*protos2.BuildArgsGroup
- func ConfigureUpdate(binaryName, githubOrg, githubRepo string)
- func Engine(cmd *cobra.Command, _ []string) error
- func Execute() error
- func GetBuild() container.BuildGroups
- func Init(arg *container.Build) *container.Build
- func InitBuildSteps(_buildSteps *build.BuildSteps) *build.BuildSteps
- func LoadCache() error
- func Pre(arg *container.Build, bs *build.BuildSteps) (*container.Build, *build.BuildSteps)
- func RunCommand(cmd *cobra.Command, args []string) error
- func RunGithub(cmd *cobra.Command, args []string) error
- func RunGithubAction() error
- func RunGithubActionCmd(_ *cobra.Command, args []string) error
- func RunMage(cmd *cobra.Command, args []string)
- func SaveCache() error
- func SetUpdateConfig(config *UpdateConfig)
- func SetVersionInfo(version, commit, date, repo string) string
- func Start() (func(), network.Address)
- type Command
- type LeaderElection
- type UpdateConfig
- type WorkflowTemplate
Constants ¶
This section is empty.
Variables ¶
var RootArgs = &rootCmdArgs{}
Functions ¶
func CallPlugin ¶ added in v0.11.0
func CallPlugin(logger hclog.Logger, plugin interface{}) []*protos2.BuildArgsGroup
func ConfigureUpdate ¶ added in v0.26.1
func ConfigureUpdate(binaryName, githubOrg, githubRepo string)
ConfigureUpdate allows extending projects to configure the update command
func Execute ¶
func Execute() error
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetBuild ¶
func GetBuild() container.BuildGroups
func InitBuildSteps ¶ added in v0.2.1
func InitBuildSteps(_buildSteps *build.BuildSteps) *build.BuildSteps
InitBuildSteps can be used to set the build steps for the build command This is useful for registering a new build step as part of a extension of the engine-ci with to support new build types for different languages or to customize the build steps for a specific project.
func Pre ¶
func Pre(arg *container.Build, bs *build.BuildSteps) (*container.Build, *build.BuildSteps)
func RunGithubAction ¶
func RunGithubAction() error
func SetUpdateConfig ¶ added in v0.26.1
func SetUpdateConfig(config *UpdateConfig)
SetUpdateConfig allows full configuration control
func SetVersionInfo ¶ added in v0.3.0
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(_buildArgs container.Build, _buildSteps *build.BuildSteps) *Command
func (*Command) Pre ¶ added in v0.11.0
func (c *Command) Pre() (*container.Build, *build.BuildSteps)
type LeaderElection ¶ added in v0.11.0
type LeaderElection struct {
// contains filtered or unexported fields
}
func (*LeaderElection) Leader ¶ added in v0.11.0
func (l *LeaderElection) Leader(id string, fnc func() error)
type UpdateConfig ¶ added in v0.26.1
type UpdateConfig struct {
UpdateHook func() error
BinaryName string
GitHubOrg string
GitHubRepo string
}
UpdateConfig holds the configuration for the update command
func GetUpdateConfig ¶ added in v0.26.1
func GetUpdateConfig() *UpdateConfig
GetUpdateConfig returns the current update configuration
type WorkflowTemplate ¶ added in v0.27.1
WorkflowTemplate represents a GitHub Actions workflow template