modelexts

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindUser

type FindUser struct {
	User         *models.User
	Bindings     []*models.Binding
	Applications []*UserApplicationRole `json:"applications"`
}

func (FindUser) Format

func (f FindUser) Format() map[string]interface{}

type OauthClient added in v1.0.0

type OauthClient struct {
	Client       *models.OauthClient
	OriginSecret string
}

func (*OauthClient) Format added in v1.0.0

func (oc *OauthClient) Format() map[string]interface{}

type Role

type Role struct {
	*models.RbacRole
	Scopes []*models.RbacScope `json:"scopes"`
}

type Roles

type Roles struct {
	Application *models.Application `json:"application"`
	Roles       []Role              `json:"roles"`
}

func (Roles) Format

func (roles Roles) Format() map[string]interface{}

type Scopes

type Scopes struct {
	Application *models.Application `json:"application"`
	Scopes      []*models.RbacScope `json:"scopes"`
}

func (Scopes) Format

func (scopes Scopes) Format() map[string]interface{}

type User

type User struct {
	User     *models.User
	Bindings []*models.Binding
	Role     string `json:"role"`
	AppID    string `json:"app_id"`
}

func (User) Format added in v0.5.0

func (u User) Format() map[string]interface{}

func (User) PublicInfo added in v1.3.3

func (u User) PublicInfo() map[string]interface{}

type UserApplicationRole

type UserApplicationRole struct {
	*models.Application
	Roles []*models.RbacRole `json:"roles"`
}

Jump to

Keyboard shortcuts

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