package validators
import "github.com/hashicorp/nomad/drivers/shared/validators"
Index ¶
Variables ¶
var ( ErrInvalidBound = errors.New("range bound not valid") //ErrEmptyRange = errors.New("range value cannot be empty") ErrInvalidRange = errors.New("lower bound cannot be greater than upper bound") )
Types ¶
type GroupID ¶
type GroupID uint64
A GroupID (GID) represents a unique numerical value assigned to each user group.
type UserID ¶
type UserID uint64
A UserID represents a unique numerical value assigned to each user account.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func (*Validator) HasValidIDs ¶
HasValidIDs is used when running a task to ensure the given user is in the ID range defined in the task config
Source Files ¶
validators.go validators_unix.go
- Version
- v1.10.0 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 2 days ago –
Tools for package owners.