adminapi

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminSessionMiddleware

AdminSessionMiddleware provides context population of administration session information. If put in front of a handler, the context to the handler will contain information that can be used to determine if a KRB admin made the call, or if it was external.

func ContextSessionValid

func ContextSessionValid(ctx context.Context) bool

func IsSuperUserContext

func IsSuperUserContext(ctx context.Context) bool

func RequireSessionMiddleware

func RequireSessionMiddleware() adminapigen.StrictMiddlewareFunc

func SessionIDFromContext

func SessionIDFromContext(ctx context.Context) string

Types

type Opts

type Opts struct {
	DB db.SQLClient

	ClientID     string
	ClientSecret string
}

type SSI

type SSI interface {
	adminapi.StrictServerInterface

	SetComposer(composer.Composer)
}

func NewSSI

func NewSSI(opts *Opts) SSI

Jump to

Keyboard shortcuts

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