user

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//MAPPING is the elastic mapping for a host
	MAPPING, _ = elastic.NewMapping(mappingString)
)

Functions

func Key

func Key(id string) datastore.Key

Key creates a Key suitable for getting, putting and deleting Users

Types

type Store

type Store interface {
	datastore.EntityStore
}

UserStore type for interacting with User persistent storage

func NewStore

func NewStore() Store

NewStore creates a user Store

type User

type User struct {
	Name     string // the unique identifier for a user
	Password string // no requirements on passwords yet
	datastore.VersionedEntity
}

User for the system???

func (*User) ValidEntity

func (u *User) ValidEntity() error

ValidEntity validates Host fields

Jump to

Keyboard shortcuts

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