helmtestserver package - github.com/fluxcd/pkg/helmtestserver - Go Packages

This section is empty.

This section is empty.

This section is empty.

HelmServer is a Helm repository server for testing purposes. It can serve repository indexes and charts over HTTP/S.

func NewTempHelmServer() (*HelmServer, error)

NewTempHelmServer returns a HTTP HelmServer with a newly created temp dir as repository docroot.

func (s *HelmServer) GenerateIndex() error

GenerateIndex (re)generates the repository index.

PackageChart attempts to package the chart at the given path, to be served by the HelmServer. It returns an error in case of a packaging failure.

func (s *HelmServer) PackageChartWithVersion(path, version string) error

PackageChartWithVersion attempts to package the chart at the given path with the given version, to be served by the HelmServer. It returns an error in case of a packaging failure.

func (s *HelmServer) PackageSignedChartWithVersion(path, version, publicKeyPath string) error

PackageSignedChartWithVersion attempts to package the chart at the given path with the given version and sign it using an internally generated PGP keyring, to be served by the HelmServer. publicKeyPath is the path where the public key should be written to, which can be used to verify this chart. It returns an error in case of a packaging failure.