policy

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package policy answers one question: may this user reach this target, and as which OS account?

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	Allowed bool

	OSUser string

	Reason string
}

func Authorize

func Authorize(u model.User, t model.Target, requested string) Decision

Authorize decides whether u may open a session on t, and as which OS user.

Jump to

Keyboard shortcuts

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