Files
signoz/pkg/modules/authdomain/authdomain.go
Karan Balani ea15ce4e04
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
feat: sso stats reporting (#10062)
2026-01-20 18:57:35 +00:00

46 lines
1.3 KiB
Go

package authdomain
import (
"context"
"net/http"
"github.com/SigNoz/signoz/pkg/statsreporter"
"github.com/SigNoz/signoz/pkg/types/authtypes"
"github.com/SigNoz/signoz/pkg/valuer"
)
type Module interface {
// List all auth domains for an organization.
ListByOrgID(context.Context, valuer.UUID) ([]*authtypes.AuthDomain, error)
// Get an auth domain by id.
Get(context.Context, valuer.UUID) (*authtypes.AuthDomain, error)
// Get an auth domain by orgID and id.
GetByOrgIDAndID(context.Context, valuer.UUID, valuer.UUID) (*authtypes.AuthDomain, error)
// Get an auth domain by name and orgID.
GetByNameAndOrgID(context.Context, string, valuer.UUID) (*authtypes.AuthDomain, error)
// Create a new auth domain for an organization.
Create(context.Context, *authtypes.AuthDomain) error
// Update an existing auth domain.
Update(context.Context, *authtypes.AuthDomain) error
// Delete an existing auth domain by id.
Delete(context.Context, valuer.UUID, valuer.UUID) error
// Get the IDP info of the domain provided.
GetAuthNProviderInfo(context.Context, *authtypes.AuthDomain) *authtypes.AuthNProviderInfo
statsreporter.StatsCollector
}
type Handler interface {
List(http.ResponseWriter, *http.Request)
Create(http.ResponseWriter, *http.Request)
Update(http.ResponseWriter, *http.Request)
Delete(http.ResponseWriter, *http.Request)
}