Documentation
¶
Overview ¶
Package control provides abstractions for managing job states and security flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTerminal = errors.New("job is in a terminal state")
)
Functions ¶
func TestFlagReg32Concurrent ¶
func TestJobStateTransitions ¶
Types ¶
type FlagReg32A ¶
type FlagReg32A[T ~uint32] struct { // contains filtered or unexported fields }
func (*FlagReg32A[T]) Set ¶
func (r *FlagReg32A[T]) Set(mask T)
Set CAS OR (não usa Add; evita somas indevidas quando máscara tem múltiplos bits)
func (*FlagReg32A[T]) SetIf ¶
func (r *FlagReg32A[T]) SetIf(mask, mustHave T) bool
SetIf CAS OR se todos os bits de mustHave estiverem setados
type JobState ¶
type JobState struct {
// contains filtered or unexported fields
}
func (*JobState) IsTerminal ¶
IsTerminal returns true if the job is in a terminal state.
func (*JobState) RequestCancel ¶
func (s *JobState) RequestCancel()
RequestCancel sets the CancelRequested flag.
type SecFlag ¶
type SecFlag uint32
func FromLegacyMap ¶
FromLegacyMap converte mapa legado (ex: de config JSON) para flags
Click to show internal directories.
Click to hide internal directories.