mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:17:35 +00:00
funcs
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user