auth

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 1 Imported by: ? 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

This section is empty.

Types

type CredentialType

type CredentialType int

CredentialType designates credentials for different connection edges.

const (
	// CredentialUnknown defines unknown connection edge.
	CredentialUnknown CredentialType = iota

	// CredentialClient defines m3db client to dbnode connection credentials.
	CredentialClient

	// CredentialPeer defines dbnode to dbnode connections credentials.
	CredentialPeer

	// CredentialEtcd defines dbnode to etcd connections credentials.
	CredentialEtcd
)

type InboundCredentials

type InboundCredentials struct {
	Username string
	Digest   string
	Type     CredentialType
}

InboundCredentials encapsulates credentials for inbound RPCs to dbnode.

func (*InboundCredentials) Validate

func (c *InboundCredentials) Validate() error

Validate validates the InboundCredentials.

type Mode

type Mode int

Mode designates a type of authentication.

const (
	// ModeUnknown is unknown authentication type case.
	ModeUnknown Mode = iota

	// ModeNoAuth is no authentication type case.
	ModeNoAuth

	// ModeShadow mode runs authentication in shadow mode. Credentials will be passed
	// by respective peers/clients but will not be used to reject RPCs in case of auth failure.
	ModeShadow

	// ModeEnforced mode runs dbnode in enforced authentication mode. RPCs to dbnode will be rejected
	// if auth fails.
	ModeEnforced
)

type OutboundCredentials

type OutboundCredentials struct {
	Username string
	Password string
	Zone     string
	Type     CredentialType
}

OutboundCredentials encapsulates credentials for outbound RPCs from dbnode.

func (*OutboundCredentials) Validate

func (c *OutboundCredentials) Validate() error

Validate validates the OutboundCredentials.

Jump to

Keyboard shortcuts

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