Documentation ¶
Index ¶
- Variables
- type AppRolePolicyOrder
- type AppRolePolicyOrderField
- type AssignRoleUserInput
- type EnableDirectoryInput
- type FileIdentityForApp
- type GrantInput
- type Mfa
- type OrgFileIdentity
- type OrgRoleUserOrder
- type OrgRoleUserOrderField
- type OrgUserOrder
- type OrgUserOrderField
- type OrgUserPreferenceInput
- type TreeAction
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAppRolePolicyOrderField = []AppRolePolicyOrderField{ AppRolePolicyOrderFieldCreatedAt, }
View Source
var AllOrgRoleUserOrderField = []OrgRoleUserOrderField{ OrgRoleUserOrderFieldCreatedAt, }
View Source
var AllOrgUserOrderField = []OrgUserOrderField{ OrgUserOrderFieldCreatedAt, }
View Source
var AllTreeAction = []TreeAction{ TreeActionChild, TreeActionUp, TreeActionDown, }
Functions ¶
This section is empty.
Types ¶
type AppRolePolicyOrder ¶
type AppRolePolicyOrder struct { // The ordering direction. Direction entgql.OrderDirection `json:"direction"` // The field by which to order AppRolePolicies. Field AppRolePolicyOrderField `json:"field"` }
Ordering options for AppRolePolicy connections
type AppRolePolicyOrderField ¶
type AppRolePolicyOrderField string
Properties by which AppRolePolicy connections can be ordered.
const (
AppRolePolicyOrderFieldCreatedAt AppRolePolicyOrderField = "createdAt"
)
func (AppRolePolicyOrderField) IsValid ¶
func (e AppRolePolicyOrderField) IsValid() bool
func (AppRolePolicyOrderField) MarshalGQL ¶
func (e AppRolePolicyOrderField) MarshalGQL(w io.Writer)
func (AppRolePolicyOrderField) String ¶
func (e AppRolePolicyOrderField) String() string
func (*AppRolePolicyOrderField) UnmarshalGQL ¶
func (e *AppRolePolicyOrderField) UnmarshalGQL(v interface{}) error
type AssignRoleUserInput ¶
type EnableDirectoryInput ¶
type FileIdentityForApp ¶
type FileIdentityForApp struct { ID int `json:"id"` TenantID int `json:"tenantID"` AccessKeyID string `json:"accessKeyID"` AccessKeySecret string `json:"accessKeySecret"` // 角色的资源名称(ARN),用于STS RoleArn string `json:"roleArn"` // 指定返回的STS令牌的权限的策略 Policy *string `json:"policy,omitempty"` // STS令牌的有效期,默认3600s DurationSeconds *int `json:"durationSeconds,omitempty"` // 租户默认的凭证 IsDefault bool `json:"isDefault"` Source *ent.FileSource `json:"source"` }
内部调用fileIdentity
func (FileIdentityForApp) IsNode ¶
func (FileIdentityForApp) IsNode()
type GrantInput ¶
type OrgFileIdentity ¶
type OrgFileIdentity struct { ID int `json:"id"` CreatedBy int `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy *int `json:"updatedBy,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // 组织ID TenantID int `json:"tenantID"` // 文件来源ID FileSourceID int `json:"fileSourceID"` // 租户默认的凭证 IsDefault bool `json:"isDefault"` // 备注 Comments *string `json:"comments,omitempty"` Source *ent.FileSource `json:"source"` }
业务调用的fileIdentity
type OrgRoleUserOrder ¶
type OrgRoleUserOrder struct { // The ordering direction. Direction entgql.OrderDirection `json:"direction"` // The field by which to order OrgRoleUsers. Field OrgRoleUserOrderField `json:"field"` }
Ordering options for OrgRoleUser connections
type OrgRoleUserOrderField ¶
type OrgRoleUserOrderField string
Properties by which OrgRoleUser connections can be ordered.
const (
OrgRoleUserOrderFieldCreatedAt OrgRoleUserOrderField = "createdAt"
)
func (OrgRoleUserOrderField) IsValid ¶
func (e OrgRoleUserOrderField) IsValid() bool
func (OrgRoleUserOrderField) MarshalGQL ¶
func (e OrgRoleUserOrderField) MarshalGQL(w io.Writer)
func (OrgRoleUserOrderField) String ¶
func (e OrgRoleUserOrderField) String() string
func (*OrgRoleUserOrderField) UnmarshalGQL ¶
func (e *OrgRoleUserOrderField) UnmarshalGQL(v interface{}) error
type OrgUserOrder ¶
type OrgUserOrder struct { // The ordering direction. Direction entgql.OrderDirection `json:"direction"` // The field by which to order OrgUsers. Field OrgUserOrderField `json:"field"` }
Ordering options for OrgUser connections
type OrgUserOrderField ¶
type OrgUserOrderField string
Properties by which OrgUser connections can be ordered.
const (
OrgUserOrderFieldCreatedAt OrgUserOrderField = "createdAt"
)
func (OrgUserOrderField) IsValid ¶
func (e OrgUserOrderField) IsValid() bool
func (OrgUserOrderField) MarshalGQL ¶
func (e OrgUserOrderField) MarshalGQL(w io.Writer)
func (OrgUserOrderField) String ¶
func (e OrgUserOrderField) String() string
func (*OrgUserOrderField) UnmarshalGQL ¶
func (e *OrgUserOrderField) UnmarshalGQL(v interface{}) error
type OrgUserPreferenceInput ¶
type TreeAction ¶
type TreeAction string
树操作类型
const ( // 作为子节点 TreeActionChild TreeAction = "child" // 上移 TreeActionUp TreeAction = "up" // 下移 TreeActionDown TreeAction = "down" )
func (TreeAction) IsValid ¶
func (e TreeAction) IsValid() bool
func (TreeAction) MarshalGQL ¶
func (e TreeAction) MarshalGQL(w io.Writer)
func (TreeAction) String ¶
func (e TreeAction) String() string
func (*TreeAction) UnmarshalGQL ¶
func (e *TreeAction) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.