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

Method Update

app/controlplane/pkg/data/ent/apitoken.go:235–237  ·  view source on GitHub ↗

Update returns a builder for updating this APIToken. Note that you need to call APIToken.Unwrap() before calling this method if this APIToken was returned from a transaction, and the transaction was committed or rolled back.

()

Source from the content-addressed store, hash-verified

233// Note that you need to call APIToken.Unwrap() before calling this method if this APIToken
234// was returned from a transaction, and the transaction was committed or rolled back.
235func (_m *APIToken) Update() *APITokenUpdateOne {
236 return NewAPITokenClient(_m.config).UpdateOne(_m)
237}
238
239// Unwrap unwraps the APIToken entity that was returned from a transaction after it was closed,
240// so that all future queries will be executed through the driver which created the transaction.

Callers

nothing calls this directly

Calls 2

NewAPITokenClientFunction · 0.85
UpdateOneMethod · 0.45

Tested by

no test coverage detected