toolregistry

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 10 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

func InitDefaultRegistry

func InitDefaultRegistry(binDir string, logger *zap.Logger) error

InitDefaultRegistry initializes the default registry. This also preloads the pre-installed tools in the binDir.

Types

type Registry

type Registry interface {
	Kubectl(ctx context.Context, version string) (string, bool, error)
	Kustomize(ctx context.Context, version string) (string, bool, error)
	Helm(ctx context.Context, version string) (string, bool, error)
	Terraform(ctx context.Context, version string) (string, bool, error)
}

Registry provides functions to get path to the needed tools.

func DefaultRegistry

func DefaultRegistry() Registry

DefaultRegistry returns the shared registry.

Jump to

Keyboard shortcuts

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