git

package
v0.0.0-...-07069a1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitPathExistErr    = errors.New("this local path has git dir,can not use this path")
	GetPathNotExistErr = errors.New("this local path is not a git repo")
)

Functions

This section is empty.

Types

type Repo

type Repo struct {
	URL       string
	Username  string
	Password  string
	Token     string
	LocalPath string
	Branch    string

	RepoName        string
	InsecureSkipTLS bool
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(url, username, password, token, branch, localPath, repoName string, insecureSkipTLS bool) (*Repo, error)

func (*Repo) CheckChartExist

func (g *Repo) CheckChartExist(chartName, version string) bool

func (*Repo) Clone

func (g *Repo) Clone() error

func (*Repo) Diff

func (g *Repo) Diff() error

Diff can not use

func (*Repo) GetChartLastVersion

func (g *Repo) GetChartLastVersion(chartName string) (string, error)

GetChartLastVersion get git last version for chart the git file tree must like 'chart/{chartname}/{chartversion}'

func (*Repo) GetChartVersionUrl

func (g *Repo) GetChartVersionUrl(chartName, chartVersion string) (url, pathType string, err error)

func (*Repo) ListCharts

func (g *Repo) ListCharts() (map[string]utils.CommonChartVersions, error)

func (*Repo) Pull

func (g *Repo) Pull() error

Jump to

Keyboard shortcuts

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