model

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 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

type Org struct {
	OrgID   string
	OrgName string
}

type Permissions

type Permissions struct {
	Permissions []string
}

func (*Permissions) AppendPermissions

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

type ProjectOrgSearchResponse

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

type UserGrantSearchKey

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

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

type UserGrantSearchRequest

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

func (*UserGrantSearchRequest) EnsureLimit

func (r *UserGrantSearchRequest) EnsureLimit(limit uint64) error

func (*UserGrantSearchRequest) GetSearchQuery

type UserGrantSearchResponse

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

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
	AvatarURL        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