diff options
Diffstat (limited to 'internal/db/instance.go')
-rw-r--r-- | internal/db/instance.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/instance.go b/internal/db/instance.go index 408522b65..3b9588fef 100644 --- a/internal/db/instance.go +++ b/internal/db/instance.go @@ -40,6 +40,9 @@ type Instance interface { // GetInstanceByID returns the instance entry corresponding to the given id, if it exists. GetInstanceByID(ctx context.Context, id string) (*gtsmodel.Instance, error) + // PopulateInstance populates the struct pointers on the given instance. + PopulateInstance(ctx context.Context, instance *gtsmodel.Instance) error + // PutInstance inserts the given instance into the database. PutInstance(ctx context.Context, instance *gtsmodel.Instance) error |