model

package
v0.108.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Org added in v0.20.0

type Org struct {
	OrgID   string
	OrgName string
}

type Permissions added in v0.20.0

type Permissions struct {
	Permissions []string
}

func (*Permissions) AppendPermissions added in v0.20.0

func (p *Permissions) AppendPermissions(ctxID string, permissions ...string)

type ProjectOrgSearchResponse added in v0.20.0

type ProjectOrgSearchResponse struct {
	Offset      uint64
	Limit       uint64
	TotalResult uint64
	Result      []*Org
}

type UserGrant

type UserGrant struct {
	es_models.ObjectRoot

	State     UserGrantState
	UserID    string
	ProjectID string
	GrantID   string
	RoleKeys  []string
}

func (*UserGrant) IsActive

func (u *UserGrant) IsActive() bool

func (*UserGrant) IsInactive

func (u *UserGrant) IsInactive() bool

func (*UserGrant) IsValid

func (u *UserGrant) IsValid() bool

func (*UserGrant) RemoveRoleKeyIfExisting added in v0.32.0

func (u *UserGrant) RemoveRoleKeyIfExisting(key string) bool

func (*UserGrant) RemoveRoleKeysIfExisting added in v0.32.0

func (u *UserGrant) RemoveRoleKeysIfExisting(keys []string) bool

type UserGrantSearchKey added in v0.12.0

type UserGrantSearchKey int32
const (
	UserGrantSearchKeyUnspecified UserGrantSearchKey = iota
	UserGrantSearchKeyUserID
	UserGrantSearchKeyProjectID
	UserGrantSearchKeyResourceOwner
	UserGrantSearchKeyState
	UserGrantSearchKeyGrantID
	UserGrantSearchKeyOrgName
	UserGrantSearchKeyRoleKey
	UserGrantSearchKeyID
	UserGrantSearchKeyUserName
	UserGrantSearchKeyFirstName
	UserGrantSearchKeyLastName
	UserGrantSearchKeyEmail
	UserGrantSearchKeyOrgDomain
	UserGrantSearchKeyProjectName
	UserGrantSearchKeyDisplayName
	UserGrantSearchKeyWithGranted
)

type UserGrantSearchQuery added in v0.12.0

type UserGrantSearchQuery struct {
	Key    UserGrantSearchKey
	Method model.SearchMethod
	Value  interface{}
}

type UserGrantSearchRequest added in v0.12.0

type UserGrantSearchRequest struct {
	Offset        uint64
	Limit         uint64
	SortingColumn UserGrantSearchKey
	Asc           bool
	Queries       []*UserGrantSearchQuery
}

func (*UserGrantSearchRequest) AppendMyOrgQuery added in v0.12.0

func (r *UserGrantSearchRequest) AppendMyOrgQuery(orgID string)

func (*UserGrantSearchRequest) AppendProjectIDQuery added in v0.45.0

func (r *UserGrantSearchRequest) AppendProjectIDQuery(projectID string)

func (*UserGrantSearchRequest) EnsureLimit added in v0.12.0

func (r *UserGrantSearchRequest) EnsureLimit(limit uint64)

func (*UserGrantSearchRequest) GetSearchQuery added in v0.62.0

type UserGrantSearchResponse added in v0.12.0

type UserGrantSearchResponse struct {
	Offset      uint64
	Limit       uint64
	TotalResult uint64
	Result      []*UserGrantView
	Sequence    uint64
	Timestamp   time.Time
}

type UserGrantState

type UserGrantState int32
const (
	UserGrantStateActive UserGrantState = iota
	UserGrantStateInactive
	UserGrantStateRemoved
)

type UserGrantView added in v0.12.0

type UserGrantView struct {
	ID               string
	ResourceOwner    string
	UserID           string
	ProjectID        string
	GrantID          string
	UserName         string
	FirstName        string
	LastName         string
	DisplayName      string
	Email            string
	ProjectName      string
	OrgName          string
	OrgPrimaryDomain string
	RoleKeys         []string

	CreationDate time.Time
	ChangeDate   time.Time
	State        UserGrantState

	Sequence uint64
}

Jump to

Keyboard shortcuts

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