repository

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOciRepositoryClient

func NewOciRepositoryClient(insecure bool) (repositoryClient, error)

Types

type Credentials

type Credentials map[string]RepositoryCreds

func ReadCredentials

func ReadCredentials(input io.Reader) (Credentials, error)

func (Credentials) FindForRepo

func (credentials Credentials) FindForRepo(
	repoURL *url.URL,
) (*RepositoryCreds, error)

type GitClientInterface

type GitClientInterface interface {
	Clone(
		ctx context.Context,
		repoURL string,
		config repository.CloneConfig,
	) (*git.Commit, error)
}

type GitRepoSubstitution added in v0.8.0

type GitRepoSubstitution struct {
	URL    string
	Branch string
	Path   string
}

func ParseGitRepoSubstitution added in v0.8.0

func ParseGitRepoSubstitution(subst string) (*GitRepoSubstitution, error)

type HelmReleaseExpander

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

func NewHelmReleaseExpander

func NewHelmReleaseExpander(
	ctx context.Context,
	logger *slog.Logger,
	gitClientFactory gitClientFactoryFunc,
	repoClientFactory repositoryClientFactoryFunc,
) *HelmReleaseExpander

func (*HelmReleaseExpander) ExpandHelmReleases

func (expander *HelmReleaseExpander) ExpandHelmReleases(
	credentials Credentials,
	input io.Reader,
	output io.Writer,
	kubeVersion *common.KubeVersion,
	apiVersions []string,
	gitRepoSubstitution *GitRepoSubstitution,
	maxExpansions int,
	chartCacheDir string,
	enableChartInMemoryCache bool,
) error

type RepositoryConfig

type RepositoryConfig struct {
}

type RepositoryCreds

type RepositoryCreds struct {
	Config      *RepositoryConfig `yaml:"config,omitempty"`
	Credentials map[string]string `yaml:"credentials"`
}

func (*RepositoryCreds) AsBytesMap

func (creds *RepositoryCreds) AsBytesMap() map[string][]byte

Jump to

Keyboard shortcuts

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