Documentation ¶
Index ¶
- Constants
- func AddGroup(name string) error
- func AddUser(username string, password string) error
- func AddUserToGroup(username string, groupname string) error
- func Authenticate(username string, password string) (bool, error)
- func Cat(workingDir string, username string, filePath string) (string, error)
- func Cd(workingDir string, username string, newDir string) (string, error)
- func GetHomeDir(username string) (string, error)
- func Ls(workingDir string, username string) (string, error)
- func Mkdir(workingDir string, username string, directoryName string) (string, error)
- func Mv(workingDir string, username string, oldPath string, newPath string) (string, error)
- func Pwd(workingDir string, username string) (string, error)
- func Rm(workingDir string, username string, path string) error
- func Touch(workingDir string, username string, filename string) (string, error)
- func ValidateCheckSums(username string) (string, error)
- func Write(workingDir string, username string, filename string, data []byte) (string, error)
Constants ¶
View Source
const HomeDir = "/home/ubuntu/ECE_422_Project_1/home/"
Variables ¶
This section is empty.
Functions ¶
func AddUserToGroup ¶
func Cd ¶
cd - Change the current directory (support ~/./..) function to get functionality this changes the 'virtual' directory - the shell directory stays the same
func GetHomeDir ¶
func Mkdir ¶
mkdir <directory_name> - Create a new directory in current directory function to get functionality
func Mv ¶
mv <old_path> <new_path> - move a file from one location to another example: "mv /home/folder1/file1 /home/folder1/folder2/file1
func Touch ¶
touch <file_name> - create a new file with provided name in current directory example: "touch file1"
func ValidateCheckSums ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.