configutil

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrKeyNotFound indicates that the signing key is not found.
	ErrKeyNotFound = errors.New("signing key not found")
)

Functions

func IsRegistryInsecure

func IsRegistryInsecure(target string) bool

IsRegistryInsecure checks whether the registry is in the list of insecure registries.

func LoadConfigOnce

func LoadConfigOnce() (*config.Config, error)

LoadConfigOnce returns the previously read config file. If previous config file does not exist, it reads the config from file or return a default config if not found. The returned config is only suitable for read only scenarios for short-lived processes.

func ResolveKey

func ResolveKey(name string) (config.KeySuite, error)

ResolveKey resolves the key by name. The default key is attempted if name is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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