templaterepo

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ChartfileName is the default Chart file name.
	ChartfileName = "Chart.yaml"
	// ValuesfileName is the default values file name.
	ValuesfileName = "values.yaml"
	// SchemafileName is the default values schema file name.
	SchemafileName = "values.schema.json"
	// TemplatesDir is the relative directory name for templates.
	TemplatesDir = "templates"
	// ChartsDir is the relative directory name for charts dependencies.
	ChartsDir = "charts"
	// TemplatesTestsDir is the relative directory name for tests.
	TemplatesTestsDir = TemplatesDir + sep + "tests"
	// IgnorefileName is the name of the Helm ignore file.
	IgnorefileName = ".helmignore"
	// IngressFileName is the name of the example ingress file.
	IngressFileName = TemplatesDir + sep + "ingress.yaml"
	// DeploymentName is the name of the example deployment file.
	DeploymentName = TemplatesDir + sep + "deployment.yaml"
	// ServiceName is the name of the example service file.
	ServiceName = TemplatesDir + sep + "service.yaml"
	// ServiceAccountName is the name of the example serviceaccount file.
	ServiceAccountName = TemplatesDir + sep + "serviceaccount.yaml"
	// HorizontalPodAutoscalerName is the name of the example hpa file.
	HorizontalPodAutoscalerName = TemplatesDir + sep + "hpa.yaml"
	// NotesName is the name of the example NOTES.txt file.
	NotesName = TemplatesDir + sep + "NOTES.txt"
	// HelpersName is the name of the example helpers file.
	HelpersName = TemplatesDir + sep + "_helpers.tpl"
	// TestConnectionName is the name of the example test file.
	TestConnectionName = TemplatesTestsDir + sep + "test-connection.yaml"
)

Variables

This section is empty.

Functions

func ChartSerialize

func ChartSerialize(c *chart.Chart, out io.Writer) error

func Register

func Register(tp string, constructor Constructor)

func WriteTarContents

func WriteTarContents(out *tar.Writer, c *chart.Chart, prefix string) error

Types

type ChartWithTime

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

type Constructor

type Constructor func(repo templaterepo.Repo) (TemplateRepo, error)

type RepoWithCache

type RepoWithCache struct {
	TemplateRepo
	// contains filtered or unexported fields
}

func (*RepoWithCache) GetChart

func (r *RepoWithCache) GetChart(name string, version string, lastSyncAt time.Time) (*chart.Chart, error)

type TemplateRepo

type TemplateRepo interface {
	GetLoc() string
	UploadChart(chart *chart.Chart) error
	DeleteChart(name string, version string) error
	ExistChart(name string, version string) (bool, error)
	GetChart(name string, version string, lastSyncAt time.Time) (*chart.Chart, error)
}

func NewRepo

func NewRepo(config templaterepo.Repo) (TemplateRepo, error)

func NewRepoWithCache

func NewRepoWithCache(repo TemplateRepo) TemplateRepo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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