acl

package
v2.35.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: AGPL-3.0 Imports: 6 Imported by: 1 module, 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

Types

type UpdateValidator

type UpdateValidator[Role codersdk.WorkspaceRole | codersdk.TemplateRole | codersdk.ChatRole] interface {
	// Users should return a map from user UUIDs (as strings) to the role they
	// are being assigned. Additionally, it should return a string that will be
	// used as the field name for the ValidationErrors returned from Validate.
	Users() (map[string]Role, string)
	// Groups should return a map from group UUIDs (as strings) to the role they
	// are being assigned. Additionally, it should return a string that will be
	// used as the field name for the ValidationErrors returned from Validate.
	Groups() (map[string]Role, string)
	// ValidateRole should return an error that will be used in the
	// ValidationError if the role is invalid for the corresponding resource type.
	ValidateRole(role Role) error
}

Jump to

Keyboard shortcuts

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