git

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRemoteNotFound = errors.New("Could not find remote matching app in 'git remote -v'")

ErrRemoteNotFound is returned when the remote cannot be found in git

Functions

func CreateRemote

func CreateRemote(host, remote, appID string) error

CreateRemote adds a git remote in the current directory.

func DeleteAppRemotes

func DeleteAppRemotes(host, appID string) error

DeleteAppRemotes removes all git remotes corresponding to an app in the repository.

func DeleteRemote

func DeleteRemote(name string) error

DeleteRemote removes a remote from the repository

func DetectAppName

func DetectAppName(host string) (string, error)

DetectAppName detects if there is deis remote in git.

func RemoteURL

func RemoteURL(host, appID string) string

RemoteURL returns the git URL of app.

func RemoteValue

func RemoteValue(name string) (string, error)

RemoteValue gets the url that a git remote is set to.

Types

This section is empty.

Jump to

Keyboard shortcuts

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