Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelmServer ¶
type HelmServer struct {
*testserver.HTTPServer
}
HelmServer is a Helm repository server for testing purposes. It can serve repository indexes and charts over HTTP/S.
func NewTempHelmServer ¶
func NewTempHelmServer() (*HelmServer, error)
NewTempHelmServer returns a HTTP HelmServer with a newly created temp dir as repository docroot.
func (*HelmServer) GenerateIndex ¶
func (s *HelmServer) GenerateIndex() error
GenerateIndex (re)generates the repository index.
func (*HelmServer) PackageChart ¶
func (s *HelmServer) PackageChart(path string) error
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 (*HelmServer) PackageChartWithVersion ¶
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 (*HelmServer) PackageSignedChartWithVersion ¶ added in v0.7.0
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.