MCPcopy Create free account
hub / github.com/bytebase/bytebase / extractWorkloadIdentityId

Function extractWorkloadIdentityId

frontend/src/store/modules/v1/common.ts:212–217  ·  view source on GitHub ↗
(identifier: string)

Source from the content-addressed store, hash-verified

210};
211
212export const extractWorkloadIdentityId = (identifier: string) => {
213 const matches = identifier.match(
214 /^(?:workloadIdentity:|workloadIdentities\/)(.+)$/
215 );
216 return matches?.[1] ?? identifier;
217};
218
219export const getIdentityProviderResourceId = (name: string): ResourceId => {
220 const tokens = getNameParentTokens(name, [idpNamePrefix]);

Callers 1

convertMemberToFullnameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected