auth

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicParams

type BasicParams struct {
	User string
	Pass string
}

type Oauth2Params

type Oauth2Params struct {
	Client   string
	Secret   string
	Scope    []string
	TokenUrl *url.URL
}

type ServicerBasic

type ServicerBasic struct {
	// contains filtered or unexported fields
}

func NewBasic

func NewBasic(p BasicParams) (s ServicerBasic, err error)

func (ServicerBasic) Do

func (s ServicerBasic) Do(ctx context.Context) string

type ServicerOauth2

type ServicerOauth2 struct {
	// contains filtered or unexported fields
}

func NewOauth2

func NewOauth2(p Oauth2Params, c *http.Client, s types.SecureStorager) (ss ServicerOauth2, err error)

func (ServicerOauth2) Do

func (s ServicerOauth2) Do(ctx context.Context) (t *oauth2.Token, err error)

Jump to

Keyboard shortcuts

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