GetProjectIDDatabaseGroupID returns the project ID and database group ID from a resource name.
(name string)
| 79 | |
| 80 | // GetProjectIDDatabaseGroupID returns the project ID and database group ID from a resource name. |
| 81 | func GetProjectIDDatabaseGroupID(name string) (string, string, error) { |
| 82 | tokens, err := GetNameParentTokens(name, ProjectNamePrefix, DatabaseGroupNamePrefix) |
| 83 | if err != nil { |
| 84 | return "", "", err |
| 85 | } |
| 86 | return tokens[0], tokens[1], nil |
| 87 | } |
| 88 | |
| 89 | // GetProjectIDWebhookID returns the project ID and webhook ID from a resource name. |
| 90 | func GetProjectIDWebhookID(name string) (string, string, error) { |
no test coverage detected