versions

package
v0.0.0-...-86aec00 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanVersion

func CleanVersion(s string) string

func LoadChartFile

func LoadChartFile(filePath string) (chart.Chart, error)

Load helm Chart.yaml file from local filesystem into a chart.Chart struct

func PopulateSoftwareDependencies

func PopulateSoftwareDependencies(s3Api aws.S3Api, log *slog.Logger, topLevelSoftware *soft.Software, chart *chart.Chart, st soft.SoftwareType, filter filters.Filter) error

func PopulateTopLevelSoftware

func PopulateTopLevelSoftware(s3Api aws.S3Api, log *slog.Logger, topLevelSoftware *soft.Software, repoURL string, chartName string, filter filters.Filter) error

Types

type HelmRepoBackend

type HelmRepoBackend struct {
	ChartRepo *repo.ChartRepository
}

type RepoBackend

type RepoBackend interface {
	// contains filtered or unexported methods
}

type RepoBackendType

type RepoBackendType string
const (
	GitRepo RepoBackendType = "gitRepo"

	// Chart Hosted on Chart repository with proper index.yaml
	HelmRepo RepoBackendType = "helmRepo"

	// Chart Hosted on S3 Bucket with proper index.yaml
	S3HelmRepo RepoBackendType = "s3helmRepo"

	// Chart reprensented by a Chart.yaml hosted on the local file-system
	LocalRepo RepoBackendType = "localRepo"

	// When a chart.yaml references a dependency with a file//path/to/chart/directory/ like expression, the file
	// is therefore "local" to the remote git repo. This is not referencing a local git repo on your local desktop
	GitRepoLocal RepoBackendType = "gitRepoLocal"

	// Default timeout duration when calling external helm repositories
	DefaultTimeout time.Duration = time.Second * 15
)

Chart reprensented by a Chart.yaml hosted on a remote git repository

type S3HelmRepoBackend

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

Jump to

Keyboard shortcuts

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