Help us shape the future of Go! Take the 2026 Go Developer Survey

authutils

package
v1.106.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAuthFields added in v1.92.0

func ClearAuthFields(cfg config.Config, hostname string) error

ClearAuthFields removes all authentication-related config entries for the given hostname. It does not touch non-auth settings such as git_protocol, api_host, or api_protocol.

Types

type GitCredentialFlow

type GitCredentialFlow struct {
	Executable string
	// contains filtered or unexported fields
}

func (*GitCredentialFlow) Prompt

func (gc *GitCredentialFlow) Prompt(ctx context.Context, io *iostreams.IOStreams, hostname, protocol string) error

func (*GitCredentialFlow) Setup

func (gc *GitCredentialFlow) Setup(hostname, protocol, username, authToken string) error

func (*GitCredentialFlow) ShouldSetup

func (gc *GitCredentialFlow) ShouldSetup() bool

Jump to

Keyboard shortcuts

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