Example #1
0
func (f *File) setResource(r continuity.Resource) (err error) {
	f.uid, err = parseUint32(r.UID())
	if err != nil {
		return
	}
	f.gid, err = parseUint32(r.GID())
	if err != nil {
		return
	}
	f.resource = r

	return
}
Example #2
0
func (d *Dir) setResource(r continuity.Resource) (err error) {
	d.uid, err = parseUint32(r.UID())
	if err != nil {
		return
	}
	d.gid, err = parseUint32(r.GID())
	if err != nil {
		return
	}
	d.resource = r

	return
}