MCPcopy Index your code
hub / github.com/cortexproject/cortex / BuildArgs

Function BuildArgs

integration/e2e/util.go:72–84  ·  view source on GitHub ↗
(flags map[string]string)

Source from the content-addressed store, hash-verified

70}
71
72func BuildArgs(flags map[string]string) []string {
73 args := make([]string, 0, len(flags))
74
75 for name, value := range flags {
76 if value != "" {
77 args = append(args, name+"="+value)
78 } else {
79 args = append(args, name)
80 }
81 }
82
83 return args
84}
85
86func GetRequest(url string) (*http.Response, error) {
87 const timeout = 1 * time.Second

Calls

no outgoing calls

Tested by

no test coverage detected