toolregistry

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 11 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