ftpctl

package
v0.0.1-beta2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFtpAppCtl

func DefaultFtpAppCtl(os oss.OS, logger loggers.Logger) *defaultFtpAppCtl

func SysUserCtl

func SysUserCtl(dbFile string) *sysUserCtl

Types

type FtpAppCtl

type FtpAppCtl interface {
	ServiceCtl() controllers.Controller
	UserCtl() UserCtl
	SetPort(port string)
	GetPort() (port string)
}

type User

type User struct {
	User   string
	Passwd string
	Home   string
	Enable string
}

type UserCtl

type UserCtl interface {
	List(user string) (users []User)
	Add(user, passwd, home string) (err error)
	Passwd(user, passwd string)
	Del(user string)
	Enable(user string)
	Disable(user string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL