libhelm

package module
v0.0.0-...-4560a53 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 11 Imported by: 9

README

LibHelm

A helm abstraction for Portainer.

Installation

go get github.com/portainer/portainer/pkg/libhelm

Tests

Integration
INTEGRATION_TEST=1 go test binary/*.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateHelmRepositoryURL

func ValidateHelmRepositoryURL(repoUrl string, client *http.Client) error

Types

type HelmConfig

type HelmConfig struct {
	BinaryPath string `example:"/portainer/dist"`
}

HelmConfig is a struct that holds the configuration for the Helm package manager

type HelmPackageManager

type HelmPackageManager interface {
	Show(showOpts options.ShowOptions) ([]byte, error)
	SearchRepo(searchRepoOpts options.SearchRepoOptions) ([]byte, error)
	Get(getOpts options.GetOptions) ([]byte, error)
	List(listOpts options.ListOptions) ([]release.ReleaseElement, error)
	Install(installOpts options.InstallOptions) (*release.Release, error)
	Uninstall(uninstallOpts options.UninstallOptions) error
}

HelmPackageManager represents a service that interfaces with Helm

func NewHelmPackageManager

func NewHelmPackageManager(config HelmConfig) (HelmPackageManager, error)

NewHelmPackageManager returns a new instance of HelmPackageManager based on HelmConfig

Directories

Path Synopsis
Package time contains a wrapper for time.Time in the standard library and associated methods.
Package time contains a wrapper for time.Time in the standard library and associated methods.

Jump to

Keyboard shortcuts

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