Documentation
¶
Index ¶
- Variables
- func ProcessAlive(pid int) bool
- type Lease
- func (lease *Lease) Active() bool
- func (lease *Lease) Close() error
- func (lease *Lease) KillProcess(process *os.Process) error
- func (lease *Lease) LinkAt(fromDirFD int, from string, toDirFD int, to string, flags int) error
- func (lease *Lease) LinkAtWith(link LinkAtFunc, fromDirFD int, from string, toDirFD int, to string, flags int) error
- func (lease *Lease) QueueRestart(restartSignals chan<- os.Signal, signal os.Signal) error
- func (lease *Lease) QueueStop(stopRequest chan<- struct{}) error
- func (lease *Lease) RenameAt(fromDirFD int, from string, toDirFD int, to string) error
- func (lease *Lease) RenameAtWith(rename RenameAtFunc, fromDirFD int, from string, toDirFD int, to string) error
- func (lease *Lease) RenameNoReplaceAt(fromDirFD int, from string, toDirFD int, to string) error
- func (lease *Lease) RenameNoReplaceAtWith(rename RenameNoReplaceAtFunc, fromDirFD int, from string, toDirFD int, ...) error
- func (lease *Lease) SendPidfdSignal(pidfd int, signal unix.Signal) error
- func (lease *Lease) SendPidfdSignalWith(send PidfdSenderFunc, pidfd int, signal unix.Signal) error
- func (lease *Lease) UnlinkAt(dirfd int, name string, flags int) error
- func (lease *Lease) UnlinkAtWith(unlink UnlinkAtFunc, dirfd int, name string, flags int) error
- type LinkAtFunc
- type PidfdSenderFunc
- type ReleaseFunc
- type RenameAtFunc
- type RenameNoReplaceAtFunc
- type UnlinkAtFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("wake mutation lease is closed")
Functions ¶
func ProcessAlive ¶
Types ¶
type Lease ¶
type Lease struct {
// contains filtered or unexported fields
}
Lease is a capability for effects that must finish before its authority is released. Close prevents new effects, waits for admitted effects, and then calls the backing release function.
func New ¶
func New(release ReleaseFunc) *Lease
func (*Lease) LinkAtWith ¶
func (*Lease) QueueRestart ¶
func (*Lease) RenameAtWith ¶
func (*Lease) RenameNoReplaceAt ¶
func (*Lease) RenameNoReplaceAtWith ¶
func (*Lease) SendPidfdSignal ¶
func (*Lease) SendPidfdSignalWith ¶
func (*Lease) UnlinkAtWith ¶
type LinkAtFunc ¶
type PidfdSenderFunc ¶
type ReleaseFunc ¶
type ReleaseFunc func() error
ReleaseFunc releases the lifecycle authority that backs a Lease.
type RenameAtFunc ¶
type RenameNoReplaceAtFunc ¶
Click to show internal directories.
Click to hide internal directories.