-
Notifications
You must be signed in to change notification settings - Fork 787
/
interface.go
36 lines (35 loc) · 1.85 KB
/
interface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package helm
// Helmer defines common helm actions used within Jenkins X
//go:generate pegomock generate github.com/jenkins-x/jx/v2/pkg/helm Helmer -o mocks/helmer.go
type Helmer interface {
SetCWD(dir string)
HelmBinary() string
SetHelmBinary(binary string)
Init(clientOnly bool, serviceAccount string, tillerNamespace string, upgrade bool) error
AddRepo(repo, URL, username, password string) error
RemoveRepo(repo string) error
ListRepos() (map[string]string, error)
UpdateRepo() error
IsRepoMissing(URL string) (bool, string, error)
RemoveRequirementsLock() error
BuildDependency() error
InstallChart(chart string, releaseName string, ns string, version string, timeout int,
values []string, valueStrings []string, valueFiles []string, repo string, username string, password string) error
UpgradeChart(chart string, releaseName string, ns string, version string, install bool, timeout int, force bool, wait bool,
values []string, valueStrings []string, valueFiles []string, repo string, username string, password string) error
FetchChart(chart string, version string, untar bool, untardir string, repo string, username string,
password string) error
DeleteRelease(ns string, releaseName string, purge bool) error
ListReleases(ns string) (map[string]ReleaseSummary, []string, error)
FindChart() (string, error)
PackageChart() error
StatusRelease(ns string, releaseName string) error
StatusReleaseWithOutput(ns string, releaseName string, format string) (string, error)
Lint(valuesFiles []string) (string, error)
Version(tls bool) (string, error)
SearchCharts(filter string, allVersions bool) ([]ChartSummary, error)
SetHost(host string)
Env() map[string]string
DecryptSecrets(location string) error
Template(chartDir string, releaseName string, ns string, outputDir string, upgrade bool, values []string, valueStrings []string, valueFiles []string) error
}