2022-10-06 20:13:30 +05:30
|
|
|
package dao
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2022-12-06 22:32:59 +05:30
|
|
|
"net/url"
|
2023-02-15 01:34:22 +05:30
|
|
|
|
2025-03-20 21:01:41 +05:30
|
|
|
basemodel "github.com/SigNoz/signoz/pkg/query-service/model"
|
2025-05-14 23:12:55 +05:30
|
|
|
"github.com/SigNoz/signoz/pkg/types"
|
2022-10-06 20:13:30 +05:30
|
|
|
"github.com/google/uuid"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ModelDao interface {
|
|
|
|
|
// auth methods
|
2025-03-20 13:59:52 +05:30
|
|
|
GetDomainFromSsoResponse(ctx context.Context, relayState *url.URL) (*types.GettableOrgDomain, error)
|
2023-02-15 01:34:22 +05:30
|
|
|
|
2022-10-06 20:13:30 +05:30
|
|
|
// org domain (auth domains) CRUD ops
|
2025-03-20 13:59:52 +05:30
|
|
|
ListDomains(ctx context.Context, orgId string) ([]types.GettableOrgDomain, basemodel.BaseApiError)
|
|
|
|
|
GetDomain(ctx context.Context, id uuid.UUID) (*types.GettableOrgDomain, basemodel.BaseApiError)
|
|
|
|
|
CreateDomain(ctx context.Context, d *types.GettableOrgDomain) basemodel.BaseApiError
|
|
|
|
|
UpdateDomain(ctx context.Context, domain *types.GettableOrgDomain) basemodel.BaseApiError
|
2022-10-06 20:13:30 +05:30
|
|
|
DeleteDomain(ctx context.Context, id uuid.UUID) basemodel.BaseApiError
|
2025-03-20 13:59:52 +05:30
|
|
|
GetDomainByEmail(ctx context.Context, email string) (*types.GettableOrgDomain, basemodel.BaseApiError)
|
2022-10-06 20:13:30 +05:30
|
|
|
}
|