MCPcopy Index your code
hub / github.com/coder/coder / deleteQ

Function deleteQ

coderd/database/dbauthz/dbauthz.go:950–963  ·  view source on GitHub ↗
(
	logger slog.Logger,
	authorizer rbac.Authorizer,
	fetchFunc Fetch,
	deleteFunc Delete,
)

Source from the content-addressed store, hash-verified

948}
949
950func deleteQ[
951 ObjectType rbac.Objecter,
952 ArgumentType any,
953 Fetch func(ctx context.Context, arg ArgumentType) (ObjectType, error),
954 Delete func(ctx context.Context, arg ArgumentType) error,
955](
956 logger slog.Logger,
957 authorizer rbac.Authorizer,
958 fetchFunc Fetch,
959 deleteFunc Delete,
960) Delete {
961 return fetchAndExec(logger, authorizer,
962 policy.ActionDelete, fetchFunc, deleteFunc)
963}
964
965func updateWithReturn[
966 ObjectType rbac.Objecter,

Callers 11

DeleteAPIKeyByIDMethod · 0.85
DeleteGroupByIDMethod · 0.85
DeleteLicenseMethod · 0.85
DeleteProvisionerKeyMethod · 0.85
UpdateUserDeletedByIDMethod · 0.85

Calls 1

fetchAndExecFunction · 0.85

Tested by

no test coverage detected