acl
package v2.26.0
Go to latest Published: Sep 3, 2025 License:AGPL-3.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:6 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcValidate¶
func Validate[Rolecodersdk.WorkspaceRole |codersdk.TemplateRole](ctxcontext.Context,dbdatabase.Store,vUpdateValidator[Role],) []codersdk.ValidationError
Types¶
typeUpdateValidator¶
type UpdateValidator[Rolecodersdk.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}
Click to show internal directories.
Click to hide internal directories.