Documentation
¶
Index ¶
- type Jail
- func (j *Jail) Bind(dest, src string)
- func (j *Jail) Build() error
- func (j *Jail) Copy(path string) error
- func (j *Jail) CopyTo(dest, src string) error
- func (j *Jail) Dispose() error
- func (j *Jail) ExternalPath(internal string) string
- func (j *Jail) LazyUnbind() error
- func (j *Jail) MkDir(path string, perm os.FileMode)
- func (j *Jail) Path() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jail ¶
type Jail struct {
// contains filtered or unexported fields
}
Jail is a Chroot jail builder
func TimestampedJail ¶
TimestampedJail return a Jail with Path composed by prefix and current timestamp
func (*Jail) ExternalPath ¶
ExternalPath converts a jail internal path to the equivalent jail external path
func (*Jail) LazyUnbind ¶
LazyUnbind detaches all binded mountpoints
Click to show internal directories.
Click to hide internal directories.