rrip

package
v0.0.0-...-5fe3b72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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(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(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

func (*Name) Continue

func (nm *Name) Continue() bool

func (*Name) Data

func (nm *Name) Data() string

func (*Name) Len

func (nm *Name) Len() int

func (*Name) WriteTo

func (nm *Name) WriteTo(w io.Writer) (n int64, err error)

type PosixEntry

type PosixEntry struct {
	Mode  os.FileMode
	Nlink uint32
	Uid   uint32
	Gid   uint32
	Ino   uint32
}

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

func (*PosixEntry) WriteTo

func (pe *PosixEntry) WriteTo(w io.Writer) (n int64, err error)
type Symlink struct {
	// contains filtered or unexported fields
}

RRIP "SL" Symbolic link

func (*Symlink) Component

func (sl *Symlink) Component() SymlinkComponent

func (*Symlink) Continue

func (sl *Symlink) Continue() bool

func (*Symlink) Len

func (sl *Symlink) Len() int

func (*Symlink) WriteTo

func (sl *Symlink) WriteTo(w io.Writer) (n int64, err error)

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 (*SymlinkComponent) Len

func (sc *SymlinkComponent) Len() int

func (*SymlinkComponent) WriteTo

func (sc *SymlinkComponent) WriteTo(w io.Writer) (n int64, err error)

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

func (*Timestamps) WriteTo

func (tf *Timestamps) WriteTo(w io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL