util

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TempDirForObj added in v0.22.0

func TempDirForObj(dir string, obj client.Object) (string, error)

TempDirForObj creates a new temporary directory in the directory dir in the format of 'Kind-Namespace-Name-*', and returns the pathname of the new directory.

func TempPathForObj added in v0.22.0

func TempPathForObj(dir, suffix string, obj client.Object) string

TempPathForObj creates a temporary file path in the format of '<dir>/Kind-Namespace-Name-<random bytes><suffix>'. If the given dir is empty, os.TempDir is used as a default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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