SYMBOL INDEX (196 symbols across 41 files) FILE: client/consul.go function NewConsulClient (line 11) | func NewConsulClient(addr string) (*consul.Client, error) { FILE: client/nomad.go function NewNomadClient (line 11) | func NewNomadClient(addr string) (*nomad.Client, error) { FILE: command/deploy.go type DeployCommand (line 20) | type DeployCommand struct method Help (line 25) | func (c *DeployCommand) Help() string { method Synopsis (line 92) | func (c *DeployCommand) Synopsis() string { method Run (line 97) | func (c *DeployCommand) Run(args []string) int { method checkCanaryAutoPromote (line 193) | func (c *DeployCommand) checkCanaryAutoPromote(job *nomad.Job, canaryA... method checkForceBatch (line 213) | func (c *DeployCommand) checkForceBatch(job *nomad.Job, forceBatch boo... FILE: command/deploy_test.go function TestDeploy_checkCanaryAutoPromote (line 12) | func TestDeploy_checkCanaryAutoPromote(t *testing.T) { function TestDeploy_checkForceBatch (line 48) | func TestDeploy_checkForceBatch(t *testing.T) { FILE: command/dispatch.go type DispatchCommand (line 19) | type DispatchCommand struct method Help (line 24) | func (c *DispatchCommand) Help() string { method Synopsis (line 60) | func (c *DispatchCommand) Synopsis() string { method Run (line 65) | func (c *DispatchCommand) Run(args []string) int { FILE: command/meta.go type FlagSetFlags (line 17) | type FlagSetFlags constant FlagSetNone (line 21) | FlagSetNone FlagSetFlags = 0 constant FlagSetBuildFilter (line 22) | FlagSetBuildFilter FlagSetFlags = 1 << iota constant FlagSetVars (line 23) | FlagSetVars type Meta (line 28) | type Meta struct method FlagSet (line 37) | func (m *Meta) FlagSet(n string, fs FlagSetFlags) *flag.FlagSet { FILE: command/plan.go type PlanCommand (line 19) | type PlanCommand struct method Help (line 24) | func (c *PlanCommand) Help() string { method Synopsis (line 80) | func (c *PlanCommand) Synopsis() string { method Run (line 85) | func (c *PlanCommand) Run(args []string) int { FILE: command/render.go type RenderCommand (line 19) | type RenderCommand struct method Help (line 24) | func (c *RenderCommand) Help() string { method Synopsis (line 66) | func (c *RenderCommand) Synopsis() string { method Run (line 71) | func (c *RenderCommand) Run(args []string) int { FILE: command/scale_in.go type ScaleInCommand (line 16) | type ScaleInCommand struct method Help (line 21) | func (c *ScaleInCommand) Help() string { method Synopsis (line 63) | func (c *ScaleInCommand) Synopsis() string { method Run (line 68) | func (c *ScaleInCommand) Run(args []string) int { FILE: command/scale_out.go type ScaleOutCommand (line 16) | type ScaleOutCommand struct method Help (line 21) | func (c *ScaleOutCommand) Help() string { method Synopsis (line 63) | func (c *ScaleOutCommand) Synopsis() string { method Run (line 68) | func (c *ScaleOutCommand) Run(args []string) int { FILE: command/version.go type VersionCommand (line 13) | type VersionCommand struct method Help (line 19) | func (c *VersionCommand) Help() string { method Synopsis (line 24) | func (c *VersionCommand) Synopsis() string { method Run (line 29) | func (c *VersionCommand) Run(_ []string) int { FILE: commands.go function Commands (line 17) | func Commands(metaPtr *command.Meta) map[string]cli.CommandFactory { FILE: helper/files.go function GetDefaultTmplFile (line 15) | func GetDefaultTmplFile() (templateFile string) { function GetDefaultVarFile (line 28) | func GetDefaultVarFile() (varFile string) { FILE: helper/files_test.go function TestHelper_GetDefaultTmplFile (line 12) | func TestHelper_GetDefaultTmplFile(t *testing.T) { function TestHelper_GetDefaultVarFile (line 55) | func TestHelper_GetDefaultVarFile(t *testing.T) { FILE: helper/kvflag.go type Flag (line 13) | type Flag method String (line 15) | func (v *Flag) String() string { method Set (line 21) | func (v *Flag) Set(raw string) error { type FlagStringSlice (line 58) | type FlagStringSlice method String (line 60) | func (v *FlagStringSlice) String() string { method Set (line 66) | func (v *FlagStringSlice) Set(raw string) error { FILE: helper/kvflag_test.go function TestHelper_Set (line 14) | func TestHelper_Set(t *testing.T) { FILE: helper/nomad/opts.go function GenerateBlockingQueryOptions (line 10) | func GenerateBlockingQueryOptions(ns *string) *api.QueryOptions { FILE: helper/nomad/opts_test.go function Test_GenerateBlockingQueryOptions (line 13) | func Test_GenerateBlockingQueryOptions(t *testing.T) { function stringToPtr (line 44) | func stringToPtr(s string) *string { return &s } FILE: helper/variable.go function VariableMerge (line 13) | func VariableMerge(fileVars, flagVars *map[string]interface{}) map[strin... FILE: helper/variable_test.go function TestHelper_VariableMerge (line 11) | func TestHelper_VariableMerge(t *testing.T) { FILE: levant/auto_revert.go method autoRevert (line 14) | func (l *levantDeployment) autoRevert(dep *nomad.Deployment) { method checkAutoRevert (line 56) | func (l *levantDeployment) checkAutoRevert(dep *nomad.Deployment) { FILE: levant/deploy.go constant jobStatusRunning (line 19) | jobStatusRunning = "running" type levantDeployment (line 24) | type levantDeployment struct method preDeployValidate (line 89) | func (l *levantDeployment) preDeployValidate() (success bool) { method deploy (line 115) | func (l *levantDeployment) deploy() (success bool) { method evaluationInspector (line 208) | func (l *levantDeployment) evaluationInspector(evalID *string) error { method deploymentWatcher (line 270) | func (l *levantDeployment) deploymentWatcher(depID string) (success bo... method checkDeploymentStatus (line 324) | func (l *levantDeployment) checkDeploymentStatus(dep *nomad.Deployment... method canaryAutoPromote (line 348) | func (l *levantDeployment) canaryAutoPromote(depID string, waitTime in... method checkCanaryDeploymentHealth (line 385) | func (l *levantDeployment) checkCanaryDeploymentHealth(depID string) (... method triggerPeriodic (line 422) | func (l *levantDeployment) triggerPeriodic(jobID *string) (evalID stri... method getDeploymentID (line 436) | func (l *levantDeployment) getDeploymentID(evalID string) (depID strin... method dynamicGroupCountUpdater (line 467) | func (l *levantDeployment) dynamicGroupCountUpdater() error { method isJobZeroCount (line 507) | func (l *levantDeployment) isJobZeroCount() bool { type DeployConfig (line 30) | type DeployConfig struct function newLevantDeployment (line 39) | func newLevantDeployment(config *DeployConfig, nomadClient *nomad.Client... function TriggerDeployment (line 62) | func TriggerDeployment(config *DeployConfig, nomadClient *nomad.Client) ... FILE: levant/dispatch.go function TriggerDispatch (line 15) | func TriggerDispatch(job string, metaMap map[string]string, payload []by... method dispatch (line 41) | func (l *levantDeployment) dispatch(job string, metaMap map[string]strin... FILE: levant/failure_inspector.go method checkFailedDeployment (line 16) | func (l *levantDeployment) checkFailedDeployment(depID *string) { method allocInspector (line 55) | func (l *levantDeployment) allocInspector(allocID string, wg *sync.WaitG... FILE: levant/job_status_checker.go type TaskCoordinate (line 13) | type TaskCoordinate struct method jobStatusChecker (line 21) | func (l *levantDeployment) jobStatusChecker(evalID *string) bool { method simpleJobStatusChecker (line 46) | func (l *levantDeployment) simpleJobStatusChecker() bool { method jobAllocationChecker (line 82) | func (l *levantDeployment) jobAllocationChecker(evalID *string) bool { function allocationStatusChecker (line 124) | func allocationStatusChecker(levantTasks map[TaskCoordinate]string, allo... FILE: levant/job_status_checker_test.go function TestJobStatusChecker_allocationStatusChecker (line 12) | func TestJobStatusChecker_allocationStatusChecker(t *testing.T) { FILE: levant/plan.go constant diffTypeAdded (line 16) | diffTypeAdded = "Added" constant diffTypeEdited (line 17) | diffTypeEdited = "Edited" constant diffTypeNone (line 18) | diffTypeNone = "None" type levantPlan (line 21) | type levantPlan struct method plan (line 75) | func (lp *levantPlan) plan() (bool, error) { type PlanConfig (line 27) | type PlanConfig struct function newPlan (line 33) | func newPlan(config *PlanConfig) (*levantPlan, error) { function TriggerPlan (line 48) | func TriggerPlan(config *PlanConfig) (bool, bool) { function planDiff (line 109) | func planDiff(plan *nomad.JobDiff) { function recurseObjDiff (line 135) | func recurseObjDiff(g, t string, objDiff *nomad.ObjectDiff) { function logDiffObj (line 160) | func logDiffObj(g, t, objName, fName, fOld, fNew string) { FILE: levant/structs/config.go constant JobIDContextField (line 11) | JobIDContextField = "job_id" constant ScalingDirectionOut (line 14) | ScalingDirectionOut = "Out" constant ScalingDirectionIn (line 17) | ScalingDirectionIn = "In" constant ScalingDirectionTypeCount (line 20) | ScalingDirectionTypeCount = "Count" constant ScalingDirectionTypePercent (line 23) | ScalingDirectionTypePercent = "Percent" type DeployConfig (line 28) | type DeployConfig struct type ClientConfig (line 52) | type ClientConfig struct type PlanConfig (line 67) | type PlanConfig struct type TemplateConfig (line 75) | type TemplateConfig struct type ScaleConfig (line 89) | type ScaleConfig struct FILE: logging/logging.go function SetupLogger (line 25) | func SetupLogger(level, format string) (err error) { function setLogLevel (line 38) | func setLogLevel(level string) error { function setLogFormat (line 57) | func setLogFormat(format string) error { FILE: main.go function main (line 13) | func main() { function Run (line 19) | func Run(args []string) int { function RunCustom (line 24) | func RunCustom(args []string, commands map[string]cli.CommandFactory) int { FILE: scale/scale.go type Config (line 15) | type Config struct function TriggerScalingEvent (line 22) | func TriggerScalingEvent(config *Config) bool { function updateJob (line 57) | func updateJob(client *nomad.Client, config *Config) *nomad.Job { function updateTaskGroup (line 96) | func updateTaskGroup(config *Config, group *nomad.TaskGroup) { function calculateCountBasedOnPercent (line 130) | func calculateCountBasedOnPercent(count, percent int) int { FILE: scale/scale_test.go function TestScale_updateTaskGroup (line 13) | func TestScale_updateTaskGroup(t *testing.T) { function TestScale_calculateCountBasedOnPercent (line 56) | func TestScale_calculateCountBasedOnPercent(t *testing.T) { function buildScalingConfig (line 89) | func buildScalingConfig(direction, dType string, number int) *Config { function buildTaskGroup (line 108) | func buildTaskGroup(count int) *nomad.TaskGroup { FILE: template/funcs.go function funcMap (line 28) | func funcMap(consulClient *consul.Client) template.FuncMap { constant SprigVersion (line 87) | SprigVersion = "3.1.0" function sprigVersionFunc (line 89) | func sprigVersionFunc() func(string) (string, error) { function consulKeyFunc (line 95) | func consulKeyFunc(consulClient *consul.Client) func(string) (string, er... function consulKeyExistsFunc (line 119) | func consulKeyExistsFunc(consulClient *consul.Client) func(string) (bool... function consulKeyOrDefaultFunc (line 141) | func consulKeyOrDefaultFunc(consulClient *consul.Client) func(string, st... function loop (line 167) | func loop(ints ...int64) (<-chan int64, error) { function parseBool (line 191) | func parseBool(s string) (bool, error) { function parseFloat (line 203) | func parseFloat(s string) (float64, error) { function parseInt (line 215) | func parseInt(s string) (int64, error) { function parseJSON (line 227) | func parseJSON(s string) (interface{}, error) { function parseUint (line 239) | func parseUint(s string) (uint64, error) { function replace (line 251) | func replace(input, from, to string) string { function timeNowFunc (line 255) | func timeNowFunc() string { function timeNowUTCFunc (line 259) | func timeNowUTCFunc() string { function timeNowTimezoneFunc (line 263) | func timeNowTimezoneFunc() func(string) (string, error) { function toLower (line 279) | func toLower(s string) (string, error) { function toUpper (line 283) | func toUpper(s string) (string, error) { function envFunc (line 287) | func envFunc() func(string) (string, error) { function fileContents (line 296) | func fileContents() func(string) (string, error) { function add (line 309) | func add(b, a interface{}) (interface{}, error) { function subtract (line 360) | func subtract(b, a interface{}) (interface{}, error) { function multiply (line 411) | func multiply(b, a interface{}) (interface{}, error) { function divide (line 462) | func divide(b, a interface{}) (interface{}, error) { function modulo (line 513) | func modulo(b, a interface{}) (interface{}, error) { function firstRuneToUpper (line 549) | func firstRuneToUpper(s string) (string, error) { function runeToUpper (line 553) | func runeToUpper(inString string, runeIndex int) (string, error) { function firstRuneToLower (line 557) | func firstRuneToLower(s string) (string, error) { function runeToLower (line 561) | func runeToLower(inString string, runeIndex int) (string, error) { function funcOnRune (line 565) | func funcOnRune(inFunc func(rune) rune, inString string, runeIndex int) ... function spewDump (line 585) | func spewDump(a interface{}) (string, error) { function spewPrintf (line 589) | func spewPrintf(format string, args ...interface{}) (string, error) { FILE: template/render.go function RenderJob (line 25) | func RenderJob(templateFile string, variableFiles []string, addr string,... function RenderTemplate (line 37) | func RenderTemplate(templateFile string, variableFiles []string, addr st... method parseJSONVars (line 104) | func (t *tmpl) parseJSONVars(variableFile string) (variables map[string]... method parseTFVars (line 119) | func (t *tmpl) parseTFVars(variableFile string) (map[string]interface{},... method parseYAMLVars (line 137) | func (t *tmpl) parseYAMLVars(variableFile string) (variables map[string]... method renderTemplate (line 151) | func (t *tmpl) renderTemplate(src string, variables map[string]interface... FILE: template/render_test.go constant testJobName (line 14) | testJobName = "levantExample" constant testJobNameOverwrite (line 15) | testJobNameOverwrite = "levantExampleOverwrite" constant testJobNameOverwrite2 (line 16) | testJobNameOverwrite2 = "levantExampleOverwrite2" constant testDCName (line 17) | testDCName = "dc13" constant testEnvName (line 18) | testEnvName = "GROUP_NAME_ENV" constant testEnvValue (line 19) | testEnvValue = "cache" function TestTemplater_RenderTemplate (line 22) | func TestTemplater_RenderTemplate(t *testing.T) { FILE: template/template.go type tmpl (line 14) | type tmpl struct method newTemplate (line 31) | func (t *tmpl) newTemplate() *template.Template { constant jsonVarExtension (line 22) | jsonVarExtension = ".json" constant terraformVarExtension (line 23) | terraformVarExtension = ".tf" constant yamlVarExtension (line 24) | yamlVarExtension = ".yaml" constant ymlVarExtension (line 25) | ymlVarExtension = ".yml" constant rightDelim (line 26) | rightDelim = "]]" constant leftDelim (line 27) | leftDelim = "[[" FILE: test/acctest/acctest.go type TestCase (line 14) | type TestCase struct type TestStep (line 26) | type TestStep struct type TestStepRunner (line 41) | type TestStepRunner interface type TestStateFunc (line 47) | type TestStateFunc type TestState (line 50) | type TestState struct function Test (line 57) | func Test(t *testing.T, c TestCase) { function CleanupPurgeJob (line 117) | func CleanupPurgeJob(s *TestState) error { function CheckDeploymentStatus (line 124) | func CheckDeploymentStatus(status string) TestStateFunc { function CheckTaskGroupCount (line 140) | func CheckTaskGroupCount(groupName string, count int) TestStateFunc { function newNomadClient (line 163) | func newNomadClient() (*nomad.Client, error) { FILE: test/acctest/deploy.go type DeployTestStepRunner (line 15) | type DeployTestStepRunner struct method Run (line 26) | func (c DeployTestStepRunner) Run(s *TestState) error { FILE: test/deploy_test.go function TestDeploy_basic (line 14) | func TestDeploy_basic(t *testing.T) { function TestDeploy_namespace (line 28) | func TestDeploy_namespace(t *testing.T) { function TestDeploy_driverError (line 57) | func TestDeploy_driverError(t *testing.T) { function TestDeploy_allocError (line 79) | func TestDeploy_allocError(t *testing.T) { function TestDeploy_count (line 101) | func TestDeploy_count(t *testing.T) { function TestDeploy_canary (line 144) | func TestDeploy_canary(t *testing.T) { function TestDeploy_lifecycle (line 172) | func TestDeploy_lifecycle(t *testing.T) { function TestDeploy_taskScalingStanza (line 186) | func TestDeploy_taskScalingStanza(t *testing.T) { FILE: version/version.go function GetHumanVersion (line 30) | func GetHumanVersion() string { FILE: version/version_test.go function Test_GetHumanVersion (line 12) | func Test_GetHumanVersion(t *testing.T) {