Documentation
¶
Index ¶
- func FromSubject(s subject.Subject) api.Subject
- type DeleteSubjectHandler
- type DeleteSubjectParams
- type DeleteSubjectRequest
- type DeleteSubjectResponse
- type GetSubjectHandler
- type GetSubjectParams
- type GetSubjectRequest
- type GetSubjectResponse
- type Handler
- type ListSubjectsHandler
- type ListSubjectsRequest
- type ListSubjectsResponse
- type SubjectHandler
- type UpsertSubjectHandler
- type UpsertSubjectRequest
- type UpsertSubjectResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeleteSubjectHandler ¶
type DeleteSubjectHandler httptransport.HandlerWithArgs[DeleteSubjectRequest, DeleteSubjectResponse, DeleteSubjectParams]
type DeleteSubjectParams ¶
type DeleteSubjectParams = string
type DeleteSubjectRequest ¶
type DeleteSubjectRequest struct {
SubjectIdOrKey string
// contains filtered or unexported fields
}
type DeleteSubjectResponse ¶
type DeleteSubjectResponse = interface{}
type GetSubjectHandler ¶
type GetSubjectHandler httptransport.HandlerWithArgs[GetSubjectRequest, GetSubjectResponse, GetSubjectParams]
type GetSubjectParams ¶
type GetSubjectParams = string
type GetSubjectRequest ¶
type GetSubjectRequest struct {
// contains filtered or unexported fields
}
type GetSubjectResponse ¶
type Handler ¶
type Handler interface {
SubjectHandler
}
func New ¶
func New( namespaceDecoder namespacedriver.NamespaceDecoder, logger *slog.Logger, subjectService subject.Service, entitlementConnector entitlement.Service, options ...httptransport.HandlerOption, ) Handler
type ListSubjectsHandler ¶
type ListSubjectsHandler httptransport.Handler[ListSubjectsRequest, ListSubjectsResponse]
type ListSubjectsRequest ¶
type ListSubjectsRequest struct {
// contains filtered or unexported fields
}
type ListSubjectsResponse ¶
type SubjectHandler ¶
type SubjectHandler interface {
GetSubject() GetSubjectHandler
ListSubjects() ListSubjectsHandler
UpsertSubject() UpsertSubjectHandler
DeleteSubject() DeleteSubjectHandler
}
type UpsertSubjectHandler ¶
type UpsertSubjectHandler httptransport.Handler[UpsertSubjectRequest, UpsertSubjectResponse]
Upserts a subject (creates or updates). If the subject doesn't exist, it will be created. If the subject exists, it will be partially updated with the provided fields.
type UpsertSubjectRequest ¶
type UpsertSubjectRequest struct {
// contains filtered or unexported fields
}
type UpsertSubjectResponse ¶
Upserts a subject (creates or updates). If the subject doesn't exist, it will be created. If the subject exists, it will be partially updated with the provided fields.
Click to show internal directories.
Click to hide internal directories.