source

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package source obtains charts from a directory, a .tgz, an HTTP Helm repository or an OCI registry. Remote charts are loaded from memory and optionally cached as .tgz files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelmRepositoryConfig

func HelmRepositoryConfig() string

HelmRepositoryConfig is the repositories.yaml that `helm repo add` writes.

Types

type Loader

type Loader struct {
	CacheDir string
	NoCache  bool
	HTTP     *http.Client
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(cacheDir string, noCache bool) *Loader

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, ref Ref) (*chart.Chart, error)

func (*Loader) ResolveAlias

func (l *Loader) ResolveAlias(ref Ref) (Ref, error)

ResolveAlias turns "repo/chart" into the repository registered with `helm repo add`, the way `helm template repo/chart` does. Local paths and oci:// references are returned unchanged; an existing local path wins.

type Ref

type Ref struct {
	Repo    string `json:"repo,omitempty"`
	Chart   string `json:"chart"`
	Version string `json:"version,omitempty"`
}

Ref identifies a chart. Repo is an HTTP(S) repository URL or an OCI registry path (with or without oci://, as Argo CD accepts both). With no Repo, Chart is a local directory, a local .tgz or an oci:// reference.

func (Ref) IsLocal

func (r Ref) IsLocal() bool

func (Ref) String

func (r Ref) String() string

func (Ref) WithVersion

func (r Ref) WithVersion(v string) Ref

Jump to

Keyboard shortcuts

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