mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-11 02:53:39 +00:00
32 lines
1.1 KiB
Go
32 lines
1.1 KiB
Go
package port
|
|
|
|
// type InstanceRepository interface {
|
|
// // CreateInstance creates a new instance
|
|
// CreateInstance(instance *domain.Instance) error
|
|
// // GetInstance returns the instance with the given id
|
|
// GetInstance(id string) (*domain.Instance, error)
|
|
// // UpdateInstance updates the instance with the given id
|
|
// UpdateInstance(instance *domain.Instance) error
|
|
// // DeleteInstance deletes the instance with the given id
|
|
// DeleteInstance(id string) error
|
|
// }
|
|
|
|
// type InstanceDomainRepository interface {
|
|
// // CreateDomain creates a new domain for the instance
|
|
// CreateDomain(instanceID string, domain *domain.Domain) error
|
|
// // GetDomains returns the domains of an instance
|
|
// GetDomains(instanceID string) ([]*domain.Domain, error)
|
|
// // UpdateDomain updates the domain of an instance
|
|
// UpdateDomain(instanceID string, domain *domain.Domain) error
|
|
// // DeleteDomain deletes the domain of an instance
|
|
// DeleteDomain(instanceID, domain string) error
|
|
// }
|
|
|
|
// type DomainGenerator interface {
|
|
// GenerateDomain() (string, error)
|
|
// }
|
|
|
|
// type IDGenerator interface {
|
|
// GenerateID() (string, error)
|
|
// }
|