2022-08-28 11:51:58 -06:00
|
|
|
package base
|
|
|
|
|
2022-09-15 23:26:37 -06:00
|
|
|
import (
|
|
|
|
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/database"
|
|
|
|
"os"
|
|
|
|
)
|
2022-08-30 20:03:24 -06:00
|
|
|
|
2022-08-31 20:06:12 -06:00
|
|
|
//go:generate mockgen -source=interface.go -destination=mock/mock_client.go
|
2022-08-28 11:51:58 -06:00
|
|
|
type Client interface {
|
2022-08-30 20:03:24 -06:00
|
|
|
GetRequest(resourceSubpath string, decodeModelPtr interface{}) error
|
|
|
|
SyncAll(db database.DatabaseRepository) error
|
2022-08-28 11:51:58 -06:00
|
|
|
|
2022-09-15 23:26:37 -06:00
|
|
|
//Manual client ONLY functions
|
|
|
|
SyncAllBundle(db database.DatabaseRepository, bundleFile *os.File) error
|
2022-08-28 11:51:58 -06:00
|
|
|
}
|
2022-09-01 19:54:01 -06:00
|
|
|
|
|
|
|
type ResourceInterface interface {
|
|
|
|
ResourceRef() (string, *string)
|
|
|
|
}
|