Documentation
¶
Index ¶
- Constants
- Variables
- func Execute()
- func GetStoryHandler(b *bosun.Bosun, storyID string) (stories.StoryHandler, error)
- func MustGetBosun(optionalParams ...cli.Parameters) *bosun.Bosun
- func MustGetBosunNoEnvironment(optionalParams ...cli.Parameters) *bosun.Bosun
- func MustGetPlatform(optionalParams ...cli.Parameters) (*bosun.Bosun, *bosun.Platform)
- func MustYaml(i interface{}) string
- func StartFeatureDevelopment(taskName string, body string, storyID string) error
- func TraverseRunHooks(c *cobra.Command) *cobra.Command
- type BosunIssueMetadata
- type FilterParams
- func (f FilterParams) ApplyToDeploySettings(d *bosun.DeploySettings)
- func (f FilterParams) Chain() filter.Chain
- func (f FilterParams) GetApp() (*bosun.App, error)
- func (f FilterParams) GetAppDeploys() ([]*bosun.AppDeploy, error)
- func (f FilterParams) GetApps() bosun.AppList
- func (f FilterParams) GetAppsChain(chain filter.Chain) ([]*bosun.App, error)
- func (f FilterParams) IncludeCurrent() FilterParams
- func (f FilterParams) IsEmpty() bool
- func (f FilterParams) MustGetApp() *bosun.App
- func (f FilterParams) MustGetAppDeploys() []*bosun.AppDeploy
- func (f FilterParams) PreferCurrent() FilterParams
- type GitPullRequestCommand
- type MoveMap
- type QAApp
- type QAStory
Constants ¶
const ( ArgSvcToggleLocalhost = "localhost" ArgSvcToggleMinikube = "minikube" ArgFilteringAll = "all" ArgFilteringLabels = "labels" ArgAppListDiff = "diff" ArgAppListSkipActual = "skip-actual" ArgAppValueSet = "value-sets" ArgAppSet = "set" ArgAppFromRelease = "release" ArgAppLatest = "latest" ArgAppDeletePurge = "purge" ArgAppCloneDir = "dir" ArgFilteringInclude = "include" ArgFilteringExclude = "exclude" ArgChangeLogMoreDetails = "details" )
const ( ArgE2ERunTests = "tests" ArgE2ERunSkipSetup = "skip-setup" ArgE2ERunSkipTeardown = "skip-teardown" )
const ( ArgEnvCurrent = "current" ArgEnvCluster = "cluster" )
const ( ArgPullRequestReviewers = "reviewer" ArgPullRequestTitle = "title" ArgPullRequestBody = "body" ArgPullRequestBase = "base" )
const ( GitRetry = "retry" ArgGitCommitNoVerify = "no-verify" ArgGitCommitSquash = "squash-against" TempFileGitCommit = "/tmp/bosun_git_commit" )
const ( ArgGitTitle = "title" ArgGitBody = "body" ArgGitTaskStory = "story" ArgGitTaskParentOrg = "parent-org" ArgGitTaskParentRepo = "parent-repo" )
const ( ArgGraylogApiOrigin = "api-origin" ArgGraylogUsername = "username" ArgGraylogPassword = "password" ArgGraylogValues = "set" )
const ( OutputTable = "table" OutputYaml = "yaml" )
const ( ArgIssueParent = "parents" ArgIssueChildren = "children" )
const ( ArgKubePullSecretName = "name" ArgKubePullSecretTarget = "target" ArgKubePullSecretUsername = "username" ArgKubePullSecretPassword = "password" ArgKubePullSecretPasswordLpassPath = "password-path" ArgKubePullSecretNamespace = "namespace" )
const ( ArgMetaUpgradePreRelease = "pre-release" ArgMetaUpgradeVersion = "version" )
const ( ArgMongoDatabase = "mongo-database" ArgMongoHost = "host" ArgMongoPort = "port" ArgMongoVaultAuth = "vault-auth" ArgMongoUsername = "username" ArgMongoPassword = "password" ArgMongoAuthSource = "auth-source" ArgMongoKubePortForward = "kube-port-forward" ArgMongoKubePort = "kube-port" ArgMongoKubeSvcName = "kube-service-name" ArgMongoRebuildDb = "rebuild-db" )
const ( ArgReleaseAddBranch = "branch" ArgReleaseAddBump = "bump" )
const ( ArgGlobalSudo = "sudo" ArgGlobalVerbose = "verbose" ArgGlobalTrace = "trace" ArgGlobalVerboseErrors = "verbose-errors" ArgGlobalDryRun = "dry-run" ArgGlobalDomain = "domain" ArgGlobalValues = "values" ArgBosunConfigFile = "config-file" ArgGlobalConfirmedEnv = "confirm-env" ArgGlobalNoEnv = "no-env" ArgGlobalNoCluster = "no-cluster" ArgGlobalForce = "force" ArgGlobalNoReport = "no-report" ArgGlobalOutput = "output" ArgGlobalProfile = "profile" ArgGlobalCluster = "cluster" )
const ( ArgVaultAddr = "vault-addr" ArgVaultToken = "vault-token" ArgVaultJWTRole = "role" ArgVaultJWTTenant = "tenant" ArgVaultJWTSub = "sub" ArgVaultJWTTTL = "ttl" ArgVaultJWTClaims = "claims" ArgVaultSecretGenerate = "generate" ArgVaultSecretOverwrite = "overwrite" ArgVaultSecretDefault = "default" ArgVaultNamespace = "vault-namespace" )
const (
ArgAppBumpTag = "tag"
)
const (
ArgAppProviderPriority = "providers"
)
const ArgAppRecyclePullLatest = "pull-latest"
const ArgGitAcceptPRAppVersion = "app"
const (
ArgImagePattern = "pattern"
)
const (
ArgKubeDashboardUrl = "url"
)
const (
ArgReleaseName = "release"
)
const ArgReleaseRecycle = "recycle"
const ArgReleaseSkipValidate = "skip-validation"
const (
ArgReleaseValidateNoProgress = "no-progress"
)
const (
ArgScriptSteps = "steps"
)
const (
LabelBundleConfigMapHash = "naveego.com/bosun-bundle-hash"
)
Variables ¶
var (
ArgPublishChartForce = "force"
)
Functions ¶
func Execute ¶
func Execute()
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 GetStoryHandler ¶
func MustGetBosun ¶
func MustGetBosun(optionalParams ...cli.Parameters) *bosun.Bosun
func MustGetBosunNoEnvironment ¶
func MustGetBosunNoEnvironment(optionalParams ...cli.Parameters) *bosun.Bosun
func MustGetPlatform ¶
func StartFeatureDevelopment ¶
func TraverseRunHooks ¶
TraverseRunHooks modifies c's PersistentPreRun* and PersistentPostRun* functions (when present) so that they will search c's command chain and invoke the corresponding hook of the first parent that provides a hook. When used on every command in the chain the invocation of hooks will be propagated up the chain to the root command.
In the case of PersistentPreRun* hooks the parent hook is invoked before the child hook. In the case of PersistentPostRun* the child hook is invoked first.
Use it in place of &cobra.Command{}, e.g.
command := TraverseRunHooks(&cobra.Command{ PersistentPreRun: func ..., })
Types ¶
type BosunIssueMetadata ¶
type BosunIssueMetadata struct { BaseBranch string `yaml:"baseBranch"` Branch string `yaml:"branch"` Story string `yaml:"story"` Task string `yaml:"task"` }
func (BosunIssueMetadata) String ¶
func (b BosunIssueMetadata) String() string
type FilterParams ¶
type FilterParams struct { Names []string All bool Include []string Exclude []string Labels []string // contains filtered or unexported fields }
func (FilterParams) ApplyToDeploySettings ¶
func (f FilterParams) ApplyToDeploySettings(d *bosun.DeploySettings)
ApplyToDeploySettings will set a filter on the deploy settings if the filter is not empty.
func (FilterParams) Chain ¶
func (f FilterParams) Chain() filter.Chain
func (FilterParams) GetAppDeploys ¶
func (f FilterParams) GetAppDeploys() ([]*bosun.AppDeploy, error)
func (FilterParams) GetApps ¶
func (f FilterParams) GetApps() bosun.AppList
func (FilterParams) GetAppsChain ¶
func (FilterParams) IncludeCurrent ¶
func (f FilterParams) IncludeCurrent() FilterParams
func (FilterParams) IsEmpty ¶
func (f FilterParams) IsEmpty() bool
func (FilterParams) MustGetApp ¶
func (f FilterParams) MustGetApp() *bosun.App
func (FilterParams) MustGetAppDeploys ¶
func (f FilterParams) MustGetAppDeploys() []*bosun.AppDeploy
func (FilterParams) PreferCurrent ¶
func (f FilterParams) PreferCurrent() FilterParams
Source Files
¶
- app.go
- app_deploy.go
- app_list.go
- app_publish_image.go
- app_toggle.go
- app_ui.go
- app_update.go
- chores.go
- cluster.go
- cobra_helpers.go
- deploy.go
- deploy_app.go
- deploy_execute.go
- deploy_plan.go
- deploy_show.go
- deploy_validate.go
- docker.go
- docs.go
- e2e.go
- edit.go
- env.go
- git.go
- git_accept.go
- git_commit.go
- git_deployment.go
- git_move_merge.go
- git_pr.go
- git_task.go
- graylog.go
- helm.go
- helpers.go
- helpers_render.go
- hr.go
- issue.go
- keeper.go
- kube.go
- kube_exectoken.go
- kube_port_forward.go
- lastpass.go
- log.go
- meta.go
- mongo.go
- platform.go
- platform_bundle.go
- release.go
- release_commit.go
- release_create.go
- repo.go
- repo_github.go
- root.go
- script.go
- secrets.go
- stack.go
- story.go
- story_dev.go
- story_qa.go
- tenant.go
- tools.go
- vault.go
- workspace.go