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

Method FindByIDInOrg

app/controlplane/pkg/biz/apitoken.go:87–87  ·  view source on GitHub ↗
(ctx context.Context, orgID uuid.UUID, id uuid.UUID)

Source from the content-addressed store, hash-verified

85 UpdateLastUsedAt(ctx context.Context, ID uuid.UUID, lastUsedAt time.Time) error
86 FindByID(ctx context.Context, ID uuid.UUID) (*APIToken, error)
87 FindByIDInOrg(ctx context.Context, orgID uuid.UUID, id uuid.UUID) (*APIToken, error)
88 FindByNameInOrg(ctx context.Context, orgID uuid.UUID, name string) (*APIToken, error)
89}
90

Callers 14

UpdateMethod · 0.65
TestCreateOverrideMethod · 0.65
TestUpdateMethod · 0.65
TestSoftDeleteMethod · 0.65
TestViewMethod · 0.65
FindByIDInOrgMethod · 0.65
initDispatchQueueMethod · 0.65
RevokeMethod · 0.65
DetachMethod · 0.65

Implementers 3

APITokenRepoapp/controlplane/pkg/biz/mocks/APIToke
APITokenRepo_Expecterapp/controlplane/pkg/biz/mocks/APIToke
APITokenRepoapp/controlplane/pkg/data/apitoken.go

Calls

no outgoing calls

Tested by 6

TestCreateOverrideMethod · 0.52
TestUpdateMethod · 0.52
TestSoftDeleteMethod · 0.52
TestViewMethod · 0.52