sync

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sync provides utility functions similar to `git pull/push` for PFS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Push

func Push(client *pachclient.APIClient, root string, commit *pfs.Commit, overwrite bool) error

Push puts files under root into an open commit.

func PushObj added in v1.3.2

func PushObj(pachClient pachclient.APIClient, commit *pfs.Commit, objClient obj.Client, root string) error

PushObj pushes data from commit to an object store.

Types

type Puller added in v1.3.17

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

Puller as a struct for managing a Pull operation.

func NewPuller added in v1.3.17

func NewPuller() *Puller

NewPuller creates a new Puller struct.

func (*Puller) CleanUp added in v1.3.17

func (p *Puller) CleanUp() error

CleanUp cleans up blocked syscalls for pipes that were never opened. It also returns any errors that might have been encountered while trying to read data for the pipes. CleanUp should be called after all code that might access pipes has completed running, it should not be called concurrently.

func (*Puller) Pull added in v1.3.17

func (p *Puller) Pull(client *pachclient.APIClient, root string, commit *pfs.Commit, diffMethod *pfs.DiffMethod, shard *pfs.Shard, pipes bool) error

Pull clones an entire repo at a certain commit

root is the local path you want to clone to commit is the commit you want to clone shard and diffMethod get passed to ListFile and GetFile. See documentations for those functions for details on these arguments. pipes causes the function to create named pipes in place of files, thus lazily downloading the data as it's needed

Jump to

Keyboard shortcuts

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