login

package
v0.0.0-...-7f2378c Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package login defines helpers functions used to login to OCI registries using different authentication mechanisms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformAuthsFromConfig

func PerformAuthsFromConfig(ctx context.Context, client *auth.Client, credStore credentials.Store, registries []string) error

PerformAuthsFromConfig logins to the specified registries and stores credentials in local stores.

func PerformAuthsFromConfigWithMap

func PerformAuthsFromConfigWithMap(ctx context.Context, client *auth.Client, credStore credentials.Store, registrySet map[string]bool) error

PerformAuthsFromConfigWithMap logins to the specified registry set and stores credentials in local stores.

func PerformBasicAuthsLogin

func PerformBasicAuthsLogin(
	ctx context.Context, client *auth.Client, credStore credentials.Store, auths []config.BasicAuth, registrySet map[string]bool,
) error

PerformBasicAuthsLogin logins to the registries using basic auth and stores the credentials in a local store.

func PerformGcpAuthsLogin

func PerformGcpAuthsLogin(
	ctx context.Context, auths []config.GcpAuth, registrySet map[string]bool,
) error

PerformGcpAuthsLogin logins to the registries.

func PerformOauthAuths

func PerformOauthAuths(ctx context.Context, auths []config.OauthAuth, registrySet map[string]bool) error

PerformOauthAuths logins to the registries using oauth client credentials and stores the credentials in a local store.

Types

This section is empty.

Directories

Path Synopsis
Package basic implements basic auth login functionality.
Package basic implements basic auth login functionality.
Package gcp implements gcp credentials login functionality.
Package gcp implements gcp credentials login functionality.
Package oauth implements oauth client credentials login functionality.
Package oauth implements oauth client credentials login functionality.

Jump to

Keyboard shortcuts

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