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

Function GetSettingName

backend/common/resource_name.go:188–194  ·  view source on GitHub ↗

GetSettingName returns the setting name from a resource name.

(name string)

Source from the content-addressed store, hash-verified

186
187// GetSettingName returns the setting name from a resource name.
188func GetSettingName(name string) (string, error) {
189 token, err := GetNameParentTokens(name, SettingNamePrefix)
190 if err != nil {
191 return "", err
192 }
193 return token[0], nil
194}
195
196// GetIdentityProviderID returns the identity provider ID from a resource name.
197func GetIdentityProviderID(name string) (string, error) {

Callers 2

GetSettingMethod · 0.92
UpdateSettingMethod · 0.92

Calls 1

GetNameParentTokensFunction · 0.70

Tested by

no test coverage detected