template

package
v0.0.0-...-cb48051 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHelmRepo

func IsHelmRepo(repo string) (bool, error)

Types

type ITemplateRepo

type ITemplateRepo interface {
	GetTemplate(
		repo string,
		path string,
		version string,
		resolvedVersion string,
		source cyclopsv1alpha1.TemplateSourceType,
	) (*models.Template, error)
	GetTemplateInitialValues(
		repo string,
		path string,
		version string,
		source cyclopsv1alpha1.TemplateSourceType,
	) (map[string]interface{}, error)
	ReturnCache() *ristretto.Cache
}

func NewRepo

func NewRepo(credResolver auth.TemplatesResolver, tc templateCache) ITemplateRepo

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func (Repo) GetTemplate

func (r Repo) GetTemplate(
	repo string,
	path string,
	version string,
	resolvedVersion string,
	source cyclopsv1alpha1.TemplateSourceType,
) (*models.Template, error)

func (Repo) GetTemplateInitialValues

func (r Repo) GetTemplateInitialValues(
	repo string,
	path string,
	version string,
	source cyclopsv1alpha1.TemplateSourceType,
) (map[string]interface{}, error)

func (Repo) LoadHelmChart

func (r Repo) LoadHelmChart(repo, chart, version, resolvedVersion string) (*models.Template, error)

func (Repo) LoadHelmChartInitialValues

func (r Repo) LoadHelmChartInitialValues(repo, chart, version string) (map[string]interface{}, error)

func (Repo) LoadInitialTemplateValues

func (r Repo) LoadInitialTemplateValues(repoURL, path, commit string) (map[string]interface{}, error)

func (Repo) LoadOCIHelmChart

func (r Repo) LoadOCIHelmChart(repo, chart, version, resolvedVersion string) (*models.Template, error)

func (Repo) LoadOCIHelmChartInitialValues

func (r Repo) LoadOCIHelmChartInitialValues(repo, chart, version string) (map[string]interface{}, error)

func (Repo) LoadTemplate

func (r Repo) LoadTemplate(repoURL, path, commit, resolvedVersion string) (*models.Template, error)

func (Repo) ReturnCache

func (r Repo) ReturnCache() *ristretto.Cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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