Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + const ACCESS_SYSTEM_SECURITY — windows/amd64 + const BackupAlternateData — windows/amd64 + const BackupData — windows/amd64 + const BackupEaData — windows/amd64 + const BackupLink — windows/amd64 + const BackupObjectId — windows/amd64 + const BackupPropertyData — windows/amd64 + const BackupReparseData — windows/amd64 + const BackupSecurity — windows/amd64 + const BackupSparseBlock — windows/amd64 + const BackupTxfsData — windows/amd64 + const ERROR_NOT_ALL_ASSIGNED — windows/amd64 + const SE_PRIVILEGE_ENABLED — windows/amd64 + const SeBackupPrivilege — windows/amd64 + const SeRestorePrivilege — windows/amd64 + const StreamSparseAttributes — windows/amd64 + const WRITE_DAC — windows/amd64 + const WRITE_OWNER — windows/amd64 + var ErrFileClosed = errors.New("file has already been closed") — windows/amd64 + var ErrPipeListenerClosed = errors.New("use of closed network connection") — windows/amd64 + var ErrTimeout = &timeoutError — windows/amd64 + func DialPipe(path string, timeout *time.Duration) (net.Conn, error) — windows/amd64 + func DisableProcessPrivileges(names []string) error — windows/amd64 + func EnableProcessPrivileges(names []string) error — windows/amd64 + func EncodeExtendedAttributes(eas []ExtendedAttribute) ([]byte, error) + func EncodeReparsePoint(rp *ReparsePoint) []byte + func ListenPipe(path string, c *PipeConfig) (net.Listener, error) — windows/amd64 + func LookupSidByName(name string) (sid string, err error) — windows/amd64 + func MakeOpenFile(h syscall.Handle) (io.ReadWriteCloser, error) — windows/amd64 + func OpenForBackup(path string, access uint32, share uint32, createmode uint32) (*os.File, error) — windows/amd64 + func RunWithPrivilege(name string, fn func() error) error — windows/amd64 + func RunWithPrivileges(names []string, fn func() error) error — windows/amd64 + func SddlToSecurityDescriptor(sddl string) ([]byte, error) — windows/amd64 + func SecurityDescriptorToSddl(sd []byte) (string, error) — windows/amd64 + func SetFileBasicInfo(f *os.File, bi *FileBasicInfo) error — windows/amd64 + type AccountLookupError struct — windows/amd64 + Err error + Name string + func (e *AccountLookupError) Error() string + type BackupFileReader struct — windows/amd64 + func NewBackupFileReader(f *os.File, includeSecurity bool) *BackupFileReader + func (r *BackupFileReader) Close() error + func (r *BackupFileReader) Read(b []byte) (int, error) + type BackupFileWriter struct — windows/amd64 + func NewBackupFileWriter(f *os.File, includeSecurity bool) *BackupFileWriter + func (w *BackupFileWriter) Close() error + func (w *BackupFileWriter) Write(b []byte) (int, error) + type BackupHeader struct — windows/amd64 + Attributes uint32 + Id uint32 + Name string + Offset int64 + Size int64 + type BackupStreamReader struct — windows/amd64 + func NewBackupStreamReader(r io.Reader) *BackupStreamReader + func (r *BackupStreamReader) Next() (*BackupHeader, error) + func (r *BackupStreamReader) Read(b []byte) (int, error) + type BackupStreamWriter struct — windows/amd64 + func NewBackupStreamWriter(w io.Writer) *BackupStreamWriter + func (w *BackupStreamWriter) Write(b []byte) (int, error) + func (w *BackupStreamWriter) WriteHeader(hdr *BackupHeader) error + type ExtendedAttribute struct + Flags uint8 + Name string + Value []byte + func DecodeExtendedAttributes(b []byte) (eas []ExtendedAttribute, err error) + type FileBasicInfo struct — windows/amd64 + ChangeTime syscall.Filetime + CreationTime syscall.Filetime + FileAttributes uint32 + LastAccessTime syscall.Filetime + LastWriteTime syscall.Filetime + func GetFileBasicInfo(f *os.File) (*FileBasicInfo, error) + type FileIDInfo struct — windows/amd64 + FileID [16]byte + VolumeSerialNumber uint64 + func GetFileID(f *os.File) (*FileIDInfo, error) + type PipeConfig struct — windows/amd64 + InputBufferSize int32 + MessageMode bool + OutputBufferSize int32 + SecurityDescriptor string + type PrivilegeError struct — windows/amd64 + func (e *PrivilegeError) Error() string + type ReparsePoint struct + IsMountPoint bool + Target string + func DecodeReparsePoint(b []byte) (*ReparsePoint, error) + func DecodeReparsePointData(tag uint32, b []byte) (*ReparsePoint, error) + type SddlConversionError struct — windows/amd64 + Err error + Sddl string + func (e *SddlConversionError) Error() string + type UnsupportedReparsePointError struct + Tag uint32 + func (e *UnsupportedReparsePointError) Error() string