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

Method init

app/controlplane/pkg/data/ent/tx.go:185–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183}
184
185func (tx *Tx) init() {
186 tx.APIToken = NewAPITokenClient(tx.config)
187 tx.Attestation = NewAttestationClient(tx.config)
188 tx.CASBackend = NewCASBackendClient(tx.config)
189 tx.CASMapping = NewCASMappingClient(tx.config)
190 tx.Group = NewGroupClient(tx.config)
191 tx.GroupMembership = NewGroupMembershipClient(tx.config)
192 tx.Integration = NewIntegrationClient(tx.config)
193 tx.IntegrationAttachment = NewIntegrationAttachmentClient(tx.config)
194 tx.Membership = NewMembershipClient(tx.config)
195 tx.OrgInvitation = NewOrgInvitationClient(tx.config)
196 tx.Organization = NewOrganizationClient(tx.config)
197 tx.Project = NewProjectClient(tx.config)
198 tx.ProjectVersion = NewProjectVersionClient(tx.config)
199 tx.Referrer = NewReferrerClient(tx.config)
200 tx.RobotAccount = NewRobotAccountClient(tx.config)
201 tx.User = NewUserClient(tx.config)
202 tx.Workflow = NewWorkflowClient(tx.config)
203 tx.WorkflowContract = NewWorkflowContractClient(tx.config)
204 tx.WorkflowContractVersion = NewWorkflowContractVersionClient(tx.config)
205 tx.WorkflowRun = NewWorkflowRunClient(tx.config)
206}
207
208// txDriver wraps the given dialect.Tx with a nop dialect.Driver implementation.
209// The idea is to support transactions without adding any extra code to the builders.

Callers 15

TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95

Calls 15

NewAPITokenClientFunction · 0.85
NewAttestationClientFunction · 0.85
NewCASBackendClientFunction · 0.85
NewCASMappingClientFunction · 0.85
NewGroupClientFunction · 0.85
NewGroupMembershipClientFunction · 0.85
NewIntegrationClientFunction · 0.85
NewMembershipClientFunction · 0.85
NewOrgInvitationClientFunction · 0.85
NewOrganizationClientFunction · 0.85
NewProjectClientFunction · 0.85

Tested by

no test coverage detected