annex

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BYTE     = 1.0
	KILOBYTE = 1024 * BYTE
	MEGABYTE = 1024 * KILOBYTE
	GIGABYTE = 1024 * MEGABYTE
	TERABYTE = 1024 * GIGABYTE
)

Variables

This section is empty.

Functions

func Add

func Add(dir string, args ...string) ([]byte, error)

func ContentLocation added in v0.5.5

func ContentLocation(repo *git.Repository, key string) (string, error)

ContentLocation returns the location of the content file for a given annex key. The returned path is relative to the repository git directory.

func Init

func Init(dir string, args ...string) ([]byte, error)

func IsAnnexFile added in v0.5.5

func IsAnnexFile(blob *git.Blob) bool

func IsBare added in v0.5.5

func IsBare(repo *git.Repository) (bool, error)

func MD5

func MD5(dir string) ([]byte, error)

func SetAddUnlocked

func SetAddUnlocked(dir string) ([]byte, error)

func SetAnnexSizeFilter

func SetAnnexSizeFilter(dir string, size int64) ([]byte, error)

func Sync added in v0.5.5

func Sync(dir string, args ...string) ([]byte, error)

func Uninit

func Uninit(dir string, args ...string) ([]byte, error)

func Upgrade

func Upgrade(dir string) ([]byte, error)

func Worm

func Worm(dir string) ([]byte, error)

Types

type AFile

type AFile struct {
	Filepath  string
	OFilename string
	Info      os.FileInfo
}

func NewAFile

func NewAFile(annexpath, repopath, Ofilename string, APFileC []byte) (*AFile, error)

func (*AFile) Open

func (af *AFile) Open() (*os.File, error)

type AnnexFileNotFound

type AnnexFileNotFound struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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