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

Method Client

app/controlplane/pkg/data/ent/mutation.go:153–157  ·  view source on GitHub ↗

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

()

Source from the content-addressed store, hash-verified

151// Client returns a new `ent.Client` from the mutation. If the mutation was
152// executed in a transaction (ent.Tx), a transactional client is returned.
153func (m APITokenMutation) Client() *Client {
154 client := &Client{config: m.config}
155 client.init()
156 return client
157}
158
159// Tx returns an `ent.Tx` for mutations that were executed in transactions;
160// it returns an error otherwise.

Callers 1

IDsMethod · 0.95

Calls 1

initMethod · 0.95

Tested by

no test coverage detected