toolregistry

package
v0.51.2 Latest Latest
Warning

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

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

Documentation

Overview

Package toolregistry installs and manages the needed tools such as kubectl, helm... for executing tasks in pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

Registry provides functions to get path to the needed tools.

func NewRegistry

func NewRegistry(client client) *Registry

func (*Registry) Helm

func (r *Registry) Helm(ctx context.Context, version string) (string, error)

Helm installs the helm tool with the given version and return the path to the installed binary. If the version is empty, the default version will be used.

func (*Registry) Kubectl

func (r *Registry) Kubectl(ctx context.Context, version string) (string, error)

Kubectl installs the kubectl tool with the given version and return the path to the installed binary. If the version is empty, the default version will be used.

func (*Registry) Kustomize

func (r *Registry) Kustomize(ctx context.Context, version string) (string, error)

Kustringize installs the kustomize tool with the given version and return the path to the installed binary. If the version is empty, the default version will be used.

Jump to

Keyboard shortcuts

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