symbols.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package symbols
  2. import (
  3. "os/exec"
  4. "reflect"
  5. "dario.cat/mergo"
  6. "git.bazzel.dev/bmallen/helios"
  7. "git.bazzel.dev/bmallen/helios/tools"
  8. "github.com/google/uuid"
  9. )
  10. var (
  11. Symbols = map[string]map[string]reflect.Value{
  12. "os/exec/exec": {
  13. "Command": reflect.ValueOf(exec.Command),
  14. "CommandContext": reflect.ValueOf(exec.CommandContext),
  15. "LookPath": reflect.ValueOf(exec.LookPath),
  16. },
  17. "git.bazzel.dev/bmallen/helios/tools/tools": {
  18. "Docker": reflect.ValueOf(tools.Docker),
  19. "Terraform": reflect.ValueOf(tools.Terraform),
  20. "Git": reflect.ValueOf(tools.Git),
  21. "AWS": reflect.ValueOf(tools.AWS),
  22. "SSL": reflect.ValueOf(tools.SSL),
  23. "File": reflect.ValueOf(tools.File),
  24. "Helm": reflect.ValueOf(tools.Helm),
  25. "Slack": reflect.ValueOf(tools.Slack),
  26. "SetLogger": reflect.ValueOf(tools.SetLogger),
  27. },
  28. "git.bazzel.dev/bmallen/helios/helios": {
  29. "NewWorkflow": reflect.ValueOf(helios.NewWorkflow),
  30. "Step": reflect.ValueOf(helios.Step),
  31. "Needs": reflect.ValueOf(helios.Needs),
  32. "Workflow": reflect.ValueOf((*helios.Workflow)(nil)),
  33. "Context": reflect.ValueOf((*helios.Context)(nil)),
  34. },
  35. "github.com/google/uuid/uuid": {
  36. "New": reflect.ValueOf(uuid.New),
  37. "NewString": reflect.ValueOf(uuid.NewString),
  38. },
  39. "dario.cat/mergo/mergo": {
  40. "Merge": reflect.ValueOf(mergo.Merge),
  41. "WithOverride": reflect.ValueOf(mergo.WithOverride),
  42. "WithoutDereference": reflect.ValueOf(mergo.WithoutDereference),
  43. },
  44. }
  45. )