Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeName(entries []susp.SystemUseEntry) (string, bool)
- func DecodeSymlink(entries []susp.SystemUseEntry) (string, bool)
- func NewName(name string) ([]susp.SystemUseEntry, error)
- func NewNamePart(data string, cont bool) (susp.SystemUseEntry, error)
- func NewSymlink(target string) ([]susp.SystemUseEntry, error)
- func NewSymlinkPart(flags SymlinkComponentFlag, data string, cont bool) (susp.SystemUseEntry, error)
- type Name
- type PosixEntry
- type Symlink
- type SymlinkComponent
- type SymlinkComponentFlag
- type Timestamps
Constants ¶
View Source
const ( RockRidgeExtensionVersion = 1 RockRidgeExtensionIdentifier = "IEEE_P1282" RockRidgeExtensionDescriptor = "THE IEEE P1282 PROTOCOL PROVIDES SUPPORT FOR POSIX FILE SYSTEM SEMANTICS." RockRidgeExtensionSource = "PLEASE CONTACT THE IEEE STANDARDS DEPARTMENT, PISCATAWAY, NJ, USA FOR THE P1282 SPECIFICATION." )
View Source
const ( RockRidgeExtensionVersionLegacy = 1 RockRidgeExtensionIdentifierLegacy = "RRIP_1991A" RockRidgeExtensionDescriptorLegacy = "THE ROCK RIDGE INTERCHANGE PROTOCOL PROVIDES SUPPORT FOR POSIX FILE SYSTEM SEMANTICS" RockRidgeExtensionSourceLegacy = "" /* 135-byte string literal not displayed */ )
View Source
const (
PosixEntryLength = 44
)
Variables ¶
View Source
var ( ExtensionsReference susp.SystemUseEntry ExtensionsReferenceLegacy susp.SystemUseEntry )
Functions ¶
func DecodeName ¶
func DecodeName(entries []susp.SystemUseEntry) (string, bool)
func DecodeSymlink ¶
func DecodeSymlink(entries []susp.SystemUseEntry) (string, bool)
func NewName ¶
func NewName(name string) ([]susp.SystemUseEntry, error)
NewName creates a sequence of RRIP System Use Entries representing a file name
func NewNamePart ¶
func NewNamePart(data string, cont bool) (susp.SystemUseEntry, error)
NewNamePart returns valids data and returns a new Name
func NewSymlink ¶
func NewSymlink(target string) ([]susp.SystemUseEntry, error)
Create a sequence of RRIP System Use Entries representing a posix symlink
func NewSymlinkPart ¶
func NewSymlinkPart(flags SymlinkComponentFlag, data string, cont bool) (susp.SystemUseEntry, error)
Types ¶
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
Name RRIP "NM" Alternate name
type PosixEntry ¶
RRIP "PX" POSIX file attributes
func DecodePosixEntry ¶
func DecodePosixEntry(entries []susp.SystemUseEntry) (*PosixEntry, bool)
func (*PosixEntry) GidString ¶
func (pe *PosixEntry) GidString() string
func (*PosixEntry) Len ¶
func (pe *PosixEntry) Len() int
func (*PosixEntry) ModeString ¶
func (pe *PosixEntry) ModeString() string
func (*PosixEntry) UidString ¶
func (pe *PosixEntry) UidString() string
type Symlink ¶
type Symlink struct {
// contains filtered or unexported fields
}
RRIP "SL" Symbolic link
func (*Symlink) Component ¶
func (sl *Symlink) Component() SymlinkComponent
type SymlinkComponent ¶
type SymlinkComponent struct {
// contains filtered or unexported fields
}
Component portion of RRIP "SL" Symbolic link
func NewSymlinkComponent ¶
func NewSymlinkComponent(segment string) (components []SymlinkComponent, err error)
func (*SymlinkComponent) Data ¶
func (sc *SymlinkComponent) Data() string
func (*SymlinkComponent) Flags ¶
func (sc *SymlinkComponent) Flags() SymlinkComponentFlag
func (*SymlinkComponent) Len ¶
func (sc *SymlinkComponent) Len() int
type SymlinkComponentFlag ¶
type SymlinkComponentFlag byte
const ( SymlinkComponentFlagContinue SymlinkComponentFlag = 1 << iota SymlinkComponentFlagCurrent SymlinkComponentFlagParent SymlinkComponentFlagRoot )
type Timestamps ¶
type Timestamps struct { Created *time.Time Modified *time.Time Access *time.Time Attributes *time.Time Backup *time.Time Expiration *time.Time Effective *time.Time LongForm bool }
RRIP "TF" timestamps
func DecodeTimestamps ¶
func DecodeTimestamps(entries []susp.SystemUseEntry) (*Timestamps, bool)
func (*Timestamps) Len ¶
func (tf *Timestamps) Len() int
Click to show internal directories.
Click to hide internal directories.