shim

package
v0.0.0-...-2ad99af Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package shim implements the kubetest2 root command logic, "shimming" to deployer specific binaries

Index

Constants

View Source
const BinaryName = "kubetest2"

BinaryName is the name of the binary

Variables

View Source
var GitTag string

GitTag captures the git commit SHA of the build. This gets printed by all the deployers and testers

Functions

func FindDeployer

func FindDeployer(name string) (path string, err error)

FindDeployer locates the binary implementing the named deployer TODO(bentheelder): move this to another package?

func FindDeployers

func FindDeployers() map[string]string

FindDeployers looks for all deployers in PATH, returning a map of the deployer name to the first matching binary found in path

func FindTester

func FindTester(name string) (path string, err error)

FindTester locates the binary implementing the named tester TODO(bentheelder): move this to another package?

func FindTesters

func FindTesters() map[string]string

FindTesters looks for all testers in PATH, returning a map of the tester name to the first matching binary found in path

func Main

func Main()

Main implements the kubetest2 root binary entrypoint

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns a new cobra.Command for building the base image

func Run

func Run() error

Run instantiates and executes the shim cobra command, returning the result

Types

This section is empty.

Jump to

Keyboard shortcuts

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