util

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 8 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

type Anonymous added in v0.29.0

type Anonymous authn.AuthConfig

Anonymous is an authn.AuthConfig that always returns an anonymous authenticator. It is useful for registries that do not require authentication or when the credentials are not known. It implements authn.Keychain `Resolve` method and can be used as a keychain.

func (Anonymous) Resolve added in v0.29.0

func (a Anonymous) Resolve(_ authn.Resource) (authn.Authenticator, error)

Resolve implements authn.Keychain.

Jump to

Keyboard shortcuts

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