Documentation
¶
Index ¶
- type AnyVirtualServerExists
- type AnyVirtualServerExistsResult
- type GetApplication
- type GetApplicationResult
- type GetProject
- type GetProjectResponse
- type GetResourceServer
- type GetResourceServerResponse
- type GetResourceServerScope
- type GetResourceServerScopeResponse
- type GetRoleQuery
- type GetRoleQueryResult
- type GetTemplate
- type GetTemplateResult
- type GetUserMetadata
- type GetUserMetadataResult
- type GetUserQuery
- type GetUserQueryResult
- type GetVirtualServerPublicInfo
- type GetVirtualServerPublicInfoResponse
- type GetVirtualServerQuery
- type GetVirtualServerResponse
- type ListApplications
- type ListApplicationsResponse
- type ListApplicationsResponseItem
- type ListAuditEntries
- type ListAuditEntriesResponse
- type ListAuditEntriesResponseItem
- type ListGroups
- type ListGroupsResponse
- type ListGroupsResponseItem
- type ListPasskeys
- type ListPasskeysResponse
- type ListPasskeysResponseItem
- type ListPasswordRules
- type ListPasswordRulesResponse
- type ListPasswordRulesResponseItem
- type ListProjects
- type ListProjectsResponse
- type ListProjectsResponseItem
- type ListResourceServerScopesResponse
- type ListResourceServerScopesResponseItem
- type ListResourceServers
- type ListResourceServersResponse
- type ListResourceServersResponseItem
- type ListRessouceServerScopes
- type ListRoles
- type ListRolesResponse
- type ListRolesResponseItem
- type ListTemplates
- type ListTemplatesResponse
- type ListTemplatesResponseItem
- type ListUsers
- type ListUsersInRole
- type ListUsersInRoleResponse
- type ListUsersInRoleResponseItem
- type ListUsersResponse
- type ListUsersResponseItem
- type OrderedQuery
- type PagedQuery
- type PagedResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyVirtualServerExists ¶
type AnyVirtualServerExists struct{}
type AnyVirtualServerExistsResult ¶
type AnyVirtualServerExistsResult struct {
Found bool
}
func HandleAnyVirtualServerExists ¶
func HandleAnyVirtualServerExists(ctx context.Context, _ AnyVirtualServerExists) (*AnyVirtualServerExistsResult, error)
type GetApplication ¶
func (GetApplication) GetRequestName ¶
func (a GetApplication) GetRequestName() string
func (GetApplication) IsAllowed ¶
func (a GetApplication) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetApplication) LogRequest ¶
func (a GetApplication) LogRequest() bool
func (GetApplication) LogResponse ¶
func (a GetApplication) LogResponse() bool
type GetApplicationResult ¶
type GetApplicationResult struct {
Id uuid.UUID
Name string
DisplayName string
Type repositories.ApplicationType
RedirectUris []string
PostLogoutUris []string
SystemApplication bool
ClaimsMappingScript *string
DeviceFlowEnabled bool
CreatedAt time.Time
UpdatedAt time.Time
}
func HandleGetApplication ¶
func HandleGetApplication(ctx context.Context, query GetApplication) (*GetApplicationResult, error)
type GetProject ¶
func (GetProject) GetRequestName ¶
func (a GetProject) GetRequestName() string
func (GetProject) IsAllowed ¶
func (a GetProject) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetProject) LogRequest ¶
func (a GetProject) LogRequest() bool
func (GetProject) LogResponse ¶
func (a GetProject) LogResponse() bool
type GetProjectResponse ¶
type GetProjectResponse struct {
Id uuid.UUID
Slug string
Name string
Description string
SystemProject bool
CreatedAt time.Time
UpdatedAt time.Time
}
func HandleGetProject ¶
func HandleGetProject(ctx context.Context, query GetProject) (*GetProjectResponse, error)
type GetResourceServer ¶
type GetResourceServer struct {
VirtualServerName string
ProjectSlug string
ResourceServerId uuid.UUID
}
func (GetResourceServer) GetRequestName ¶
func (a GetResourceServer) GetRequestName() string
func (GetResourceServer) IsAllowed ¶
func (a GetResourceServer) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetResourceServer) LogRequest ¶
func (a GetResourceServer) LogRequest() bool
func (GetResourceServer) LogResponse ¶
func (a GetResourceServer) LogResponse() bool
type GetResourceServerResponse ¶
type GetResourceServerResponse struct {
Id uuid.UUID
Slug string
Name string
Description string
CreatedAt time.Time
UpdatedAt time.Time
}
func HandleGetResourceServer ¶
func HandleGetResourceServer(ctx context.Context, query GetResourceServer) (*GetResourceServerResponse, error)
type GetResourceServerScope ¶
type GetResourceServerScope struct {
VirtualServerName string
ProjectSlug string
ResourceServerId uuid.UUID
ScopeId uuid.UUID
}
func (GetResourceServerScope) GetRequestName ¶
func (a GetResourceServerScope) GetRequestName() string
func (GetResourceServerScope) IsAllowed ¶
func (a GetResourceServerScope) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetResourceServerScope) LogRequest ¶
func (a GetResourceServerScope) LogRequest() bool
func (GetResourceServerScope) LogResponse ¶
func (a GetResourceServerScope) LogResponse() bool
type GetResourceServerScopeResponse ¶
type GetResourceServerScopeResponse struct {
Id uuid.UUID
Scope string
Name string
Description string
CreatedAt time.Time
UpdatedAt time.Time
}
func HandleGetResourceServerScope ¶
func HandleGetResourceServerScope(ctx context.Context, query GetResourceServerScope) (*GetResourceServerScopeResponse, error)
type GetRoleQuery ¶
func (GetRoleQuery) GetRequestName ¶
func (a GetRoleQuery) GetRequestName() string
func (GetRoleQuery) IsAllowed ¶
func (a GetRoleQuery) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetRoleQuery) LogRequest ¶
func (a GetRoleQuery) LogRequest() bool
func (GetRoleQuery) LogResponse ¶
func (a GetRoleQuery) LogResponse() bool
type GetRoleQueryResult ¶
type GetRoleQueryResult struct {
Id uuid.UUID
Name string
Description string
CreatedAt time.Time
UpdatedAt time.Time
}
func HandleGetRole ¶
func HandleGetRole(ctx context.Context, query GetRoleQuery) (*GetRoleQueryResult, error)
type GetTemplate ¶
type GetTemplate struct {
VirtualServerName string
Type repositories.TemplateType
}
func (GetTemplate) GetRequestName ¶
func (a GetTemplate) GetRequestName() string
func (GetTemplate) IsAllowed ¶
func (a GetTemplate) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetTemplate) LogRequest ¶
func (a GetTemplate) LogRequest() bool
func (GetTemplate) LogResponse ¶
func (a GetTemplate) LogResponse() bool
type GetTemplateResult ¶
func HandleGetTemplate ¶
func HandleGetTemplate(ctx context.Context, query GetTemplate) (*GetTemplateResult, error)
type GetUserMetadata ¶
type GetUserMetadata struct {
VirtualServerName string
UserId uuid.UUID
IncludeGlobalMetadata bool
IncludeAllApplicationMetadata bool
ApplicationIds *[]uuid.UUID
}
func (GetUserMetadata) GetRequestName ¶
func (a GetUserMetadata) GetRequestName() string
func (GetUserMetadata) IsAllowed ¶
func (a GetUserMetadata) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetUserMetadata) LogRequest ¶
func (a GetUserMetadata) LogRequest() bool
func (GetUserMetadata) LogResponse ¶
func (a GetUserMetadata) LogResponse() bool
type GetUserMetadataResult ¶
func HandleGetUserMetadata ¶
func HandleGetUserMetadata(ctx context.Context, query GetUserMetadata) (*GetUserMetadataResult, error)
type GetUserQuery ¶
func (GetUserQuery) GetRequestName ¶
func (a GetUserQuery) GetRequestName() string
func (GetUserQuery) IsAllowed ¶
func (a GetUserQuery) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetUserQuery) LogRequest ¶
func (a GetUserQuery) LogRequest() bool
func (GetUserQuery) LogResponse ¶
func (a GetUserQuery) LogResponse() bool
type GetUserQueryResult ¶
type GetUserQueryResult struct {
Id uuid.UUID
Username string
DisplayName string
PrimaryEmail string
EmailVerified bool
IsServiceUser bool
CreatedAt time.Time
UpdatedAt time.Time
}
func HandleGetUserQuery ¶
func HandleGetUserQuery(ctx context.Context, query GetUserQuery) (*GetUserQueryResult, error)
type GetVirtualServerPublicInfo ¶
type GetVirtualServerPublicInfo struct {
VirtualServerName string
}
type GetVirtualServerPublicInfoResponse ¶
type GetVirtualServerPublicInfoResponse struct {
Name string
DisplayName string
RegistrationEnabled bool
}
func HandleGetVirtualServerPublicInfo ¶
func HandleGetVirtualServerPublicInfo(ctx context.Context, query GetVirtualServerPublicInfo) (*GetVirtualServerPublicInfoResponse, error)
type GetVirtualServerQuery ¶
type GetVirtualServerQuery struct {
VirtualServerName string
}
func (GetVirtualServerQuery) GetRequestName ¶
func (a GetVirtualServerQuery) GetRequestName() string
func (GetVirtualServerQuery) IsAllowed ¶
func (a GetVirtualServerQuery) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (GetVirtualServerQuery) LogRequest ¶
func (a GetVirtualServerQuery) LogRequest() bool
func (GetVirtualServerQuery) LogResponse ¶
func (a GetVirtualServerQuery) LogResponse() bool
type GetVirtualServerResponse ¶
type GetVirtualServerResponse struct {
Id uuid.UUID
Name string
DisplayName string
RegistrationEnabled bool
Require2fa bool
RequireEmailVerification bool
SigningAlgorithm config.SigningAlgorithm
CreatedAt time.Time
UpdatedAt time.Time
}
func HandleGetVirtualServerQuery ¶
func HandleGetVirtualServerQuery(ctx context.Context, command GetVirtualServerQuery) (*GetVirtualServerResponse, error)
type ListApplications ¶
type ListApplications struct {
PagedQuery
OrderedQuery
VirtualServerName string
ProjectSlug string
SearchText string
}
func (ListApplications) GetRequestName ¶
func (a ListApplications) GetRequestName() string
func (ListApplications) IsAllowed ¶
func (a ListApplications) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListApplications) LogRequest ¶
func (a ListApplications) LogRequest() bool
func (ListApplications) LogResponse ¶
func (a ListApplications) LogResponse() bool
type ListApplicationsResponse ¶
type ListApplicationsResponse struct {
PagedResponse[ListApplicationsResponseItem]
}
func HandleListApplications ¶
func HandleListApplications(ctx context.Context, query ListApplications) (*ListApplicationsResponse, error)
type ListApplicationsResponseItem ¶
type ListApplicationsResponseItem struct {
Id uuid.UUID
Name string
DisplayName string
Type repositories.ApplicationType
SystemApplication bool
}
type ListAuditEntries ¶
type ListAuditEntries struct {
PagedQuery
OrderedQuery
VirtualServerName string
}
func (ListAuditEntries) GetRequestName ¶
func (a ListAuditEntries) GetRequestName() string
func (ListAuditEntries) IsAllowed ¶
func (a ListAuditEntries) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListAuditEntries) LogRequest ¶
func (a ListAuditEntries) LogRequest() bool
func (ListAuditEntries) LogResponse ¶
func (a ListAuditEntries) LogResponse() bool
type ListAuditEntriesResponse ¶
type ListAuditEntriesResponse struct {
PagedResponse[ListAuditEntriesResponseItem]
}
func HandleListAuditEntries ¶
func HandleListAuditEntries(ctx context.Context, query ListAuditEntries) (*ListAuditEntriesResponse, error)
type ListGroups ¶
type ListGroups struct {
PagedQuery
OrderedQuery
VirtualServerName string
SearchText string
}
func (ListGroups) GetRequestName ¶
func (a ListGroups) GetRequestName() string
func (ListGroups) IsAllowed ¶
func (a ListGroups) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListGroups) LogRequest ¶
func (a ListGroups) LogRequest() bool
func (ListGroups) LogResponse ¶
func (a ListGroups) LogResponse() bool
type ListGroupsResponse ¶
type ListGroupsResponse struct {
PagedResponse[ListGroupsResponseItem]
}
func HandleListGroups ¶
func HandleListGroups(ctx context.Context, query ListGroups) (*ListGroupsResponse, error)
type ListGroupsResponseItem ¶
type ListPasskeys ¶
func (ListPasskeys) GetRequestName ¶
func (a ListPasskeys) GetRequestName() string
func (ListPasskeys) IsAllowed ¶
func (a ListPasskeys) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListPasskeys) LogRequest ¶
func (a ListPasskeys) LogRequest() bool
func (ListPasskeys) LogResponse ¶
func (a ListPasskeys) LogResponse() bool
type ListPasskeysResponse ¶
type ListPasskeysResponse struct {
PagedResponse[ListPasskeysResponseItem]
}
func HandleListPasskeys ¶
func HandleListPasskeys(ctx context.Context, query ListPasskeys) (*ListPasskeysResponse, error)
type ListPasswordRules ¶
type ListPasswordRules struct {
VirtualServerName string
}
func (ListPasswordRules) GetRequestName ¶
func (a ListPasswordRules) GetRequestName() string
func (ListPasswordRules) IsAllowed ¶
func (a ListPasswordRules) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListPasswordRules) LogRequest ¶
func (a ListPasswordRules) LogRequest() bool
func (ListPasswordRules) LogResponse ¶
func (a ListPasswordRules) LogResponse() bool
type ListPasswordRulesResponse ¶
type ListPasswordRulesResponse struct {
Items []ListPasswordRulesResponseItem
}
func HandleListPasswordRules ¶
func HandleListPasswordRules(ctx context.Context, query ListPasswordRules) (*ListPasswordRulesResponse, error)
type ListPasswordRulesResponseItem ¶
type ListPasswordRulesResponseItem struct {
Id uuid.UUID
Type repositories.PasswordRuleType
Details []byte
}
type ListProjects ¶
type ListProjects struct {
PagedQuery
OrderedQuery
VirtualServerName string
SearchText string
}
func (ListProjects) GetRequestName ¶
func (a ListProjects) GetRequestName() string
func (ListProjects) IsAllowed ¶
func (a ListProjects) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListProjects) LogRequest ¶
func (a ListProjects) LogRequest() bool
func (ListProjects) LogResponse ¶
func (a ListProjects) LogResponse() bool
type ListProjectsResponse ¶
type ListProjectsResponse struct {
PagedResponse[ListProjectsResponseItem]
}
func HandleListProjects ¶
func HandleListProjects(ctx context.Context, query ListProjects) (*ListProjectsResponse, error)
type ListResourceServerScopesResponse ¶
type ListResourceServerScopesResponse struct {
PagedResponse[ListResourceServerScopesResponseItem]
}
func HandleListResourceServerScopes ¶
func HandleListResourceServerScopes(ctx context.Context, query ListRessouceServerScopes) (*ListResourceServerScopesResponse, error)
type ListResourceServers ¶
type ListResourceServers struct {
PagedQuery
VirtualServerName string
ProjectSlug string
SearchText string
}
func (ListResourceServers) GetRequestName ¶
func (a ListResourceServers) GetRequestName() string
func (ListResourceServers) IsAllowed ¶
func (a ListResourceServers) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListResourceServers) LogRequest ¶
func (a ListResourceServers) LogRequest() bool
func (ListResourceServers) LogResponse ¶
func (a ListResourceServers) LogResponse() bool
type ListResourceServersResponse ¶
type ListResourceServersResponse struct {
PagedResponse[ListResourceServersResponseItem]
}
func HandleListResourceServers ¶
func HandleListResourceServers(ctx context.Context, query ListResourceServers) (*ListResourceServersResponse, error)
type ListRessouceServerScopes ¶
type ListRessouceServerScopes struct {
PagedQuery
OrderedQuery
VirtualServerName string
ProjectSlug string
ResourceServerId uuid.UUID
SearchText string
}
func (ListRessouceServerScopes) GetRequestName ¶
func (a ListRessouceServerScopes) GetRequestName() string
func (ListRessouceServerScopes) IsAllowed ¶
func (a ListRessouceServerScopes) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListRessouceServerScopes) LogRequest ¶
func (a ListRessouceServerScopes) LogRequest() bool
func (ListRessouceServerScopes) LogResponse ¶
func (a ListRessouceServerScopes) LogResponse() bool
type ListRoles ¶
type ListRoles struct {
PagedQuery
OrderedQuery
VirtualServerName string
ProjectSlug string
SearchText string
}
func (ListRoles) GetRequestName ¶
func (ListRoles) IsAllowed ¶
func (a ListRoles) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListRoles) LogRequest ¶
func (ListRoles) LogResponse ¶
type ListRolesResponse ¶
type ListRolesResponse struct {
PagedResponse[ListRolesResponseItem]
}
func HandleListRoles ¶
func HandleListRoles(ctx context.Context, query ListRoles) (*ListRolesResponse, error)
type ListRolesResponseItem ¶
type ListTemplates ¶
type ListTemplates struct {
PagedQuery
OrderedQuery
VirtualServerName string
SearchText string
}
func (ListTemplates) GetRequestName ¶
func (a ListTemplates) GetRequestName() string
func (ListTemplates) IsAllowed ¶
func (a ListTemplates) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListTemplates) LogRequest ¶
func (a ListTemplates) LogRequest() bool
func (ListTemplates) LogResponse ¶
func (a ListTemplates) LogResponse() bool
type ListTemplatesResponse ¶
type ListTemplatesResponse struct {
PagedResponse[ListTemplatesResponseItem]
}
func HandleListTemplates ¶
func HandleListTemplates(ctx context.Context, query ListTemplates) (*ListTemplatesResponse, error)
type ListTemplatesResponseItem ¶
type ListTemplatesResponseItem struct {
Id uuid.UUID
Type repositories.TemplateType
}
type ListUsers ¶
type ListUsers struct {
PagedQuery
OrderedQuery
VirtualServerName string
SearchText string
}
func (ListUsers) GetRequestName ¶
func (ListUsers) IsAllowed ¶
func (a ListUsers) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListUsers) LogRequest ¶
func (ListUsers) LogResponse ¶
type ListUsersInRole ¶
type ListUsersInRole struct {
PagedQuery
OrderedQuery
VirtualServerName string
ProjectSlug string
RoleId uuid.UUID
}
func (ListUsersInRole) GetRequestName ¶
func (a ListUsersInRole) GetRequestName() string
func (ListUsersInRole) IsAllowed ¶
func (a ListUsersInRole) IsAllowed(ctx context.Context) (behaviours.PolicyResult, error)
func (ListUsersInRole) LogRequest ¶
func (a ListUsersInRole) LogRequest() bool
func (ListUsersInRole) LogResponse ¶
func (a ListUsersInRole) LogResponse() bool
type ListUsersInRoleResponse ¶
type ListUsersInRoleResponse struct {
PagedResponse[ListUsersInRoleResponseItem]
}
func HandleListUsersInRole ¶
func HandleListUsersInRole(ctx context.Context, query ListUsersInRole) (*ListUsersInRoleResponse, error)
type ListUsersResponse ¶
type ListUsersResponse struct {
PagedResponse[ListUsersResponseItem]
}
func HandleListUsers ¶
func HandleListUsers(ctx context.Context, query ListUsers) (*ListUsersResponse, error)
type ListUsersResponseItem ¶
type OrderedQuery ¶
type PagedQuery ¶
type PagedResponse ¶
func NewPagedResponse ¶
func NewPagedResponse[T any](items []T, totalCount int) PagedResponse[T]
Source Files
¶
- AnyVirtualServerExistsQuery.go
- GetApplicationQuery.go
- GetProjectQuery.go
- GetResourceServerQuery.go
- GetResourceServerScopeQuery.go
- GetRoleQuery.go
- GetTemplateQuery.go
- GetUserMetadata.go
- GetUserQuery.go
- GetVirtualServerPublicInfoQuery.go
- GetVirtualServerQuery.go
- ListApplicationsQuery.go
- ListAuditEntries.go
- ListGroupsQuery.go
- ListPasskeysQuery.go
- ListPasswordRules.go
- ListProjectsQuery.go
- ListResourceServersQuery.go
- ListResrsouceServerScopesQuery.go
- ListRolesQuery.go
- ListTemplatesQuery.go
- ListUsersInRoleQuery.go
- ListUsersQuery.go
- OrderedQuery.go
- pagedquery.go
- pagedresponse.go
Click to show internal directories.
Click to hide internal directories.