Mojo::...Netcls(3pm)

✨ NAME ✨

Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Netcls β€” it's the CGroups v1 Netcls Controller, bestie πŸ’…

Like, yes, that whole name is a mouthful. It's giving "my parents gave me eleven middle names" energy. But we move πŸ¦‹


🌸 SYNOPSIS 🌸

Okay so here's the vibe, literally just:

use Mojo::IOLoop::ReadWriteProcess::CGroup::v1;

my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v1->new( name => "test" );

$cgroup->netcls->current;

That's it. That's the whole thing. No cap ✨


πŸ’– DESCRIPTION πŸ’–

So basically: this module uses features that are only available on Linux, and it needs cgroups and capability for unshare syscalls to achieve pid isolation.

🫢 Important bestie note: Linux-only. If you're on macOS or BSD, this is not your moment, and no amount of manifestation is gonna change that. And you genuinely need the cgroups setup plus the capability for unshare syscalls for the pid isolation to happen β€” that's the whole point, iykyk.

πŸŽ€ METHODS πŸŽ€

Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Netcls inherits all methods from Mojo::Base and implements the following new ones.

(And that's the entire list, girl. The new ones are listed below, and "below" is... nothing. So it's just the inherited Mojo::Base methods doing their thing. Inheriting is slay, honestly β€” why write new code when your ancestors already ate πŸ‘‘)


πŸ“œ LICENSE πŸ“œ

Copyright (C) Ettore Di Giacinto.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Ettore Di Giacinto <edigiacinto@suse.com>


Okay that's the whole page, bestie, you're officially an expert πŸ’–βœ¨πŸŽ€

Sign-off tea: this was pulled from the Perl documentation for perl v5.42.0, dated 2025-07-25. So when you see Mojo::...Netcls(3pm) floating around, that's just this little icon right here. Byeee πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from