credential

package
v3.0.0-rc39 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package credential handles the <username>:<password> pair a node is handed to create a user with, once it is alone in its own cluster and no longer reachable with the credentials of the cluster it left.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalid is returned for a credential that is not a
	// <username>:<password> pair with both halves set.
	ErrInvalid = errors.New("invalid credential")
)

Functions

func Parse

func Parse(s string) (username, password string, err error)

Parse splits a <username>:<password> credential.

The separator is the first colon, so a password is free to contain one. A username is not: it is the name of the usr object to create, and a colon is not valid there.

Types

This section is empty.

Jump to

Keyboard shortcuts

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