store

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetCreateTime

func (x *Group) GetCreateTime() *timestamp.Timestamp

func (*Group) GetDescription

func (x *Group) GetDescription() string

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetPublicId

func (x *Group) GetPublicId() string

func (*Group) GetScopeId

func (x *Group) GetScopeId() string

func (*Group) GetUpdateTime

func (x *Group) GetUpdateTime() *timestamp.Timestamp

func (*Group) GetVersion

func (x *Group) GetVersion() uint32

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

func (x *Group) ProtoReflect() protoreflect.Message

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GroupRole.ProtoReflect.Descriptor instead.

func (*GroupRole) GetCreateTime

func (x *GroupRole) GetCreateTime() *timestamp.Timestamp

func (*GroupRole) GetPrincipalId

func (x *GroupRole) GetPrincipalId() string

func (*GroupRole) GetRoleId

func (x *GroupRole) GetRoleId() string

func (*GroupRole) ProtoMessage

func (*GroupRole) ProtoMessage()

func (*GroupRole) ProtoReflect

func (x *GroupRole) ProtoReflect() protoreflect.Message

func (*GroupRole) Reset

func (x *GroupRole) Reset()

func (*GroupRole) String

func (x *GroupRole) String() string

type ManagedGroupRole added in v0.3.0

type ManagedGroupRole 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 managed 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 (*ManagedGroupRole) Descriptor deprecated added in v0.3.0

func (*ManagedGroupRole) Descriptor() ([]byte, []int)

Deprecated: Use ManagedGroupRole.ProtoReflect.Descriptor instead.

func (*ManagedGroupRole) GetCreateTime added in v0.3.0

func (x *ManagedGroupRole) GetCreateTime() *timestamp.Timestamp

func (*ManagedGroupRole) GetPrincipalId added in v0.3.0

func (x *ManagedGroupRole) GetPrincipalId() string

func (*ManagedGroupRole) GetRoleId added in v0.3.0

func (x *ManagedGroupRole) GetRoleId() string

func (*ManagedGroupRole) ProtoMessage added in v0.3.0

func (*ManagedGroupRole) ProtoMessage()

func (*ManagedGroupRole) ProtoReflect added in v0.3.0

func (x *ManagedGroupRole) ProtoReflect() protoreflect.Message

func (*ManagedGroupRole) Reset added in v0.3.0

func (x *ManagedGroupRole) Reset()

func (*ManagedGroupRole) String added in v0.3.0

func (x *ManagedGroupRole) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreateTime

func (x *Role) GetCreateTime() *timestamp.Timestamp

func (*Role) GetDescription

func (x *Role) GetDescription() string

func (*Role) GetGrantScopeId

func (x *Role) GetGrantScopeId() string

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetPublicId

func (x *Role) GetPublicId() string

func (*Role) GetScopeId

func (x *Role) GetScopeId() string

func (*Role) GetUpdateTime

func (x *Role) GetUpdateTime() *timestamp.Timestamp

func (*Role) GetVersion

func (x *Role) GetVersion() uint32

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RoleGrant.ProtoReflect.Descriptor instead.

func (*RoleGrant) GetCanonicalGrant

func (x *RoleGrant) GetCanonicalGrant() string

func (*RoleGrant) GetCreateTime

func (x *RoleGrant) GetCreateTime() *timestamp.Timestamp

func (*RoleGrant) GetRawGrant

func (x *RoleGrant) GetRawGrant() string

func (*RoleGrant) GetRoleId

func (x *RoleGrant) GetRoleId() string

func (*RoleGrant) ProtoMessage

func (*RoleGrant) ProtoMessage()

func (*RoleGrant) ProtoReflect

func (x *RoleGrant) ProtoReflect() protoreflect.Message

func (*RoleGrant) Reset

func (x *RoleGrant) Reset()

func (*RoleGrant) String

