MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / cqpdTokenWithURL

Function cqpdTokenWithURL

cli/internal/platform/inject_test.go:131–136  ·  view source on GitHub ↗
(t *testing.T, apiURL string)

Source from the content-addressed store, hash-verified

129}
130
131func cqpdTokenWithURL(t *testing.T, apiURL string) string {
132 t.Helper()
133 payload, err := json.Marshal(map[string]any{"u": apiURL})
134 require.NoError(t, err)
135 return "cqpd_" + base64.RawURLEncoding.EncodeToString(payload) + ".sig"
136}
137
138func cqpdTokenWithClaims(t *testing.T, claims map[string]any) string {
139 t.Helper()

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected