This value was present in the control.Options in the struct and passed as a parameter. This PR removes the parameter so it's clear the control.Options one is used --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [x] 🧹 Tech Debt/Cleanup #### Issue(s) * #5012 #### Test Plan - [ ] 💪 Manual - [x] ⚡ Unit test - [x] 💚 E2E
31 lines
530 B
Go
31 lines
530 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/microsoft/kiota-abstractions-go/serialization"
|
|
|
|
"github.com/alcionai/corso/src/pkg/fault"
|
|
)
|
|
|
|
type GetAndSerializeItemer[INFO any] interface {
|
|
GetItemer[INFO]
|
|
Serializer
|
|
}
|
|
|
|
type GetItemer[INFO any] interface {
|
|
GetItem(
|
|
ctx context.Context,
|
|
user, itemID string,
|
|
errs *fault.Bus,
|
|
) (serialization.Parsable, *INFO, error)
|
|
}
|
|
|
|
type Serializer interface {
|
|
Serialize(
|
|
ctx context.Context,
|
|
item serialization.Parsable,
|
|
protectedResource, itemID string,
|
|
) ([]byte, error)
|
|
}
|