Documentation ¶
Index ¶
- Variables
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreateTime() *timestamp.Timestamp
- func (x *Group) GetDescription() string
- func (x *Group) GetName() string
- func (x *Group) GetPublicId() string
- func (x *Group) GetScopeId() string
- func (x *Group) GetUpdateTime() *timestamp.Timestamp
- func (x *Group) GetVersion() uint32
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupMemberUser
- func (*GroupMemberUser) Descriptor() ([]byte, []int)deprecated
- func (x *GroupMemberUser) GetCreateTime() *timestamp.Timestamp
- func (x *GroupMemberUser) GetGroupId() string
- func (x *GroupMemberUser) GetMemberId() string
- func (*GroupMemberUser) ProtoMessage()
- func (x *GroupMemberUser) ProtoReflect() protoreflect.Message
- func (x *GroupMemberUser) Reset()
- func (x *GroupMemberUser) String() string
- type GroupMemberView
- func (*GroupMemberView) Descriptor() ([]byte, []int)deprecated
- func (x *GroupMemberView) GetCreateTime() *timestamp.Timestamp
- func (x *GroupMemberView) GetGroupId() string
- func (x *GroupMemberView) GetGroupScopeId() string
- func (x *GroupMemberView) GetMemberId() string
- func (x *GroupMemberView) GetMemberScopeId() string
- func (x *GroupMemberView) GetScopedMemberId() string
- func (x *GroupMemberView) GetType() string
- func (*GroupMemberView) ProtoMessage()
- func (x *GroupMemberView) ProtoReflect() protoreflect.Message
- func (x *GroupMemberView) Reset()
- func (x *GroupMemberView) String() string
- type GroupRole
- func (*GroupRole) Descriptor() ([]byte, []int)deprecated
- func (x *GroupRole) GetCreateTime() *timestamp.Timestamp
- func (x *GroupRole) GetPrincipalId() string
- func (x *GroupRole) GetRoleId() string
- func (*GroupRole) ProtoMessage()
- func (x *GroupRole) ProtoReflect() protoreflect.Message
- func (x *GroupRole) Reset()
- func (x *GroupRole) String() string
- type PrincipalRoleView
- func (*PrincipalRoleView) Descriptor() ([]byte, []int)deprecated
- func (x *PrincipalRoleView) GetCreateTime() *timestamp.Timestamp
- func (x *PrincipalRoleView) GetPrincipalId() string
- func (x *PrincipalRoleView) GetPrincipalScopeId() string
- func (x *PrincipalRoleView) GetRoleId() string
- func (x *PrincipalRoleView) GetRoleScopeId() string
- func (x *PrincipalRoleView) GetScopedPrincipalId() string
- func (x *PrincipalRoleView) GetType() string
- func (*PrincipalRoleView) ProtoMessage()
- func (x *PrincipalRoleView) ProtoReflect() protoreflect.Message
- func (x *PrincipalRoleView) Reset()
- func (x *PrincipalRoleView) String() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreateTime() *timestamp.Timestamp
- func (x *Role) GetDescription() string
- func (x *Role) GetGrantScopeId() string
- func (x *Role) GetName() string
- func (x *Role) GetPublicId() string
- func (x *Role) GetScopeId() string
- func (x *Role) GetUpdateTime() *timestamp.Timestamp
- func (x *Role) GetVersion() uint32
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RoleGrant
- func (*RoleGrant) Descriptor() ([]byte, []int)deprecated
- func (x *RoleGrant) GetCanonicalGrant() string
- func (x *RoleGrant) GetCreateTime() *timestamp.Timestamp
- func (x *RoleGrant) GetRawGrant() string
- func (x *RoleGrant) GetRoleId() string
- func (*RoleGrant) ProtoMessage()
- func (x *RoleGrant) ProtoReflect() protoreflect.Message
- func (x *RoleGrant) Reset()
- func (x *RoleGrant) String() string
- type Scope
- func (*Scope) Descriptor() ([]byte, []int)deprecated
- func (x *Scope) GetCreateTime() *timestamp.Timestamp
- func (x *Scope) GetDescription() string
- func (x *Scope) GetName() string
- func (x *Scope) GetParentId() string
- func (x *Scope) GetPublicId() string
- func (x *Scope) GetType() string
- func (x *Scope) GetUpdateTime() *timestamp.Timestamp
- func (x *Scope) GetVersion() uint32
- func (*Scope) ProtoMessage()
- func (x *Scope) ProtoReflect() protoreflect.Message
- func (x *Scope) Reset()
- func (x *Scope) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreateTime() *timestamp.Timestamp
- func (x *User) GetDescription() string
- func (x *User) GetName() string
- func (x *User) GetPublicId() string
- func (x *User) GetScopeId() string
- func (x *User) GetUpdateTime() *timestamp.Timestamp
- func (x *User) GetVersion() uint32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserRole
- func (*UserRole) Descriptor() ([]byte, []int)deprecated
- func (x *UserRole) GetCreateTime() *timestamp.Timestamp
- func (x *UserRole) GetPrincipalId() string
- func (x *UserRole) GetRoleId() string
- func (*UserRole) ProtoMessage()
- func (x *UserRole) ProtoReflect() protoreflect.Message
- func (x *UserRole) Reset()
- func (x *UserRole) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_controller_storage_iam_store_v1_group_member_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_iam_store_v1_group_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_iam_store_v1_principal_role_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_iam_store_v1_role_grant_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_iam_store_v1_role_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_iam_store_v1_scope_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_iam_store_v1_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { // public_id is used to access the Group via an API // @inject_tag: gorm:"primary_key" PublicId string `protobuf:"bytes,10,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"` // scope id for the group // @inject_tag: `gorm:"default:null"` ScopeId string `protobuf:"bytes,20,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" gorm:"default:null"` // name is the optional friendly name used to // access the Group via an API // @inject_tag: `gorm:"default:null"` Name string `protobuf:"bytes,30,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"` // description of the group // @inject_tag: `gorm:"default:null"` Description string `protobuf:"bytes,40,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"` // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,50,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // update_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"` // version allows optimistic locking of the group when modifying the group // itself and when modifying dependent items like group members. // @inject_tag: `gorm:"default:null"` Version uint32 `protobuf:"varint,70,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetCreateTime ¶
func (*Group) GetDescription ¶
func (*Group) GetPublicId ¶
func (*Group) GetScopeId ¶
func (*Group) GetUpdateTime ¶
func (*Group) GetVersion ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupMemberUser ¶
type GroupMemberUser struct { // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // group_id is the group of this member. // @inject_tag: gorm:"primary_key" GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" gorm:"primary_key"` // member_id is the public_id of the user (which is the member) // @inject_tag: gorm:"primary_key" MemberId string `protobuf:"bytes,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty" gorm:"primary_key"` // contains filtered or unexported fields }
func (*GroupMemberUser) Descriptor
deprecated
func (*GroupMemberUser) Descriptor() ([]byte, []int)
Deprecated: Use GroupMemberUser.ProtoReflect.Descriptor instead.
func (*GroupMemberUser) GetCreateTime ¶
func (x *GroupMemberUser) GetCreateTime() *timestamp.Timestamp
func (*GroupMemberUser) GetGroupId ¶
func (x *GroupMemberUser) GetGroupId() string
func (*GroupMemberUser) GetMemberId ¶
func (x *GroupMemberUser) GetMemberId() string
func (*GroupMemberUser) ProtoMessage ¶
func (*GroupMemberUser) ProtoMessage()
func (*GroupMemberUser) ProtoReflect ¶
func (x *GroupMemberUser) ProtoReflect() protoreflect.Message
func (*GroupMemberUser) Reset ¶
func (x *GroupMemberUser) Reset()
func (*GroupMemberUser) String ¶
func (x *GroupMemberUser) String() string
type GroupMemberView ¶
type GroupMemberView struct { // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // group_id is the group of this member. // @inject_tag: gorm:"primary_key" GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" gorm:"primary_key"` // member_id is the public_id of member // @inject_tag: gorm:"primary_key" MemberId string `protobuf:"bytes,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty" gorm:"primary_key"` // Principal type (User or Group) Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // member_scope_id of the member // @inject_tag: `gorm:"default:null"` MemberScopeId string `protobuf:"bytes,5,opt,name=member_scope_id,json=memberScopeId,proto3" json:"member_scope_id,omitempty" gorm:"default:null"` // group_scope_id of the role // @inject_tag: `gorm:"default:null"` GroupScopeId string `protobuf:"bytes,6,opt,name=group_scope_id,json=groupScopeId,proto3" json:"group_scope_id,omitempty" gorm:"default:null"` // scoped_member_id of the member // @inject_tag: `gorm:"default:null"` ScopedMemberId string `protobuf:"bytes,7,opt,name=scoped_member_id,json=scopedMemberId,proto3" json:"scoped_member_id,omitempty" gorm:"default:null"` // contains filtered or unexported fields }
func (*GroupMemberView) Descriptor
deprecated
func (*GroupMemberView) Descriptor() ([]byte, []int)
Deprecated: Use GroupMemberView.ProtoReflect.Descriptor instead.
func (*GroupMemberView) GetCreateTime ¶
func (x *GroupMemberView) GetCreateTime() *timestamp.Timestamp
func (*GroupMemberView) GetGroupId ¶
func (x *GroupMemberView) GetGroupId() string
func (*GroupMemberView) GetGroupScopeId ¶
func (x *GroupMemberView) GetGroupScopeId() string
func (*GroupMemberView) GetMemberId ¶
func (x *GroupMemberView) GetMemberId() string
func (*GroupMemberView) GetMemberScopeId ¶
func (x *GroupMemberView) GetMemberScopeId() string
func (*GroupMemberView) GetScopedMemberId ¶
func (x *GroupMemberView) GetScopedMemberId() string
func (*GroupMemberView) GetType ¶
func (x *GroupMemberView) GetType() string
func (*GroupMemberView) ProtoMessage ¶
func (*GroupMemberView) ProtoMessage()
func (*GroupMemberView) ProtoReflect ¶
func (x *GroupMemberView) ProtoReflect() protoreflect.Message
func (*GroupMemberView) Reset ¶
func (x *GroupMemberView) Reset()
func (*GroupMemberView) String ¶
func (x *GroupMemberView) String() string
type GroupRole ¶
type GroupRole struct { // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // role_id is the role of this principal. // @inject_tag: gorm:"primary_key" RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty" gorm:"primary_key"` // principal_id is the public_id of the group (which is the principal) // @inject_tag: gorm:"primary_key" PrincipalId string `protobuf:"bytes,3,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty" gorm:"primary_key"` // contains filtered or unexported fields }
func (*GroupRole) Descriptor
deprecated
func (*GroupRole) GetCreateTime ¶
func (*GroupRole) GetPrincipalId ¶
func (*GroupRole) ProtoMessage ¶
func (*GroupRole) ProtoMessage()
func (*GroupRole) ProtoReflect ¶
func (x *GroupRole) ProtoReflect() protoreflect.Message
type PrincipalRoleView ¶
type PrincipalRoleView struct { // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // role_id is the role of this principal. // @inject_tag: gorm:"primary_key" RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty" gorm:"primary_key"` // Principal type (User or Group) Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // @inject_tag: gorm:"primary_key" PrincipalId string `protobuf:"bytes,4,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty" gorm:"primary_key"` // principal_scope_id of the principal // @inject_tag: `gorm:"default:null"` PrincipalScopeId string `` /* 131-byte string literal not displayed */ // role_scope_id of the role // @inject_tag: `gorm:"default:null"` RoleScopeId string `protobuf:"bytes,6,opt,name=role_scope_id,json=roleScopeId,proto3" json:"role_scope_id,omitempty" gorm:"default:null"` // scoped_principal_id of the principal // @inject_tag: `gorm:"default:null"` ScopedPrincipalId string `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PrincipalRoleView) Descriptor
deprecated
func (*PrincipalRoleView) Descriptor() ([]byte, []int)
Deprecated: Use PrincipalRoleView.ProtoReflect.Descriptor instead.
func (*PrincipalRoleView) GetCreateTime ¶
func (x *PrincipalRoleView) GetCreateTime() *timestamp.Timestamp
func (*PrincipalRoleView) GetPrincipalId ¶
func (x *PrincipalRoleView) GetPrincipalId() string
func (*PrincipalRoleView) GetPrincipalScopeId ¶
func (x *PrincipalRoleView) GetPrincipalScopeId() string
func (*PrincipalRoleView) GetRoleId ¶
func (x *PrincipalRoleView) GetRoleId() string
func (*PrincipalRoleView) GetRoleScopeId ¶
func (x *PrincipalRoleView) GetRoleScopeId() string
func (*PrincipalRoleView) GetScopedPrincipalId ¶
func (x *PrincipalRoleView) GetScopedPrincipalId() string
func (*PrincipalRoleView) GetType ¶
func (x *PrincipalRoleView) GetType() string
func (*PrincipalRoleView) ProtoMessage ¶
func (*PrincipalRoleView) ProtoMessage()
func (*PrincipalRoleView) ProtoReflect ¶
func (x *PrincipalRoleView) ProtoReflect() protoreflect.Message
func (*PrincipalRoleView) Reset ¶
func (x *PrincipalRoleView) Reset()
func (*PrincipalRoleView) String ¶
func (x *PrincipalRoleView) String() string
type Role ¶
type Role struct { // public_id is used to access the Role via an API // @inject_tag: gorm:"primary_key" PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"` // scope id for the role // @inject_tag: `gorm:"default:null"` ScopeId string `protobuf:"bytes,20,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" gorm:"default:null"` // name is the optional friendly name used to // access the Role via an API // @inject_tag: `gorm:"default:null"` Name string `protobuf:"bytes,30,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"` // description of the role // @inject_tag: `gorm:"default:null"` Description string `protobuf:"bytes,40,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"` // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,50,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // update_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"` // version allows optimistic locking of the role when modifying the role // itself and when modifying dependent items like principal roles. // @inject_tag: `gorm:"default:null"` Version uint32 `protobuf:"varint,70,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"` // grant_scope_id is used for delegating access; it defines a scope other than // the role's scope that is used when compiling these grants into an ACL // @inject_tag: `gorm:"default:null"` GrantScopeId string `protobuf:"bytes,80,opt,name=grant_scope_id,json=grantScopeId,proto3" json:"grant_scope_id,omitempty" gorm:"default:null"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetCreateTime ¶
func (*Role) GetDescription ¶
func (*Role) GetGrantScopeId ¶
func (*Role) GetPublicId ¶
func (*Role) GetScopeId ¶
func (*Role) GetUpdateTime ¶
func (*Role) GetVersion ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleGrant ¶
type RoleGrant struct { // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // role_id is the ID of the role this is a part of // @inject_tag: gorm:"primary_key" RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty" gorm:"primary_key"` // raw_grant is the string grant value as provided by the user // @inject_tag: `gorm:"default:null"` RawGrant string `protobuf:"bytes,3,opt,name=raw_grant,json=rawGrant,proto3" json:"raw_grant,omitempty" gorm:"default:null"` // canonical_grant is the canonical string representation of the grant value. // We use this as the unique constraint. // @inject_tag: gorm:"primary_key" CanonicalGrant string `protobuf:"bytes,4,opt,name=canonical_grant,json=canonicalGrant,proto3" json:"canonical_grant,omitempty" gorm:"primary_key"` // contains filtered or unexported fields }
func (*RoleGrant) Descriptor
deprecated
func (*RoleGrant) GetCanonicalGrant ¶
func (*RoleGrant) GetCreateTime ¶
func (*RoleGrant) GetRawGrant ¶
func (*RoleGrant) ProtoMessage ¶
func (*RoleGrant) ProtoMessage()
func (*RoleGrant) ProtoReflect ¶
func (x *RoleGrant) ProtoReflect() protoreflect.Message
type Scope ¶
type Scope struct { // public_id is the used to access the Scope via an API // @inject_tag: gorm:"primary_key" PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"` // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // update_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"` // name is the optional friendly name used to // access the Scope via an API // @inject_tag: `gorm:"default:null"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"` // Type of scope Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` // parent_id is the id (primary key in the Scope aggregate) of scope's parent // @inject_tag: `gorm:"default:0"` ParentId string `protobuf:"bytes,6,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty" gorm:"default:0"` // description of scope // @inject_tag: `gorm:"default:null"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"` // version allows optimistic locking of the scope // @inject_tag: `gorm:"default:null"` Version uint32 `protobuf:"varint,8,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"` // contains filtered or unexported fields }
func (*Scope) Descriptor
deprecated
func (*Scope) GetCreateTime ¶
func (*Scope) GetDescription ¶
func (*Scope) GetParentId ¶
func (*Scope) GetPublicId ¶
func (*Scope) GetUpdateTime ¶
func (*Scope) GetVersion ¶
func (*Scope) ProtoMessage ¶
func (*Scope) ProtoMessage()
func (*Scope) ProtoReflect ¶
func (x *Scope) ProtoReflect() protoreflect.Message
type User ¶
type User struct { // public_id is used to access the User via an API // @inject_tag: gorm:"primary_key" PublicId string `protobuf:"bytes,10,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"` // scope id for the user // @inject_tag: `gorm:"default:null"` ScopeId string `protobuf:"bytes,20,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" gorm:"default:null"` // name is the optional friendly name used to // access the User via an API // @inject_tag: `gorm:"default:null"` Name string `protobuf:"bytes,30,opt,name=name,proto3" json:"name,omitempty" gorm:"default:null"` // description of the user // @inject_tag: `gorm:"default:null"` Description string `protobuf:"bytes,40,opt,name=description,proto3" json:"description,omitempty" gorm:"default:null"` // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,50,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // update_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" gorm:"default:current_timestamp"` // version allows optimistic locking of the user // @inject_tag: `gorm:"default:null"` Version uint32 `protobuf:"varint,70,opt,name=version,proto3" json:"version,omitempty" gorm:"default:null"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreateTime ¶
func (*User) GetDescription ¶
func (*User) GetPublicId ¶
func (*User) GetScopeId ¶
func (*User) GetUpdateTime ¶
func (*User) GetVersion ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserRole ¶
type UserRole struct { // create_time from the RDBMS // @inject_tag: `gorm:"default:current_timestamp"` CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"` // role_id is the role of this principal. // @inject_tag: gorm:"primary_key" RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty" gorm:"primary_key"` // principal_id is the public_id of the user (which is the principal) // @inject_tag: gorm:"primary_key" PrincipalId string `protobuf:"bytes,3,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty" gorm:"primary_key"` // contains filtered or unexported fields }
func (*UserRole) Descriptor
deprecated
func (*UserRole) GetCreateTime ¶
func (*UserRole) GetPrincipalId ¶
func (*UserRole) ProtoMessage ¶
func (*UserRole) ProtoMessage()
func (*UserRole) ProtoReflect ¶
func (x *UserRole) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.