Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotStarted = errors.New("norduserd wasn't started")
ErrNotStarted when disabling norduser
Functions ¶
This section is empty.
Types ¶
type ChildProcessNorduser ¶
type ChildProcessNorduser struct {
// contains filtered or unexported fields
}
ChildProcessNorduser manages norduser service through exec.Command
func NewChildProcessNorduser ¶
func NewChildProcessNorduser() *ChildProcessNorduser
func (*ChildProcessNorduser) Enable ¶
func (f *ChildProcessNorduser) Enable(uid uint32, gid uint32) (err error)
Enable starts norduser process
func (*ChildProcessNorduser) Stop ¶
func (f *ChildProcessNorduser) Stop(uid uint32) error
Stop teminates norduser process
type Combined ¶
type Combined struct {
// contains filtered or unexported fields
}
func NewNorduserService ¶
func NewNorduserService() *Combined
func (*Combined) DisableAll ¶
func (c *Combined) DisableAll()
type NorduserFileshareClient ¶
type NorduserFileshareClient interface {}
type NorduserGRPCClient ¶
type NorduserGRPCClient struct { }
func NewNorduserGRPCClient ¶
func NewNorduserGRPCClient() NorduserGRPCClient
func (NorduserGRPCClient) StartFileshare ¶
func (n NorduserGRPCClient) StartFileshare(uid uint32) error
func (NorduserGRPCClient) StopFileshare ¶
func (n NorduserGRPCClient) StopFileshare(uid uint32) error
type NorduserService ¶
type NorduserSnap ¶
type NorduserSnap struct{}
func NewNorduserSnapService ¶
func NewNorduserSnapService() NorduserSnap
func (NorduserSnap) Disable ¶
func (n NorduserSnap) Disable(uid uint32) error
func (NorduserSnap) DisableAll ¶
func (n NorduserSnap) DisableAll()
func (NorduserSnap) Stop ¶
func (n NorduserSnap) Stop(uid uint32) error
func (NorduserSnap) StopAll ¶
func (n NorduserSnap) StopAll()
type SystemdNorduser ¶
type SystemdNorduser struct{}
SystemdNorduser manages norduser service through systemctl
func (*SystemdNorduser) Disable ¶
func (*SystemdNorduser) Disable(uid uint32) error
Disable and stop norduser service
func (*SystemdNorduser) Enable ¶
func (*SystemdNorduser) Enable(uid uint32) error
Enable and start norduser service
func (*SystemdNorduser) Stop ¶
func (*SystemdNorduser) Stop(uid uint32) error
Stop without disabling
Click to show internal directories.
Click to hide internal directories.