charts

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RepoTypeNotSupportErr = errors.New("repo type not support")
)

Functions

This section is empty.

Types

type ChartRepo

type ChartRepo struct {
	Name            string
	Type            string
	URL             string
	Username        string
	Password        string
	Token           string
	Branch          string
	InsecureSkipTLS bool
	Period          int
	// the default local cache , all repo will same
	LocalCache string
	// the cert not support current
	Cert       []byte
	RootCA     []byte
	PrivateKey []byte
	Operation  ChartRepoInterface
	CancelChan chan int
}

func NewChartRepo

func NewChartRepo(name, repoType, url, username, password, token, branch, localCache string, insecureSkipTLS bool, period int) (*ChartRepo, error)

func (*ChartRepo) Close

func (c *ChartRepo) Close()

func (*ChartRepo) StartTimerJobs

func (c *ChartRepo) StartTimerJobs(callbackFunc func(chart *utils.CommonChartVersion, err error))

type ChartRepoInterface

type ChartRepoInterface interface {
	GetChartLastVersion(chartName string) (string, error)
	GetChartVersionUrl(chartName, chartVersion string) (url, pathType string, err error)
	CheckChartExist(chartName, version string) bool
	ListCharts() (map[string]utils.CommonChartVersions, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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