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

Function NewAPITokenRepo

app/controlplane/pkg/data/apitoken.go:40–45  ·  view source on GitHub ↗
(data *Data, logger log.Logger)

Source from the content-addressed store, hash-verified

38}
39
40func NewAPITokenRepo(data *Data, logger log.Logger) biz.APITokenRepo {
41 return &APITokenRepo{
42 data: data,
43 log: log.NewHelper(logger),
44 }
45}
46
47// Persist the APIToken to the database.
48func (r *APITokenRepo) Create(ctx context.Context, name string, description *string, expiresAt *time.Time, organizationID *uuid.UUID, projectID *uuid.UUID, workflowID *uuid.UUID, policies []*authz.Policy, isSystem bool) (*biz.APIToken, error) {

Callers 2

WireTestDataFunction · 0.92
wireAppFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected