package
Version:
v0.5.3-rc.1
Opens a new window with list of versions in this module.
Published: Mar 2, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package testenv contains common helpers for tests
func AssetPath(p ...string) string
AssetPath returns the path to an asset
func ExamplePath(p ...string) string
ExamplePath returns the path to the fleet examples
func RandomFilename(filename string) string
RandomName returns a slightly random name, so temporary assets don't conflict
Root returns the relative path to the repositories root
SetRoot set the root path for the other relative paths, e.g. AssetPath.
Usually set to point to the repositories root.
func Template(output string, tmplPath string, data any) error
Template loads a gotemplate from a file and writes templated output to
another file, preferably in a temp dir
type Env struct {
Kubectl kubectl.Command
Fleet string
Downstream string
Namespace string
}
Source Files
¶
Directories
¶
|
|
|
|
Package kubectl is a wrapper around the kubectl CLI
|
Package kubectl is a wrapper around the kubectl CLI |
Click to show internal directories.
Click to hide internal directories.