oauth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 7 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.CommonOptions) *cobra.Command

NewOauthCmd returns the oauth command.

Types

type RegistryOauthOptions

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

RegistryOauthOptions contains the options for the registry oauth command.

func (*RegistryOauthOptions) RunOauth

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

RunOauth implements the registry oauth command.

Jump to

Keyboard shortcuts

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