MCPcopy Index your code
hub / github.com/bytebase/bytebase / GetProjectIDWebhookID

Function GetProjectIDWebhookID

backend/common/resource_name.go:90–96  ·  view source on GitHub ↗

GetProjectIDWebhookID returns the project ID and webhook ID from a resource name.

(name string)

Source from the content-addressed store, hash-verified

88
89// GetProjectIDWebhookID returns the project ID and webhook ID from a resource name.
90func GetProjectIDWebhookID(name string) (string, string, error) {
91 tokens, err := GetNameParentTokens(name, ProjectNamePrefix, WebhookIDPrefix)
92 if err != nil {
93 return "", "", err
94 }
95 return tokens[0], tokens[1], nil
96}
97
98// GetProjectIDAccessGrantID returns the project ID and access grant ID from a resource name.
99func GetProjectIDAccessGrantID(name string) (string, string, error) {

Callers 2

UpdateWebhookMethod · 0.92
RemoveWebhookMethod · 0.92

Calls 1

GetNameParentTokensFunction · 0.70

Tested by

no test coverage detected