auth

package
v0.0.0-...-84ddfae Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity = config.Identity

type IdentityStore

type IdentityStore interface {
	Add(identity *Identity) error

	// Returns an error e such that "github.com/go-mod-proxy/go-mod-proxy/internal/errors".ErrorIsCode(e, NotFound)
	// is true if no identity with the specified email exists.
	FindByGCEInstanceIdentityBindingEmail(email string) (*Identity, error)

	// Returns an error e such that "github.com/go-mod-proxy/go-mod-proxy/internal/errors".ErrorIsCode(e, NotFound)
	// is true if no identity with the specified name exists.
	FindByName(name string) (*Identity, error)
}

func NewInMemoryIdentityStore

func NewInMemoryIdentityStore() (IdentityStore, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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