func (x *RoleGrant) String() string

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"`
	// primary_auth_method_id specifies which auth method will be used as a
	// source for account information for users within the scope.  This auth
	// method will also be designated as the auth method which can autovivify
	// users.
	// @inject_tag: `gorm:"default:null"`
	PrimaryAuthMethodId string `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Scope) Descriptor deprecated

func (*Scope) Descriptor() ([]byte, []int)

Deprecated: Use Scope.ProtoReflect.Descriptor instead.

func (*Scope) GetCreateTime

func (x *Scope) GetCreateTime() *timestamp.Timestamp

func (*Scope) GetDescription

func (x *Scope) GetDescription() string

func (*Scope) GetName

func (x *Scope) GetName() string

func (*Scope) GetParentId

func (x *Scope) GetParentId() string

func (*Scope) GetPrimaryAuthMethodId added in v0.2.0

func (x *Scope) GetPrimaryAuthMethodId() string

func (*Scope) GetPublicId

func (x *Scope) GetPublicId() string

func (*Scope) GetType

func (x *Scope) GetType() string

func (*Scope) GetUpdateTime

func (x *Scope) GetUpdateTime() *timestamp.Timestamp

func (*Scope) GetVersion

func (x *Scope) GetVersion() uint32

func (*Scope) ProtoMessage

func (*Scope) ProtoMessage()

func (*Scope) ProtoReflect

func (x *Scope) ProtoReflect() protoreflect.Message

func (*Scope) Reset

func (x *Scope) Reset()

func (*Scope) String

func (x *Scope) String() string

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"`
	// Output only. login_name is a string that maps to the user's account "login
	// name" from the scope's primary auth method
	// @inject_tag: `gorm:"->"`
	LoginName string `protobuf:"bytes,90,opt,name=login_name,proto3" json:"login_name,omitempty" gorm:"->"`
	// Output only. full_name is a string that maps to the user's account name
	// from the scope's primary auth method
	// @inject_tag: `gorm:"->"`
	FullName string `protobuf:"bytes,100,opt,name=full_name,proto3" json:"full_name,omitempty" gorm:"->"`
	// Output only. email is a string that maps to the user's account email from
	// the scope's primary auth method
	// @inject_tag: `gorm:"->"`
	Email string `protobuf:"bytes,110,opt,name=email,proto3" json:"email,omitempty" gorm:"->"`
	// Output only. primary_account_id is a string that maps to the user's account
	// public_id from the scope's primary auth method
	// @inject_tag: `gorm:"->"`
	PrimaryAccountId string `protobuf:"bytes,120,opt,name=primary_account_id,proto3" json:"primary_account_id,omitempty" gorm:"->"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreateTime

func (x *User) GetCreateTime() *timestamp.Timestamp

func (*User) GetDescription

func (x *User) GetDescription() string

func (*User) GetEmail added in v0.2.1

func (x *User) GetEmail() string

func (*User) GetFullName added in v0.2.1

func (x *User) GetFullName() string

func (*User) GetLoginName added in v0.2.1

func (x *User) GetLoginName() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPrimaryAccountId added in v0.2.1

func (x *User) GetPrimaryAccountId() string

func (*User) GetPublicId

func (x *User) GetPublicId() string

func (*User) GetScopeId

func (x *User) GetScopeId() string

func (*User) GetUpdateTime

func (x *User) GetUpdateTime() *timestamp.Timestamp

func (*User) GetVersion

func (x *User) GetVersion() uint32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserRole.ProtoReflect.Descriptor instead.

func (*UserRole) GetCreateTime

func (x *UserRole) GetCreateTime() *timestamp.Timestamp

func (*UserRole) GetPrincipalId

func (x *UserRole) GetPrincipalId() string

func (*UserRole) GetRoleId

func (x *UserRole) GetRoleId() string

func (*UserRole) ProtoMessage

func (*UserRole) ProtoMessage()

func (*UserRole) ProtoReflect

func (x *UserRole) ProtoReflect() protoreflect.Message

func (*UserRole) Reset

func (x *UserRole) Reset()

func (*UserRole) String

func (x *UserRole) String() string

Jump to

Keyboard shortcuts

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