Documentation
¶
Index ¶
- Variables
- type Repo
- func (g *Repo) CheckChartExist(chartName, version string) bool
- func (g *Repo) Clone() error
- func (g *Repo) Diff() error
- func (g *Repo) GetChartLastVersion(chartName string) (string, error)
- func (g *Repo) GetChartVersionUrl(chartName, chartVersion string) (url, pathType string, err error)
- func (g *Repo) ListCharts() (map[string]utils.CommonChartVersions, error)
- func (g *Repo) Pull() error
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 (*Repo) CheckChartExist ¶
func (*Repo) GetChartLastVersion ¶
GetChartLastVersion get git last version for chart the git file tree must like 'chart/{chartname}/{chartversion}'
func (*Repo) GetChartVersionUrl ¶
func (*Repo) ListCharts ¶
func (g *Repo) ListCharts() (map[string]utils.CommonChartVersions, error)
Click to show internal directories.
Click to hide internal directories.