dbuser

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuffixA = "_a"
	SuffixB = "_b"
)

Variables

This section is empty.

Functions

func TrimUserSuffix added in v1.0.6

func TrimUserSuffix(in string) string

Types

type DBUser

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

func NewDBUser

func NewDBUser(baseName string) DBUser

func (DBUser) GetUserA

func (dbu DBUser) GetUserA() string

func (DBUser) GetUserB

func (dbu DBUser) GetUserB() string

func (DBUser) IsUserChanged

func (dbu DBUser) IsUserChanged(currentUserName string) bool

func (DBUser) NextUser

func (dbu DBUser) NextUser(curUser string) string

NextUser returns UserB unless the current user is already UserB. Invalid users also return UserB as the next user. This is to prevent changes in current behavior of the func.

Jump to

Keyboard shortcuts

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