ui

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Create(ctx context.Context, username string, opts ...user.NewUserOption) (*user.User, error)
	List(ctx context.Context) ([]*user.User, error)
	ListOrganizationUsers(ctx context.Context, organization organization.Name) ([]*user.User, error)
	ListTeamUsers(ctx context.Context, teamID resource.TfeID) ([]*user.User, error)
	GetUser(ctx context.Context, spec user.UserSpec) (*user.User, error)
	Delete(ctx context.Context, username user.Username) error
	AddTeamMembership(ctx context.Context, teamID resource.TfeID, usernames []user.Username) error
	RemoveTeamMembership(ctx context.Context, teamID resource.TfeID, usernames []user.Username) error

	CreateToken(ctx context.Context, opts user.CreateUserTokenOptions) (*user.UserToken, []byte, error)
	ListTokens(ctx context.Context) ([]*user.UserToken, error)
	DeleteToken(ctx context.Context, tokenID resource.TfeID) error
}

type Handlers

type Handlers struct {
	Client Client
}

func (*Handlers) AddHandlers

func (h *Handlers) AddHandlers(r *mux.Router)

AddHandlers registers user UI handlers with the router

type LoginHandlers

type LoginHandlers struct {
	Client    loginClient
	SiteToken string
}

func (*LoginHandlers) AddHandlers

func (h *LoginHandlers) AddHandlers(r *mux.Router)

type UserTable

type UserTable struct {
	CanRemoveMember bool
	TeamID          *resource.TfeID
}

func (UserTable) Header

func (t UserTable) Header() templ.Component

func (UserTable) Row

func (t UserTable) Row(user *user.User) templ.Component

Jump to

Keyboard shortcuts

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