Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.