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

Method UpdateOne

app/controlplane/pkg/data/ent/client.go:424–427  ·  view source on GitHub ↗

UpdateOne returns an update builder for the given entity.

(_m *APIToken)

Source from the content-addressed store, hash-verified

422
423// UpdateOne returns an update builder for the given entity.
424func (c *APITokenClient) UpdateOne(_m *APIToken) *APITokenUpdateOne {
425 mutation := newAPITokenMutation(c.config, OpUpdateOne, withAPIToken(_m))
426 return &APITokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation}
427}
428
429// UpdateOneID returns an update builder for the given id.
430func (c *APITokenClient) UpdateOneID(id uuid.UUID) *APITokenUpdateOne {

Callers

nothing calls this directly

Calls 3

HooksMethod · 0.95
newAPITokenMutationFunction · 0.85
withAPITokenFunction · 0.85

Tested by

no test coverage detected