util

package
v0.0.0-...-2413a57 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCLIRegistry

func CreateCLIRegistry(cmd *cobra.Command) (*containerdregistry.Registry, error)

This works in tandem with opm/index/cmd, which adds the relevant flags as persistent as part of the root command (cmd/root/cmd) initialization

func GetTLSOptions

func GetTLSOptions(cmd *cobra.Command) (bool, bool, error)

GetTLSOptions validates and returns TLS options set by opm flags

func OpenFileOrStdin

func OpenFileOrStdin(cmd *cobra.Command, args []string) (io.ReadCloser, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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