Documentation
¶
Index ¶
Constants ¶
View Source
const (
Wildcard = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permissions ¶
type Permissions string
type Rule ¶
type Rule struct {
// Type of device ('c' for char, 'b' for block). If set to 'a', this rule
// acts as a wildcard and all fields other than Allow are ignored.
Type Type `json:"type"`
// Major is the device's major number.
Major int64 `json:"major"`
// Minor is the device's minor number.
Minor int64 `json:"minor"`
// Permissions is the set of permissions that this rule applies to (in the
// cgroupv1 format -- any combination of "rwm").
Permissions Permissions `json:"permissions"`
// Allow specifies whether this rule is allowed.
Allow bool `json:"allow"`
}
type ThrottleDevice ¶
ThrottleDevice is a structure that holds device:rate_per_second pair
func (*ThrottleDevice) String ¶
func (t *ThrottleDevice) String() string
type WeightDevice ¶
func (*WeightDevice) String ¶
func (w *WeightDevice) String() string
Click to show internal directories.
Click to hide internal directories.