ApiKeyGenPrefix: rename package (#65623)
* Rename package to satokengen to make it clearer that it is for service account tokens
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
apikeygenprefix "github.com/grafana/grafana/pkg/components/apikeygenprefixed"
|
||||
"github.com/grafana/grafana/pkg/components/satokengen"
|
||||
)
|
||||
|
||||
// placeholder key generator
|
||||
@@ -22,7 +22,7 @@ func main() {
|
||||
}
|
||||
|
||||
for i := 0; i < numKeys; i++ {
|
||||
key, err := apikeygenprefix.New("pl")
|
||||
key, err := satokengen.New("pl")
|
||||
if err != nil {
|
||||
fmt.Println("ERROR: generating key failed:", err)
|
||||
return
|
||||
@@ -1,4 +1,4 @@
|
||||
package apikeygenprefix
|
||||
package satokengen
|
||||
|
||||
import "github.com/grafana/grafana/pkg/components/apikeygen"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package apikeygenprefix
|
||||
package satokengen
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package apikeygenprefix
|
||||
package satokengen
|
||||
|
||||
import (
|
||||
"testing"
|
||||
Reference in New Issue
Block a user