-
Sub-task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
-
Rox Sprint 4.8G - Global
In Stores we have following methods
Upsert(ctx context.Context, obj *storeType) error UpsertMany(ctx context.Context, objs []*storeType) error Delete(ctx context.Context, id string) error DeleteMany(ctx context.Context, identifiers []string) error Get(ctx context.Context, id string) (*storeType, bool, error) GetByIDs(ctx context.Context, identifiers []string) ([]*storeType, error)
it's possible to have a smaller interface by using variadic args
Upsert(ctx context.Context, objs... *storeType) error Delete(ctx context.Context, identifiers... string) error Get(ctx context.Context, identifiers... string) ([]*storeType, error)
https://github.com/stackrox/stackrox/pull/14974#discussion_r2044411911