httpdriver

package
v1.0.0-beta.231 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromSubject

func FromSubject(s subject.Subject) api.Subject

Types

type DeleteSubjectParams

type DeleteSubjectParams = string

type DeleteSubjectRequest

type DeleteSubjectRequest struct {
	SubjectIdOrKey string
	// contains filtered or unexported fields
}

type DeleteSubjectResponse

type DeleteSubjectResponse = interface{}

type GetSubjectParams

type GetSubjectParams = string

type GetSubjectRequest

type GetSubjectRequest struct {
	// contains filtered or unexported fields
}

type GetSubjectResponse

type GetSubjectResponse = api.Subject

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 ListSubjectsRequest

type ListSubjectsRequest struct {
	// contains filtered or unexported fields
}

type ListSubjectsResponse

type ListSubjectsResponse = []api.Subject

type SubjectHandler

type SubjectHandler interface {
	GetSubject() GetSubjectHandler
	ListSubjects() ListSubjectsHandler
	UpsertSubject() UpsertSubjectHandler
	DeleteSubject() DeleteSubjectHandler
}

type UpsertSubjectHandler

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

type UpsertSubjectResponse = []api.Subject

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL