oauth

package
v0.8.0-rc1 Latest Latest
Warning

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

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

Documentation

Overview

Package oauth defines the logic to authenticate against an OCI registry via OAuth2.0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOauthCmd

func NewOauthCmd(ctx context.Context, opt *options.Common) *cobra.Command

NewOauthCmd returns the oauth command.

Types

type RegistryOauthOptions

type RegistryOauthOptions struct {
	*options.Common
	Conf clientcredentials.Config
}

RegistryOauthOptions contains the options for the registry oauth command.

func (*RegistryOauthOptions) RunOAuth added in v0.6.0

func (o *RegistryOauthOptions) RunOAuth(ctx context.Context, args []string) error

RunOAuth executes the business logic for the oauth command.

Jump to

Keyboard shortcuts

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