core

package
v0.0.0-...-8dd0fc1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2015 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressArchive

func CompressArchive(archivePath, outPath string) bool

func DecryptFile

func DecryptFile(target, out, keyfile string) bool

func EncryptFile

func EncryptFile(target, out, keyfile string) bool

func ExplainInstruction

func ExplainInstruction(instr *Instruction)

func ExtractArchive

func ExtractArchive(file, directory string) bool

func FetchFile

func FetchFile(archive, name string) string

func GenerateFinalNameSuffix

func GenerateFinalNameSuffix(baseSuffix string, info ContentsInfo) string

func GenerateNameSuffix

func GenerateNameSuffix(info ContentsInfo) string

func MergeIntoBaseArchive

func MergeIntoBaseArchive(baseArchive ArchiveInfo, basedir string, contents []FileInfo, file string, definitiveList *ContentsInfo) bool

Types

type ArchiveInfo

type ArchiveInfo struct {
	Items []Item
	Path  string
}

func CreateBaseArchive

func CreateBaseArchive(basedir string, contents []FileInfo, file string) *ArchiveInfo

type Configuration

type Configuration struct {
	Name      string
	Disabled  bool
	Except    []string
	ExceptReg *regexp.Regexp
	Only      []string
	OnlyReg   *regexp.Regexp
}

type ContentsInfo

type ContentsInfo struct {
	Size     int64
	Newest   time.Time
	Contents []FileInfo
}

func FilterContents

func FilterContents(existing ContentsInfo, ignore *regexp.Regexp, only *regexp.Regexp) *ContentsInfo

func GetContents

func GetContents(root string, ignoreReg *regexp.Regexp) *ContentsInfo

type FileInfo

type FileInfo struct {
	AbsPath    string
	RelPath    string
	ModTime    time.Time
	Size       int64
	Identifier string
}

type Instruction

type Instruction struct {
	Src            string
	Encrypt        bool
	Configurations []Configuration
	Ignore         []string
	IgnoreReg      *regexp.Regexp
	S3             *uptypes.S3Config
}

func ParseInstruction

func ParseInstruction(path string) *Instruction

type Item

type Item struct {
	Start  int64
	Length int64
	Name   string
}

Jump to

Keyboard shortcuts

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