user

package
v0.0.0-...-4ad5d92 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(vars *util.CmdVars, svc *dynamodb.DynamoDB) bool

Add a user to the DynamoDB table

func Append

func Append(slice []wgtypes.PeerConfig, items ...wgtypes.PeerConfig) []wgtypes.PeerConfig

func Extend

func Extend(slice []wgtypes.PeerConfig, element wgtypes.PeerConfig) []wgtypes.PeerConfig

func List

func List(svc *dynamodb.DynamoDB)

List all users

func Remove

func Remove(vars *util.CmdVars, svc *dynamodb.DynamoDB) bool

Find a user and remove

func ResendEmail

func ResendEmail(vars *util.CmdVars, svc *dynamodb.DynamoDB) bool

Resend a user's email

func Sync

func Sync(vars *util.CmdVars, svc *dynamodb.DynamoDB) bool

func UpdateRoutes

func UpdateRoutes(vars *util.CmdVars, svc *dynamodb.DynamoDB) bool

Update a user's allowed routes

Types

type Rule

type Rule struct {
	Route string
	Proto string
	Port  int
}

type User

type User struct {
	Pubkey      string
	ProfileName string
	Privkey     string
	Psk         string
	Clientip    uint32
	Routesallow string
	Email       string
	Splittunnel bool
	Serial      int
}

func GetUser

func GetUser(pubKey string, svc *dynamodb.DynamoDB) User

Get user by primary key

Jump to

Keyboard shortcuts

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