graphrbac

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateUser

func MigrateUser(db *gorm.DB) error

func Users

func Users(auth autorest.Authorizer, db *database.Database, log hclog.Logger, gConfig interface{}) error

Types

type User

type User struct {
	ID                uint `gorm:"primarykey"`
	AccountID         string
	ImmutableID       *string
	UsageLocation     *string
	GivenName         *string
	Surname           *string
	UserType          string
	AccountEnabled    *bool
	DisplayName       *string
	UserPrincipalName *string
	MailNickname      *string
	Mail              *string
	SignInNames       []*UserSignInName `gorm:"constraint:OnDelete:CASCADE;"`
	ObjectID          *string

	ObjectType string
}

func (User) TableName

func (User) TableName() string

type UserConfig

type UserConfig struct {
	Filter string
}

type UserSignInName

type UserSignInName struct {
	ID     uint `gorm:"primarykey"`
	UserID uint
	Type   *string
	Value  *string
}

func (UserSignInName) TableName

func (UserSignInName) TableName() string

Jump to

Keyboard shortcuts

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