Help us shape the future of Go! Take the 2026 Go Developer Survey

paths

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ModuleRootDir is the filesystem path to the root of the repository.
	ModuleRootDir = filepath.Join(filepath.Dir(b), "../../..")

	// BinDir is the filesystem path of the bin directory which is populated using
	// Makefile commands
	// TODO: the BINDIR is configurable in make but is hardcoded here. It might be nice
	// to detect the BINDIR here (`make print-bindir`?)
	BinDir = filepath.Join(ModuleRootDir, "_bin")

	// BinToolsDir is the filesystem path of the _bin/tools directory which can for
	// example be populated by `make test`.
	BinToolsDir = filepath.Join(BinDir, "tools")

	// BinCRDDir is the filesystem path of the CRD yaml
	BinCRDDir = filepath.Join(ModuleRootDir, "deploy", "crds")
)

Functions

func CRDDirectory

func CRDDirectory() (string, error)

CRDDirectory returns the directory containing CRDs, if it can be found.

func PathForCRD

func PathForCRD(t *testing.T, name string) string

PathForCRD attempts to find a path to the named CRD. The 'name' is the name of the resource contained within the CRD as denoted by the filename, e.g., 'foobar' would find a CRD with a filename containing the word 'foobar'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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