Documentation
¶
Index ¶
- Constants
- Variables
- func Finalize(cmd CiCmd) *cobra.Command
- func FinalizeErroringCmd(cmd ErroringCiCmd) *cobra.Command
- type BaseCommand
- func (cmd *BaseCommand) Errorf(format string, params ...interface{})
- func (cmd *BaseCommand) EvalCurrentAndNextVersion()
- func (cmd *BaseCommand) Failf(format string, params ...interface{})
- func (cmd *BaseCommand) GetCmdOutputOneLine(description string, name string, params ...string) string
- func (cmd *BaseCommand) GetCobraCmd() *cobra.Command
- func (cmd *BaseCommand) GetCurrentBranch() string
- func (cmd *BaseCommand) GetUsername() string
- func (cmd *BaseCommand) Infof(format string, params ...interface{})
- func (cmd *BaseCommand) Init(args []string)
- func (cmd *BaseCommand) RunGitCommand(description string, params ...string)
- func (cmd *BaseCommand) Warnf(format string, params ...interface{})
- type CiCmd
- type ErroringCiCmd
- type GoBuildFlagsCmd
- type GoBuildInfo
- type GoBuildInfoCmd
- type RootCommand
- type SdkBuildInfo
- type SdkBuildInfoCmd
- type TidyTagsCmd
Constants ¶
View Source
const ( Version = "v0.5.136" Revision = "76024b7b261a" Branch = "unknown" BuildUser = "unknown" BuildDate = "2026-03-27T00:38:24Z" )
View Source
const ( DefaultGitUsername = "ziti-ci" DefaultGitEmail = "ziti-ci@netfoundry.io" DefaultSshKeyEnvVar = "gh_ci_key" DefaultGpgKeyEnvVar = "ziti_ci_gpg_key" DefaultGpgKeyIdEnvVar = "ziti_ci_gpg_key_id" DefaultSshKeyFile = "github_deploy_key" )
View Source
const ( LangGo langType = 1 LangJava langType = 2 )
View Source
const ( Minor = 1 Patch = 2 )
View Source
const (
DefaultVersionFile = "./version"
)
Variables ¶
View Source
var RootCmd = newRootCommand()
Functions ¶
func FinalizeErroringCmd ¶
func FinalizeErroringCmd(cmd ErroringCiCmd) *cobra.Command
Types ¶
type BaseCommand ¶
type BaseCommand struct {
*RootCommand
Cmd *cobra.Command
Args []string
BaseVersion *version.Version
CurrentVersion *version.Version
NextVersion *version.Version
CurrentBranch *string
BuildNumber *string
}
func (*BaseCommand) Errorf ¶
func (cmd *BaseCommand) Errorf(format string, params ...interface{})
func (*BaseCommand) EvalCurrentAndNextVersion ¶
func (cmd *BaseCommand) EvalCurrentAndNextVersion()
func (*BaseCommand) Failf ¶
func (cmd *BaseCommand) Failf(format string, params ...interface{})
func (*BaseCommand) GetCmdOutputOneLine ¶
func (cmd *BaseCommand) GetCmdOutputOneLine(description string, name string, params ...string) string
func (*BaseCommand) GetCobraCmd ¶
func (cmd *BaseCommand) GetCobraCmd() *cobra.Command
func (*BaseCommand) GetCurrentBranch ¶
func (cmd *BaseCommand) GetCurrentBranch() string
func (*BaseCommand) GetUsername ¶
func (cmd *BaseCommand) GetUsername() string
func (*BaseCommand) Infof ¶
func (cmd *BaseCommand) Infof(format string, params ...interface{})
func (*BaseCommand) Init ¶
func (cmd *BaseCommand) Init(args []string)
func (*BaseCommand) RunGitCommand ¶
func (cmd *BaseCommand) RunGitCommand(description string, params ...string)
func (*BaseCommand) Warnf ¶
func (cmd *BaseCommand) Warnf(format string, params ...interface{})
type ErroringCiCmd ¶
type GoBuildFlagsCmd ¶
type GoBuildFlagsCmd struct {
BaseCommand
// contains filtered or unexported fields
}
func (*GoBuildFlagsCmd) Execute ¶
func (cmd *GoBuildFlagsCmd) Execute()
type GoBuildInfo ¶
type GoBuildInfoCmd ¶
type GoBuildInfoCmd struct {
BaseCommand
// contains filtered or unexported fields
}
func (*GoBuildInfoCmd) Execute ¶
func (cmd *GoBuildInfoCmd) Execute()
type RootCommand ¶
func (*RootCommand) Execute ¶
func (r *RootCommand) Execute()
type SdkBuildInfo ¶
type SdkBuildInfo struct {
Version string
}
type SdkBuildInfoCmd ¶
type SdkBuildInfoCmd struct {
BaseCommand
}
func (*SdkBuildInfoCmd) Execute ¶
func (cmd *SdkBuildInfoCmd) Execute()
type TidyTagsCmd ¶
type TidyTagsCmd struct {
BaseCommand
// contains filtered or unexported fields
}
func (*TidyTagsCmd) Execute ¶
func (cmd *TidyTagsCmd) Execute()
Source Files
¶
- build_flags_cmd.go
- build_info.go
- build_info_cmd.go
- build_release_notes.go
- build_sdk_release_notes.go
- common.go
- configure_git_cmd.go
- get_branch_cmd.go
- get_current_version_cmd.go
- get_next_version_cmd.go
- get_release_notes.go
- package_cmd.go
- publish_to_github.go
- root_cmd.go
- tag_cmd.go
- tidy_tags_cmd.go
- trigger_github_build_cmd.go
- trigger_jenkins_build_cmd.go
- trigger_travis_build_cmd.go
- update-deps.go
- update_release_notes.go
- update_sdk_build_info_cmd.go
- update_sdk_release_notes.go
- verify_current_version_cmd.go
- verify_version_cmd.go
- version_util.go
Click to show internal directories.
Click to hide internal directories.