tool

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

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 CmdTemplateExecutor added in v3.2.0

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

func NewCmdTemplateExecutor added in v3.2.0

func NewCmdTemplateExecutor(exec ProcessExecutor) CmdTemplateExecutor

func (CmdTemplateExecutor) RunCommand added in v3.2.0

func (t CmdTemplateExecutor) RunCommand(cmdTemplate string, data interface{}) 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 added in v3.7.1

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, extraSetArgs []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) BuildDependenciesWithArgs added in v3.6.0

func (h Helm) BuildDependenciesWithArgs(chart string, extraArgs []string) error

func (Helm) DeleteRelease

func (h Helm) DeleteRelease(namespace string, release string)

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(namespace string, release string) error

func (Helm) Upgrade

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

func (Helm) Version

func (h Helm) Version() (string, error)

type Kubectl

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

func NewKubectl

func NewKubectl(exec exec.ProcessExecutor, timeout time.Duration) Kubectl

func (Kubectl) CreateNamespace

func (k Kubectl) CreateNamespace(namespace string) error

CreateNamespace creates a new namespace with the given name.

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

type ProcessExecutor added in v3.2.0

type ProcessExecutor interface {
	RunProcess(executable string, execArgs ...interface{}) error
}

Jump to

Keyboard shortcuts

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