registry

package
v0.0.0-...-a91455d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User interface {
	GetName() string
	GetMaxEnrollments() int
	GetAttribute(name string) (*api.Attribute, error)
	GetAttributes(attrNames []string) ([]api.Attribute, error)
	GetFailedLoginAttempts() int
	IncrementIncorrectPasswordAttempts() error
	Login(password string, caMaxEnrollment int) error
	LoginComplete() error
}

User is the user interface used by rksync-ca server

type UserInfo

type UserInfo struct {
	Name                      string
	Pass                      string
	Attributes                []api.Attribute
	State                     int
	MaxEnrollments            int
	IncorrectPasswordAttempts int
}

UserInfo contains information about a user

type UserRegistry

type UserRegistry interface {
	GetUser(id string, attrs []string) (User, error)
	InsertUser(user *UserInfo) error
	UpdateUser(user *UserInfo, updatePass bool) error
	DeleteUser(id string) (User, error)
}

UserRegistry is the API for retreiving users

Jump to

Keyboard shortcuts

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