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

Function entIntegrationToBiz

app/controlplane/pkg/data/integration.go:147–161  ·  view source on GitHub ↗
(i *ent.Integration)

Source from the content-addressed store, hash-verified

145}
146
147func entIntegrationToBiz(i *ent.Integration) *biz.Integration {
148 if i == nil {
149 return nil
150 }
151
152 return &biz.Integration{
153 ID: i.ID,
154 Name: i.Name,
155 Kind: i.Kind,
156 Description: i.Description,
157 CreatedAt: toTimePtr(i.CreatedAt),
158 SecretName: i.SecretName,
159 Config: i.Configuration,
160 }
161}

Callers 4

CreateMethod · 0.85
ListMethod · 0.85
FindByIDInOrgMethod · 0.85
FindByNameInOrgMethod · 0.85

Calls 1

toTimePtrFunction · 0.70

Tested by

no test coverage detected