Documentation ¶
Index ¶
- Constants
- Variables
- func TypeString(e Enablement) string
- type ACL
- type Criteria
- type DBus
- type Enablement
- type Enablements
- type I
- func (sys *I) ChangeHosts(username string)
- func (sys *I) Commit() error
- func (sys *I) CopyFile(dst, src string)
- func (sys *I) CopyFileType(et Enablement, dst, src string)
- func (sys *I) Ensure(name string, perm os.FileMode)
- func (sys *I) Ephemeral(et Enablement, name string, perm os.FileMode)
- func (sys *I) Link(oldname, newname string)
- func (sys *I) LinkFileType(et Enablement, oldname, newname string)
- func (sys *I) ProxyDBus(session, system *dbus.Config, sessionPath, systemPath string) error
- func (sys *I) Revert(ec *Criteria) error
- func (sys *I) UID() int
- func (sys *I) UpdatePerm(path string, perms ...acl.Perm)
- func (sys *I) UpdatePermType(et Enablement, path string, perms ...acl.Perm)
- func (sys *I) Write(dst, src string)
- func (sys *I) WriteType(et Enablement, dst, src string)
- type Mkdir
- type Op
- type Tmpfile
- type XHost
Constants ¶
View Source
const ( // User type is reverted at final launcher exit. User = Enablement(ELen) // Process type is unconditionally reverted on exit. Process = Enablement(ELen + 1) )
View Source
const ELen = len(enablementString)
Variables ¶
View Source
var (
ErrDBusConfig = errors.New("dbus config not supplied")
)
Functions ¶
func TypeString ¶
func TypeString(e Enablement) string
Types ¶
type ACL ¶
type ACL struct {
// contains filtered or unexported fields
}
func (*ACL) Type ¶
func (a *ACL) Type() Enablement
type Criteria ¶
type Criteria struct {
*Enablements
}
type DBus ¶
type DBus struct {
// contains filtered or unexported fields
}
func (*DBus) Type ¶
func (d *DBus) Type() Enablement
type Enablement ¶
type Enablement uint8
Enablement represents an optional system resource
const ( EWayland Enablement = iota EX11 EDBus EPulse )
func (Enablement) Mask ¶
func (e Enablement) Mask() Enablements
func (Enablement) String ¶
func (e Enablement) String() string
type Enablements ¶
type Enablements uint64
Enablements represents optional system resources to share
func (*Enablements) Has ¶
func (es *Enablements) Has(e Enablement) bool
Has returns whether a feature is enabled
type I ¶
type I struct {
// contains filtered or unexported fields
}
func (*I) ChangeHosts ¶
ChangeHosts appends an X11 ChangeHosts command Op.
func (*I) CopyFileType ¶
func (sys *I) CopyFileType(et Enablement, dst, src string)
CopyFileType registers a file copying Op labelled with type et.
func (*I) Ephemeral ¶
func (sys *I) Ephemeral(et Enablement, name string, perm os.FileMode)
Ephemeral ensures the temporary existence and mode of a directory through the life of et.
func (*I) LinkFileType ¶
func (sys *I) LinkFileType(et Enablement, oldname, newname string)
LinkFileType registers a file linking Op labelled with type et.
func (*I) UpdatePerm ¶
UpdatePerm appends an ephemeral acl update Op.
func (*I) UpdatePermType ¶
func (sys *I) UpdatePermType(et Enablement, path string, perms ...acl.Perm)
UpdatePermType appends an acl update Op.
func (*I) WriteType ¶
func (sys *I) WriteType(et Enablement, dst, src string)
WriteType registers a file writing Op labelled with type et.
type Mkdir ¶
type Mkdir struct {
// contains filtered or unexported fields
}
func (*Mkdir) Type ¶
func (m *Mkdir) Type() Enablement
type Op ¶
type Op interface { // Type returns Op's enablement type. Type() Enablement Is(o Op) bool Path() string String() string // contains filtered or unexported methods }
Op is a reversible system operation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.