Versions in this module Expand all Collapse all v0 v0.4.0 Mar 28, 2017 Changes in this version + const BackupAlternateData + const BackupData + const BackupEaData + const BackupLink + const BackupObjectId + const BackupPropertyData + const BackupReparseData + const BackupSecurity + const BackupSparseBlock + const BackupTxfsData + const ERROR_NOT_ALL_ASSIGNED + const SE_PRIVILEGE_ENABLED + const SeBackupPrivilege + const SeRestorePrivilege + const StreamSparseAttributes + var ErrFileClosed = errors.New("file has already been closed") + var ErrPipeListenerClosed = errors.New("use of closed network connection") + var ErrTimeout = &timeoutError + func DialPipe(path string, timeout *time.Duration) (net.Conn, error) + func EncodeReparsePoint(rp *ReparsePoint) []byte + func ListenPipe(path string, c *PipeConfig) (net.Listener, error) + func LookupSidByName(name string) (sid string, err error) + func MakeOpenFile(h syscall.Handle) (io.ReadWriteCloser, error) + func RunWithPrivilege(name string, fn func() error) error + func RunWithPrivileges(names []string, fn func() error) error + func SddlToSecurityDescriptor(sddl string) ([]byte, error) + func SecurityDescriptorToSddl(sd []byte) (string, error) + func SetFileBasicInfo(f *os.File, bi *FileBasicInfo) error + type AccountLookupError struct + Err error + Name string + func (e *AccountLookupError) Error() string + type BackupFileReader struct + func NewBackupFileReader(f *os.File, includeSecurity bool) *BackupFileReader + func (r *BackupFileReader) Close() error + func (r *BackupFileReader) Read(b []byte) (int, error) + type BackupFileWriter struct + func NewBackupFileWriter(f *os.File, includeSecurity bool) *BackupFileWriter + func (w *BackupFileWriter) Close() error + func (w *BackupFileWriter) Write(b []byte) (int, error) + type BackupHeader struct + Attributes uint32 + Id uint32 + Name string + Offset int64 + Size int64 + type BackupStreamReader struct + func NewBackupStreamReader(r io.Reader) *BackupStreamReader + func (r *BackupStreamReader) Next() (*BackupHeader, error) + func (r *BackupStreamReader) Read(b []byte) (int, error) + type BackupStreamWriter struct + func NewBackupStreamWriter(w io.Writer) *BackupStreamWriter + func (w *BackupStreamWriter) Write(b []byte) (int, error) + func (w *BackupStreamWriter) WriteHeader(hdr *BackupHeader) error + type FileBasicInfo struct + ChangeTime syscall.Filetime + CreationTime syscall.Filetime + FileAttributes uintptr + LastAccessTime syscall.Filetime + LastWriteTime syscall.Filetime + func GetFileBasicInfo(f *os.File) (*FileBasicInfo, error) + type PipeConfig struct + InputBufferSize int32 + MessageMode bool + OutputBufferSize int32 + SecurityDescriptor string + type PrivilegeError struct + func (e *PrivilegeError) Error() string + type ReparsePoint struct + IsMountPoint bool + Target string + func DecodeReparsePoint(b []byte) (*ReparsePoint, error) + type SddlConversionError struct + Err error + Sddl string + func (e *SddlConversionError) Error() string + type UnsupportedReparsePointError struct + Tag uint32 + func (e *UnsupportedReparsePointError) Error() string