Thanks to visit codestin.com
Credit goes to pkg.go.dev

acl

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type UpdateValidator

type UpdateValidator[Role codersdk.WorkspaceRole | codersdk.TemplateRole] 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