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

paths

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 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), "../../..")

	// BazelBinDir is the filesystem path to the bazel-bin directory within the
	// root of the repository.
	// This will not be accessible when running within the bazel sandbox, but
	// is useful for reading bazel files when running commands with `go test`.
	BazelBinDir = filepath.Join(ModuleRootDir, "bazel-bin")
)

Functions

func CRDDirectory

func CRDDirectory(t *testing.T) string

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