auth

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

func NewBasicAuth added in v0.7.0

func NewBasicAuth(username, password string) *BasicAuth

NewBasicAuth returns a new BasicAuth with the given username and password

func (*BasicAuth) Auth

func (a *BasicAuth) Auth() (transport.AuthMethod, error)

Auth return a transport.AuthMethod created from BasicAuth

Jump to

Keyboard shortcuts

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