repo

package
v0.0.0-...-7c29cea Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageGitRepo

type PageGitRepo struct {
	RepoDir string
	// contains filtered or unexported fields
}

PageGitRepo is remote GIT repo

func NewPageGitRepo

func NewPageGitRepo(localDir, repoURL, repoBranch, repoToken string, projectID uint) *PageGitRepo

NewPageGitRepo returns new initialized instance of PageGitRepo

func (*PageGitRepo) Pull

func (p *PageGitRepo) Pull() error

Pull fetches latest project version from repository using REST API and extracts it to localDir

func (*PageGitRepo) Push

func (p *PageGitRepo) Push() error

Push pushes changes to repo using REST API

Jump to

Keyboard shortcuts

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