config

package
v2.0.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package config provides utility methods related to Notation config.json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRegistryInsecure

func IsRegistryInsecure(target string) bool

IsRegistryInsecure checks whether a registry is in the list of insecure registries under Notation's config file.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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