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

Function NewAPITokenClient

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

NewAPITokenClient returns a client for the APIToken from the given config.

(c config)

Source from the content-addressed store, hash-verified

373
374// NewAPITokenClient returns a client for the APIToken from the given config.
375func NewAPITokenClient(c config) *APITokenClient {
376 return &APITokenClient{config: c}
377}
378
379// Use adds a list of mutation hooks to the hooks stack.
380// A call to `Use(f, g, h)` equals to `apitoken.Hooks(f(g(h())))`.

Callers 8

QueryOrganizationMethod · 0.85
QueryProjectMethod · 0.85
QueryWorkflowMethod · 0.85
UpdateMethod · 0.85
initMethod · 0.85
initMethod · 0.85
TxMethod · 0.85
BeginTxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected