Explorar o código

[vendor] go-annex removed

cgars %!s(int64=7) %!d(string=hai) anos
pai
achega
45d80ddf40

+ 0 - 29
vendor/github.com/G-Node/go-annex/LICENSE

@@ -1,29 +0,0 @@
-BSD 3-Clause License
-
-Copyright (c) 2017, German Neuroinformatics Node
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
-  list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-
-* Neither the name of the copyright holder nor the names of its
-  contributors may be used to endorse or promote products derived from
-  this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ 0 - 50
vendor/github.com/G-Node/go-annex/add.go

@@ -1,50 +0,0 @@
-package gannex
-
-import (
-	"github.com/G-Node/git-module"
-)
-
-const (
-	BYTE     = 1.0
-	KILOBYTE = 1024 * BYTE
-	MEGABYTE = 1024 * KILOBYTE
-	GIGABYTE = 1024 * MEGABYTE
-	TERABYTE = 1024 * GIGABYTE
-)
-
-type ACommand struct {
-	git.Command
-	name string
-	args []string
-	env  []string
-}
-
-func AInit(dir string, args ...string) (string, error) {
-	cmd := git.NewACommand("init")
-	return cmd.AddArguments(args...).RunInDir(dir)
-}
-
-func AUInit(dir string, args ...string) (string, error) {
-	cmd := git.NewACommand("uninit")
-	return cmd.AddArguments(args...).RunInDir(dir)
-}
-
-func Worm(dir string) (string, error) {
-	cmd := git.NewCommand("config", "annex.backends", "WORM")
-	return cmd.RunInDir(dir)
-}
-
-func Md5(dir string) (string, error) {
-	cmd := git.NewCommand("config", "annex.backends", "MD5")
-	return cmd.RunInDir(dir)
-}
-
-func ASync(dir string, args ...string) (string, error) {
-	cmd := git.NewACommand("sync")
-	return cmd.AddArguments(args...).RunInDir(dir)
-}
-
-func Add(filename, dir string) (string, error) {
-	cmd := git.NewACommand("add", filename)
-	return cmd.RunInDir(dir)
-}

+ 0 - 58
vendor/github.com/G-Node/go-annex/file.go

@@ -1,58 +0,0 @@
-package gannex
-
-import (
-	"os"
-	"path/filepath"
-	"strings"
-	"io"
-	"fmt"
-	"log"
-)
-
-type AFile struct {
-	Filepath  string
-	OFilename string
-	Info      os.FileInfo
-}
-
-type AnnexFileNotFound struct {
-	error
-}
-
-func NewAFile(annexpath, repopath, Ofilename string, APFileC []byte) (*AFile, error) {
-	nAF := &AFile{OFilename: Ofilename}
-	pathParts := strings.SplitAfter(string(APFileC), string(os.PathSeparator))
-	filename := strings.TrimSpace(pathParts[len(pathParts)-1])
-
-	// lets find the annex file
-	filepath.Walk(filepath.Join(annexpath, repopath), func(path string, info os.FileInfo, err error) error {
-		if err != nil {
-			log.Printf("%v", err)
-			return filepath.SkipDir
-		}
-		if info.IsDir() {
-			return nil
-		} else if info.Name() == filename {
-			nAF.Filepath = path
-			nAF.Info = info
-			return io.EOF
-		}
-		return nil
-	})
-	if nAF.Filepath != "" {
-		return nAF, nil
-	} else {
-		return nil, AnnexFileNotFound{error: fmt.Errorf("Could not find File: %s anywhere below: %s", filename,
-			filepath.Join(annexpath, repopath))}
-	}
-
-}
-
-func (af *AFile) Open() (*os.File, error) {
-	fp, err := os.Open(af.Filepath)
-	if err != nil {
-		return nil, err
-	}
-	return fp, nil
-
-}

+ 0 - 5
vendor/github.com/G-Node/go-annex/util.go

@@ -1,5 +0,0 @@
-package gannex
-
-func isAnnexed(dir string) (bool, error) {
-	return false, nil
-}