tool

package
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountValidator

type AccountValidator struct{}

func (AccountValidator) Validate

func (v AccountValidator) Validate(repoURL string, account string) error

type Git

type Git struct {
	// contains filtered or unexported fields
}

func NewGit

func NewGit(exec exec.ProcessExecutor) Git

func (Git) AddWorktree

func (g Git) AddWorktree(path string, ref string) error

func (Git) FileExistsOnBranch

func (g Git) FileExistsOnBranch(file string, remote string, branch string) bool

func (Git) GetUrlForRemote

func (g Git) GetUrlForRemote(remote string) (string, error)

func (Git) ListChangedFilesInDirs

func (g Git) ListChangedFilesInDirs(commit string, dirs ...string) ([]string, error)

func (Git) MergeBase

func (g Git) MergeBase(commit1 string, commit2 string) (string, error)

func (Git) RemoveWorktree

func (g Git) RemoveWorktree(path string) error

func (Git) Show

func (g Git) Show(file string, remote string, branch string) (string, error)

func (Git) ValidateRepository

func (g Git) ValidateRepository() error

type Helm

type Helm struct {
	// contains filtered or unexported fields
}

func NewHelm

func NewHelm(exec exec.ProcessExecutor, extraArgs []string) Helm

func (Helm) AddRepo

func (h Helm) AddRepo(name string, url string, extraArgs []string) error

func (Helm) BuildDependencies

func (h Helm) BuildDependencies(chart string) error

func (Helm) DeleteRelease

func (h Helm) DeleteRelease(release string)

func (Helm) Init

func (h Helm) Init() error

func (Helm) InstallWithValues

func (h Helm) InstallWithValues(chart string, valuesFile string, namespace string, release string) error

func (Helm) LintWithValues

func (h Helm) LintWithValues(chart string, valuesFile string) error

func (Helm) Test

func (h Helm) Test(release string, cleanup bool) error

func (Helm) Upgrade

func (h Helm) Upgrade(chart string, release string) error

type Kubectl

type Kubectl struct {
	// contains filtered or unexported fields
}

func NewKubectl

func NewKubectl(exec exec.ProcessExecutor) Kubectl

func (Kubectl) DeleteNamespace

func (k Kubectl) DeleteNamespace(namespace string)

DeleteNamespace deletes the specified namespace. If the namespace does not terminate within 120s, pods running in the namespace and, eventually, the namespace itself are force-deleted.

func (Kubectl) DescribePod

func (k Kubectl) DescribePod(namespace string, pod string) error

func (Kubectl) GetContainers

func (k Kubectl) GetContainers(namespace string, pod string) ([]string, error)

func (Kubectl) GetEvents

func (k Kubectl) GetEvents(namespace string) error

func (Kubectl) GetInitContainers

func (k Kubectl) GetInitContainers(namespace string, pod string) ([]string, error)

func (Kubectl) GetPods

func (k Kubectl) GetPods(args ...string) ([]string, error)

func (Kubectl) GetPodsforDeployment

func (k Kubectl) GetPodsforDeployment(namespace string, deployment string) ([]string, error)

func (Kubectl) Logs

func (k Kubectl) Logs(namespace string, pod string, container string) error

func (Kubectl) WaitForDeployments

func (k Kubectl) WaitForDeployments(namespace string, selector string) error

type Linter

type Linter struct {
	// contains filtered or unexported fields
}

func NewLinter

func NewLinter(exec exec.ProcessExecutor) Linter

func (Linter) Yamale

func (l Linter) Yamale(yamlFile string, schemaFile string) error

func (Linter) YamlLint

func (l Linter) YamlLint(yamlFile string, configFile string) error

Jump to

Keyboard shortcuts

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