Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvSubCmdCount = 5 SingleAliasIndex = 0 SvcSubCmdCount = 7 SvcShowFormatFlagIndex = 0 SvcLogFlagCount = 3 EnvLogFollowFlagIndex = 0 EnvLogDurationFlagIndex = 1 SvcLogServiceFlagIndex = 0 SvcLogFollowFlagIndex = 1 SvcLogDurationFlagIndex = 2 ExeArgsCmdIndex = 1 EnvLogsFlagCount = 2 SvcPushTagFlagIndex = 0 SvcDeployTagFlagIndex = 0 SvcUndeploySvcFlagIndex = 1 DefaultLogDurationValue = 1 * time.Minute SvcCmd = "service" SvcAlias = "svc" SvcUsage = "options for managing services" SvcShowUsage = "[<service>]" SvcLogUsage = "show service logs" SvcLogArgUsage = "<environment> [<filter>...]" SvcLogServiceFlagUsage = "service name to view logs for" SvcExeServiceFlagUsage = "service name for command" SvcRestartServiceFlagUsage = "service name to restart" SvcExeTaskFlagUsage = "task definition arn" SvcExeClusterFlagUsage = "cluster name or full arn" SvcPushTagFlagUsage = "tag to push" SvcPushProviderFlagUsage = "provider to push to" SvcPushKmsKeyFlagUsage = "kms key to encrypt artifact with" SvcDeployTagFlagUsage = "docker image tag to deploy" SvcRestartBatchFlagUsage = "number of tasks to restart concurrently" TagFlagName = "tag, t" ProviderFlagName = "provider, p" KmsKeyFlagName = "kms-key, k" EnvCmd = "environment" EnvAlias = "env" EnvUsage = "options for managing environments" EnvArgUsage = "<environment>" EnvsArgUsage = "<environments...>" Tag = "tag" BatchSize = "batch-size" Provider = "provider" KmsKey = "kms-key" UpsertCmd = "upsert" UpsertAlias = "up" UpsertUsage = "create/update an environment" ListCmd = "list" TerminateCmd = "terminate" TerminateAlias = "term" TerminateUsage = "terminate an environment" ListAlias = "ls" ListUsage = "list environments" ShowCmd = "show" ShowCmdUsage = "show environment details" ExeCmd = "exec" ExeUsage = "execute a command in environment" ExeArgs = "<environment> <command>" RestartCmd = "restart" RestartUsage = "rolling restart of environment" LogsCmd = "logs" LogsArgs = "<environment> [<filter>...]" LogsUsage = "show environment logs" Format = "format" FormatFlag = "format, f" FormatFlagUsage = "output format, either 'shell', 'json' or 'cli' (default: cli)" FormatFlagDefault = "cli" Follow = "follow" FollowFlag = "follow, f" ServiceFlag = "service, s" BatchFlag = "batch-size, b" TaskFlagName = "task" TaskFlagVisible = true TaskFlag = "task, t" ClusterFlagName = "cluster" ClusterFlag = "cluster, c" ClusterFlagVisible = true FollowUsage = "follow logs for latest changes" SearchDuration = "search-duration" SearchDurationUsage = "duration to go into the past for searching (e.g. 5m for 5 minutes)" SearchDurationFlag = "search-duration, t" PushCmd = "push" SvcPushCmdUsage = "push service to repository" DeployCmd = "deploy" SvcDeployCmdUsage = "deploy service to environment" UndeployCmd = "undeploy" SvcUndeployCmdUsage = "undeploy service from environment" SvcUndeployArgsUsage = "<environment> [<service>]" )
Constants for available command names and options
View Source
const ( Zero = 0 Space = " " Spaces = " " NoEnvValidation = "environment must be provided" AllEnvValidation = "environment must NOT be provided" NoCmdValidation = "command must be provided" EmptyCmdValidation = "command must not be an empty string" )
Constants to prevent multiple updates when making changes.
View Source
const ( EnvAliasCount = 1 SvcAliasCount = 1 SvcFlagsCount = 3 FailExitCode = 1 Test = "test" TestEnv = "fooenv" TestSvc = "foosvc" TestCmd = "foocmd" Help = "help" NameMessage = "Name should match" UsageMessage = "Usage should match" AliasLenMessage = "Aliases len should match" AliasMessage = "Aliases should match" ArgsUsageMessage = "ArgsUsage should match" SubCmdLenMessage = "Subcommands len should match" FlagLenMessage = "Flag len should match" FlagMessage = "Flag should match" )
Constants used during testing
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.