MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / entOrgToBizOrg

Function entOrgToBizOrg

app/controlplane/pkg/data/organization.go:176–191  ·  view source on GitHub ↗
(eu *ent.Organization)

Source from the content-addressed store, hash-verified

174}
175
176func entOrgToBizOrg(eu *ent.Organization) *biz.Organization {
177 return &biz.Organization{
178 Name: eu.Name, ID: eu.ID.String(),
179 CreatedAt: toTimePtr(eu.CreatedAt),
180 UpdatedAt: toTimePtr(eu.UpdatedAt),
181 BlockOnPolicyViolation: eu.BlockOnPolicyViolation,
182 PoliciesAllowedHostnames: eu.PoliciesAllowedHostnames,
183 PreventImplicitWorkflowCreation: eu.PreventImplicitWorkflowCreation,
184 RestrictContractCreationToOrgAdmins: eu.RestrictContractCreationToOrgAdmins,
185 APITokenInactivityThresholdDays: eu.APITokenInactivityThresholdDays,
186 EnableAIAgentCollector: eu.EnableAiAgentCollector,
187 BlockAttestationsOnReleasedVersions: eu.BlockAttestationsOnReleasedVersions,
188 SkipRunnerEnvVars: eu.SkipRunnerEnvVars,
189 Suspended: eu.Suspended,
190 }
191}

Callers 6

entInviteToBizFunction · 0.85
entGroupToBizFunction · 0.85
FindByIDMethod · 0.85
FindByNameMethod · 0.85
entMembershipToBizFunction · 0.85

Calls 2

toTimePtrFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected