diff --git a/backend/repository/instance.go b/backend/repository/instance.go index 5ba6e7d749..7403f769b1 100644 --- a/backend/repository/instance.go +++ b/backend/repository/instance.go @@ -13,18 +13,26 @@ type Instance struct { Name string } +type SetUpInstance func(ctx context.Context, instance *Instance) error + type InstanceSetuper interface { SetUp(ctx context.Context, instance *Instance) error } +type InstanceByID func(ctx context.Context, id string) (*Instance, error) + type instanceByIDQuerier interface { ByID(ctx context.Context, id string) (*Instance, error) } +type InstanceByDomain func(ctx context.Context, domain string) (*Instance, error) + type instanceByDomainQuerier interface { ByDomain(ctx context.Context, domain string) (*Instance, error) } +type ListInstances func(ctx context.Context) ([]*Instance, error) + type InstanceLister interface { List(ctx context.Context) ([]*Instance, error) }