helmtestserver

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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