ociauth

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthOptn

func AuthOptn(ociAuth *authn.AuthConfig, reqAuthFile string) remote.Option

func ChooseAuthFile

func ChooseAuthFile(reqAuthFile string) string

ChooseAuthFile returns reqAuthFile if it is not empty, or else the default location of the OCI registry auth file.

func ConfigFileFromPath

func ConfigFileFromPath(path string) (*configfile.ConfigFile, error)

ConfigFileFromPath creates a configfile.Configfile object (part of docker/cli API) associated with the auth file at path.

func LoginAndStore

func LoginAndStore(registry, username, password string, insecure bool, reqAuthFile 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