auth

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APITokenAuth

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

func NewAPITokenAuth

func NewAPITokenAuth(token, xFolderID string) *APITokenAuth

func (*APITokenAuth) Auth

func (a *APITokenAuth) Auth(ctx context.Context) (context.Context, error)

type Authable

type Authable interface {
	Auth(ctx context.Context) (context.Context, error)
}

type GetIamTokenFunc

type GetIamTokenFunc func() (string, error)

type IAMTokenAuth

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

func NewIAMTokenAuth

func NewIAMTokenAuth(getIAMTokenFunc GetIamTokenFunc, xFolderID string) (*IAMTokenAuth, error)

func (*IAMTokenAuth) Auth

func (a *IAMTokenAuth) Auth(ctx context.Context) (context.Context, error)

Jump to

Keyboard shortcuts

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