gitops

package
v0.0.0-...-7377fae Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkout

func Checkout(repository *git.Repository, branchName string) bool

Checkout switches the work tree of the given repository to the given branch name

func InitLogging

func InitLogging(logParams smartlogger.LogParams)

InitLogging initializes this package's logging

func Load

func Load(repositoryURL, storagePath string) (*git.Repository, error)

Load clones a repository in a given path with specifically-selected options.

func Update

func Update(gitRepo *git.Repository) bool

Types

type Protocol

type Protocol string

Protocol used for cloning

const (
	HTTPS           Protocol = "https"
	SSH             Protocol = "ssh"
	GIT             Protocol = "git"
	DefaultProtocol          = GIT
)

Cloning protocols

func NewProtocol

func NewProtocol(protocol string) Protocol

NewProtocol returns a new protocol based on the passed string

Jump to

Keyboard shortcuts

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