github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/cmd/chore/e2e/run/node.go (about) 1 package main 2 3 import ( 4 "context" 5 "fmt" 6 ) 7 8 func someMasterNodeContextAndID(ctx context.Context, settings programSettings, newOrbctl newOrbctlCommandFunc) (string, string, error) { 9 10 var ( 11 context = fmt.Sprintf("%s.management", settings.orbID) 12 id string 13 ) 14 return context, id, runCommand(settings, orbctl.strPtr(), nil, func(line string) { 15 id = line 16 }, newOrbctl(ctx), "--gitops", "nodes", "list", "--context", context, "--column", "id") 17 }