sync

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2016 License: Apache-2.0 Imports: 7 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 Pull

func Pull(ctx context.Context, client pfs.APIClient, root string, commit *pfs.Commit, diffMethod *pfs.DiffMethod, shard *pfs.Shard) 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.

func Push

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

Push puts files under root into an open commit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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