secret

package
v0.0.0-...-953cc36 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: NCSA Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = &secretConfig{
		done: make(chan struct{}),
	}
)

Config ...

Functions

func Hash

func Hash(username string) (accessKeyHash string, secretKeyHash string, err error)

Hash ...

func NewProfile

func NewProfile(opts ...auth.ProfileOption) (auth.Profile, error)

NewProfile ...

func Verify

func Verify(username, accessKeyHash, secretKeyHash string) (bool, error)

Verify ...

Types

type Profile

type Profile struct {
	*auth.ProfileBase
}

Profile ...

func (*Profile) Create

func (p *Profile) Create() error

Create ...

func (*Profile) Delete

func (p *Profile) Delete() error

Delete ...

func (*Profile) FindByEmail

func (p *Profile) FindByEmail() error

FindByEmail ...

func (*Profile) GetRole

func (p *Profile) GetRole() (acl.Role, error)

func (*Profile) Verify

func (p *Profile) Verify() (bool, error)

Verify ...

Jump to

Keyboard shortcuts

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