-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCP KMS MQL resources: - keyrings - `gcp.project.kms.keyrings` - cryptokeys - `gcp.project.kms.keyrings { cryptokeys }` - cryptokey versions - `gcp.project.kms.keyrings { cryptokeys { versions } }` Signed-off-by: Ivan Milchev <[email protected]> Co-authored-by: Christoph Hartmann <[email protected]> Co-authored-by: Letha <[email protected]>
- Loading branch information
1 parent
db52aef
commit 5080754
Showing
9 changed files
with
2,461 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,8 @@ vmknics | |
Vtpm | ||
wfascimprov | ||
wil | ||
cavium | ||
certificatechains | ||
cryptokey | ||
ekm | ||
kmsService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package gcp | ||
|
||
import ( | ||
"strings" | ||
"time" | ||
|
||
"google.golang.org/protobuf/types/known/timestamppb" | ||
) | ||
|
||
func timestampAsTimePtr(t *timestamppb.Timestamp) *time.Time { | ||
if t == nil { | ||
return nil | ||
} | ||
tm := t.AsTime() | ||
return &tm | ||
} | ||
|
||
// parseResourceName returns the name of a resource from either a full path or just the name. | ||
func parseResourceName(fullPath string) string { | ||
segments := strings.Split(fullPath, "/") | ||
return segments[len(segments)-1] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.