models

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimRow added in v0.2.0

type ClaimRow struct {
	Name  string
	Value string
}

ClaimRow is a single displayable claim (name/value) for a user.

type ClientsModel

type ClientsModel struct {
}

type ErrorModel

type ErrorModel struct {
	Code    string
	Message string
}

type IndexModel

type IndexModel struct {
	Urls    []UrlInfo
	Clients []*configuration.ClientConfig
}

type SCIMModel added in v0.3.0

type SCIMModel struct {
	Configured      bool // an endpoint is set
	Endpoint        string
	TokenConfigured bool
	UserCount       int

	HasRun  bool
	RanAt   string
	Total   int
	Failed  int
	Results []SCIMResultRow
}

SCIMModel is the view model for the provisioning page.

func NewSCIMModel added in v0.3.0

func NewSCIMModel(cfg *configuration.SCIMConfig, tokenConfigured bool, userCount int, report *scim.Report) SCIMModel

NewSCIMModel builds the provisioning view model from the SCIM config and the last sync report (which may be nil when a sync has never run).

type SCIMResultRow added in v0.3.0

type SCIMResultRow struct {
	Subject  string
	UserName string
	Action   string // created | updated | failed
	Error    string
}

SCIMResultRow is a single displayable per-user provisioning outcome.

type UrlInfo

type UrlInfo struct {
	Description string
	Url         string
}

type UserLoginModel

type UserLoginModel struct {
	Error         string
	AuthRequestID string
	Users         []UserOption
}

type UserOption

type UserOption struct {
	ID          string
	DisplayName string
}

type UserView added in v0.2.0

type UserView struct {
	Subject      string
	LoginDisplay string
	Claims       []ClaimRow
}

UserView is a user prepared for display, with its claims flattened into an ordered list of name/value rows (including any custom claims).

type UsersModel

type UsersModel struct {
	Users []UserView
}

func NewUsersModel added in v0.2.0

func NewUsersModel(users []*configuration.User) UsersModel

NewUsersModel builds the users view model from the configured users, flattening each user's claims into ordered rows so they can be rendered without the UI needing to know about every individual claim field.

Jump to

Keyboard shortcuts

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