generate

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadAccess    = Access("r")
	WriteAccess   = Access("w")
	ExecuteAccess = Access("x")
)
View Source
const (
	Owner = User("owner")
	Group = User("group")
	Other = User("other")
)

Variables

This section is empty.

Functions

func GetPWDMode

func GetPWDMode() (fs.FileMode, error)

Types

type Access

type Access string

type State

type State struct {
	Users   map[User]map[Access]bool
	Command string
	PWD     string
}

func NewState

func NewState() *State

func (*State) BuildCommand

func (s *State) BuildCommand(mode string) string

func (*State) SortKeys

func (s *State) SortKeys(m map[Access]bool) []Access

type User

type User string

Jump to

Keyboard shortcuts

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