Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
Config represent the input parameters that New takes to produce a valid helmbinary Service.
type Interface ¶
type Interface interface {
Pull(context.Context, PullOptions) (tmpDir string, err error)
}
Interface represents the contract for the helmbinary service. Using this instead of a regular 'struct' makes mocking the service in tests much simpler.
type PullOptions ¶
type PullOptions struct {
URL string
}
PullOptions are the parameters that the Pull method takes.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the object we'll hang the helmbinary methods on.
func (*Service) Pull ¶
Pull uses the helm binary to fetch a Chart and extract it to a temporary directory Why not just download it directly? There are actually a lot of little security details that go into unpacking this tarball. Checkout https://github.com/helm/helm/blob/master/pkg/chart/loader/archive.go#L101