Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( R = Registry{ // contains filtered or unexported fields } )
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
FullDiskReadAccess bool `toml:"fullDiskReadAccess"`
NoCache bool `toml:"noCache"`
// Home control access to $HOME dir
// if set - home available
Home *Home `toml:"home"`
ROPaths []string `toml:"roPaths"`
RWPaths []string `toml:"rwPaths"`
DenyPaths []string `toml:"denyPaths"`
}
type Home ¶ added in v0.0.9
type Home struct {
// AllPaths allows access to any subpath under Home dir
AllPaths bool `toml:"allPaths"`
// SkipDefaultDenyList do not use default deny list
SkipDefaultDenyList bool `toml:"skipDefaultDenyList"`
// DenyList under home dir where access is forbidden
DenyList []string `toml:"denyList"`
// RW makes access to $HOME rw
RW bool `toml:"rw"`
}
type Policy ¶
type Policy struct {
Env Env `toml:"env"`
Filesystem Filesystem `toml:"fs"`
Network Network `toml:"net"`
}
func MergePolicies ¶ added in v0.0.5
func (*Policy) UnmarshalTOML ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.