Documentation ¶
Index ¶
- Constants
- func ReadFat(fat map[dirent.Id]*dirent.Dirent, reader util.ReadSeekCloser) (int, error)
- func ReadFatWithScanner(fat map[dirent.Id]*dirent.Dirent, scanner *bufio.Scanner) (int, error)
- func ReadGroups(groups map[identity.GroupId]*identity.Group, reader util.ReadSeekCloser) (int, error)
- func ReadGroupsWithScanner(groups map[identity.GroupId]*identity.Group, scanner *bufio.Scanner) (int, error)
- func ReadUsers(users map[identity.UserId]*identity.User, reader util.ReadSeekCloser) (int, error)
- func ReadUsersWithScanner(users map[identity.UserId]*identity.User, scanner *bufio.Scanner) (int, error)
- func WriteFat(fat map[dirent.Id]*dirent.Dirent, version int, writer *cipherio.CipherWriter) error
- func WriteGroups(groups map[identity.GroupId]*identity.Group, version int, ...) error
- func WriteUsers(users map[identity.UserId]*identity.User, version int, ...) error
Constants ¶
const ( // If we have file systems in the wild, we will need to make sure we // are looking at consistent structure. FORMAT_VERSION = 2 )
Variables ¶
This section is empty.
Functions ¶
func ReadFat ¶
Read a full fat into memory and return the version of of the version read. This function will not clear the given fat. However, the reader WILL be closed.
func ReadFatWithScanner ¶
Same as the other read, but we will read directly from a scanner owned by someone else. This is expecially useful if there are multiple sections of metadata written to the same file.
func ReadGroups ¶
func ReadGroups(groups map[identity.GroupId]*identity.Group, reader util.ReadSeekCloser) (int, error)
Read all groups into memory. This function will not clear the given groups. However, the reader WILL be closed.
func ReadGroupsWithScanner ¶
func ReadGroupsWithScanner(groups map[identity.GroupId]*identity.Group, scanner *bufio.Scanner) (int, error)
Same as the other read, but we will read directly from a deocder owned by someone else. This is expecially useful if there are multiple sections of metadata written to the same file.
func ReadUsers ¶
Read all users into memory. This function will not clear the given users. However, the reader WILL be closed.
func ReadUsersWithScanner ¶
func WriteGroups ¶
func WriteGroups(groups map[identity.GroupId]*identity.Group, version int, writer *cipherio.CipherWriter) error
Write all groups. This function will not close the given writer.
func WriteUsers ¶
func WriteUsers(users map[identity.UserId]*identity.User, version int, writer *cipherio.CipherWriter) error
Write all users. This function will not close the given writer.
Types ¶
This section is empty.