mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Fix typos
This commit is contained in:
@@ -131,7 +131,7 @@ func main() {
|
||||
},
|
||||
cli.StringSliceFlag{
|
||||
Name: "gcp-kms",
|
||||
Usage: "the GCP KMS Resourece ID the new group should contain. Can be specified more than once",
|
||||
Usage: "the GCP KMS Resource ID the new group should contain. Can be specified more than once",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "in-place, i",
|
||||
|
||||
@@ -92,7 +92,7 @@ func NewMasterKeyFromResourceID(resourceID string) *MasterKey {
|
||||
return k
|
||||
}
|
||||
|
||||
// MasterKeysFromResourceIDString takes a comma separated list of GCP KMS resourece IDs and returns a slice of new MasterKeys for them
|
||||
// MasterKeysFromResourceIDString takes a comma separated list of GCP KMS resource IDs and returns a slice of new MasterKeys for them
|
||||
func MasterKeysFromResourceIDString(resourceID string) []*MasterKey {
|
||||
var keys []*MasterKey
|
||||
if resourceID == "" {
|
||||
@@ -108,7 +108,7 @@ func (key MasterKey) createCloudKMSService() (*cloudkms.Service, error) {
|
||||
re := regexp.MustCompile(`^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$`)
|
||||
matches := re.FindStringSubmatch(key.ResourceID)
|
||||
if matches == nil {
|
||||
return nil, fmt.Errorf("No valid resoureceId found in %q", key.ResourceID)
|
||||
return nil, fmt.Errorf("No valid resourceId found in %q", key.ResourceID)
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
Reference in New Issue
Block a user