netauth

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: GPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *container.C, modName, instName string) (module.Module, error)

New creates a new instance of the NetAuth module.

Types

type Auth

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

Auth binds all methods related to the NetAuth client library.

func (*Auth) AuthPlain

func (a *Auth) AuthPlain(username, password string) error

AuthPlain attempts straightforward authentication of the entity on the remote NetAuth server.

func (*Auth) Configure added in v0.9.0

func (a *Auth) Configure(inlineArgs []string, cfg *config.Map) error

func (*Auth) InstanceName

func (a *Auth) InstanceName() string

InstanceName returns the configured name for this instance of the plugin. Given the way that NetAuth works it doesn't really make sense to have more than one instance, but this is part of the API.

func (*Auth) Lookup

func (a *Auth) Lookup(ctx context.Context, username string) (string, bool, error)

Lookup requests the entity from the remote NetAuth server, potentially returning that the user does not exist at all.

func (*Auth) Name

func (a *Auth) Name() string

Name returns "auth.netauth" as the fixed module name.

Jump to

Keyboard shortcuts

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