user

package
v0.0.0-...-0026d00 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUser

type MockUser struct {
	mock.Mock
}

MockUser is an autogenerated mock type for the User type

func (*MockUser) GetPassword

func (_m *MockUser) GetPassword() string

GetPassword provides a mock function with given fields:

func (*MockUser) GetRoles

func (_m *MockUser) GetRoles() []string

GetRoles provides a mock function with given fields:

func (*MockUser) GetUsername

func (_m *MockUser) GetUsername() string

GetUsername provides a mock function with given fields:

func (*MockUser) IsCredentialsExpired

func (_m *MockUser) IsCredentialsExpired() bool

IsCredentialsExpired provides a mock function with given fields:

func (*MockUser) IsEnabled

func (_m *MockUser) IsEnabled() bool

IsEnabled provides a mock function with given fields:

func (*MockUser) IsExpired

func (_m *MockUser) IsExpired() bool

IsExpired provides a mock function with given fields:

func (*MockUser) IsLocked

func (_m *MockUser) IsLocked() bool

IsLocked provides a mock function with given fields:

type MockUserPasswordSalt

type MockUserPasswordSalt struct {
	mock.Mock
}

MockUserPasswordSalt is an autogenerated mock type for the UserPasswordSalt type

func (*MockUserPasswordSalt) GetPassword

func (_m *MockUserPasswordSalt) GetPassword() string

GetPassword provides a mock function with given fields:

func (*MockUserPasswordSalt) GetRoles

func (_m *MockUserPasswordSalt) GetRoles() []string

GetRoles provides a mock function with given fields:

func (*MockUserPasswordSalt) GetSalt

func (_m *MockUserPasswordSalt) GetSalt() string

GetSalt provides a mock function with given fields:

func (*MockUserPasswordSalt) GetUsername

func (_m *MockUserPasswordSalt) GetUsername() string

GetUsername provides a mock function with given fields:

func (*MockUserPasswordSalt) IsCredentialsExpired

func (_m *MockUserPasswordSalt) IsCredentialsExpired() bool

IsCredentialsExpired provides a mock function with given fields:

func (*MockUserPasswordSalt) IsEnabled

func (_m *MockUserPasswordSalt) IsEnabled() bool

IsEnabled provides a mock function with given fields:

func (*MockUserPasswordSalt) IsExpired

func (_m *MockUserPasswordSalt) IsExpired() bool

IsExpired provides a mock function with given fields:

func (*MockUserPasswordSalt) IsLocked

func (_m *MockUserPasswordSalt) IsLocked() bool

IsLocked provides a mock function with given fields:

func (*MockUserPasswordSalt) SaltPassword

func (_m *MockUserPasswordSalt) SaltPassword(password string, salt string) string

SaltPassword provides a mock function with given fields: password, salt

type PasswordSalt

type PasswordSalt interface {
	GetSalt() string
	SaltPassword(password string, salt string) string
}

PasswordSalt interface.

type User

type User interface {
	// GetRoles returns the roles granted to the user.
	GetRoles() []string

	// GetPassword returns the password used to authenticate the user
	GetPassword() string

	// GetUsername returns the username used to authenticate the user
	GetUsername() string

	// IsExpired indicates whether the user's account has expired.
	IsExpired() bool

	// IsLocked indicates whether the user is locked or unlocked.
	IsLocked() bool

	// IsEnabled indicates whether the user is enabled or disabled.
	IsEnabled() bool

	// IsCredentialsExpired indicates whether the user's credentials (password) has expired.
	IsCredentialsExpired() bool
}

User interface provides core user information

type UserPasswordSalt

type UserPasswordSalt interface {
	User
	PasswordSalt
}

UserPasswordSalt interface.

Jump to

Keyboard shortcuts

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