model

package
v0.0.0-...-ceb92ba Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoginType_name = map[int32]string{
		0: "LOGIN_TYPE_UNSPECIFIED",
		1: "LOGIN_TYPE_EMAIL_PASSWORD",
		2: "LOGIN_TYPE_PHONE_PASSWORD",
		3: "LOGIN_TYPE_USERNAME_PASSWORD",
		4: "LOGIN_TYPE_SSO",
	}
	LoginType_value = map[string]int32{
		"LOGIN_TYPE_UNSPECIFIED":       0,
		"LOGIN_TYPE_EMAIL_PASSWORD":    1,
		"LOGIN_TYPE_PHONE_PASSWORD":    2,
		"LOGIN_TYPE_USERNAME_PASSWORD": 3,
		"LOGIN_TYPE_SSO":               4,
	}
)

Enum value maps for LoginType.

View Source
var File_model_auth_proto protoreflect.FileDescriptor
View Source
var File_model_author_proto protoreflect.FileDescriptor
View Source
var File_model_common_proto protoreflect.FileDescriptor
View Source
var File_model_credentials_proto protoreflect.FileDescriptor
View Source
var File_model_metadata_proto protoreflect.FileDescriptor
View Source
var File_model_revision_proto protoreflect.FileDescriptor
View Source
var File_model_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Author

type Author struct {

	// Cached identifier of the author, e.g. email or username at the time of
	// change.
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// Cached pretty-printed name of the author at the time of
	// change.
	PrintableName string `protobuf:"bytes,2,opt,name=printable_name,json=printableName,proto3" json:"printable_name,omitempty"`
	// User ID of the author. This should be used to get current information
	// about the author.
	//
	// Types that are assignable to Account:
	//
	//	*Author_UserId
	//	*Author_ServiceAccountId
	Account isAuthor_Account `protobuf_oneof:"account"`
	// contains filtered or unexported fields
}

Author of a change.

func (*Author) Descriptor deprecated

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

Deprecated: Use Author.ProtoReflect.Descriptor instead.

func (*Author) GetAccount

func (m *Author) GetAccount() isAuthor_Account

func (*Author) GetIdentifier

func (x *Author) GetIdentifier() string

func (*Author) GetPrintableName

func (x *Author) GetPrintableName() string

func (*Author) GetServiceAccountId

func (x *Author) GetServiceAccountId() string

func (*Author) GetUserId

func (x *Author) GetUserId() string

func (*Author) ProtoMessage

func (*Author) ProtoMessage()

func (*Author) ProtoReflect

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

func (*Author) Reset

func (x *Author) Reset()

func (*Author) String

func (x *Author) String() string

type Author_ServiceAccountId

type Author_ServiceAccountId struct {
	// if a service account did the change
	ServiceAccountId string `protobuf:"bytes,4,opt,name=service_account_id,json=serviceAccountId,proto3,oneof"`
}

type Author_UserId

type Author_UserId struct {
	// if a user did the change
	UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3,oneof"`
}

type BcryptHashingConfig

type BcryptHashingConfig struct {

	// The cost of the hashing algorithm.
	Cost int32 `protobuf:"varint,1,opt,name=cost,proto3" json:"cost,omitempty"`
	// contains filtered or unexported fields
}

Bcrypt hashing configuration.

func (*BcryptHashingConfig) Descriptor deprecated

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

Deprecated: Use BcryptHashingConfig.ProtoReflect.Descriptor instead.

func (*BcryptHashingConfig) GetCost

func (x *BcryptHashingConfig) GetCost() int32

func (*BcryptHashingConfig) ProtoMessage

func (*BcryptHashingConfig) ProtoMessage()

func (*BcryptHashingConfig) ProtoReflect

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

func (*BcryptHashingConfig) Reset

func (x *BcryptHashingConfig) Reset()

func (*BcryptHashingConfig) String

func (x *BcryptHashingConfig) String() string

type BcryptHashingInstance

type BcryptHashingInstance struct {
	// contains filtered or unexported fields
}

Bcrypt hashing instance.

func (*BcryptHashingInstance) Descriptor deprecated

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

Deprecated: Use BcryptHashingInstance.ProtoReflect.Descriptor instead.

func (*BcryptHashingInstance) ProtoMessage

func (*BcryptHashingInstance) ProtoMessage()

func (*BcryptHashingInstance) ProtoReflect

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

func (*BcryptHashingInstance) Reset

func (x *BcryptHashingInstance) Reset()

func (*BcryptHashingInstance) String

func (x *BcryptHashingInstance) String() string

type Fingerprint

type Fingerprint struct {
	Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*Fingerprint) Descriptor deprecated

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

Deprecated: Use Fingerprint.ProtoReflect.Descriptor instead.

func (*Fingerprint) GetBytes

func (x *Fingerprint) GetBytes() []byte

func (*Fingerprint) ProtoMessage

func (*Fingerprint) ProtoMessage()

func (*Fingerprint) ProtoReflect

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

func (*Fingerprint) Reset

func (x *Fingerprint) Reset()

func (*Fingerprint) String

func (x *Fingerprint) String() string

type HashingConfig

type HashingConfig struct {

	// Types that are assignable to Method:
	//
	//	*HashingConfig_Bcrypt
	//	*HashingConfig_Scrypt
	Method isHashingConfig_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

Hashing configuration.

func (*HashingConfig) Descriptor deprecated

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

Deprecated: Use HashingConfig.ProtoReflect.Descriptor instead.

func (*HashingConfig) GetBcrypt

func (x *HashingConfig) GetBcrypt() *BcryptHashingConfig

func (*HashingConfig) GetMethod

func (m *HashingConfig) GetMethod() isHashingConfig_Method

func (*HashingConfig) GetScrypt

func (x *HashingConfig) GetScrypt() *ScryptHashingConfig

func (*HashingConfig) ProtoMessage

func (*HashingConfig) ProtoMessage()

func (*HashingConfig) ProtoReflect

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

func (*HashingConfig) Reset

func (x *HashingConfig) Reset()

func (*HashingConfig) String

func (x *HashingConfig) String() string

type HashingConfig_Bcrypt

type HashingConfig_Bcrypt struct {
	// if bcrypt is set, use bcrypt.
	Bcrypt *BcryptHashingConfig `protobuf:"bytes,1,opt,name=bcrypt,proto3,oneof"`
}

type HashingConfig_Scrypt

type HashingConfig_Scrypt struct {
	// if scrypt is set, use scrypt.
	Scrypt *ScryptHashingConfig `protobuf:"bytes,2,opt,name=scrypt,proto3,oneof"`
}

type HashingInstance

type HashingInstance struct {

	// The hashing configuration.
	Config *HashingConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// A hash
	Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// Types that are assignable to Instance:
	//
	//	*HashingInstance_Bcrypt
	//	*HashingInstance_Scrypt
	Instance isHashingInstance_Instance `protobuf_oneof:"instance"`
	// contains filtered or unexported fields
}

Hashing instance.

func (*HashingInstance) Descriptor deprecated

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

Deprecated: Use HashingInstance.ProtoReflect.Descriptor instead.

func (*HashingInstance) GetBcrypt

func (x *HashingInstance) GetBcrypt() *BcryptHashingInstance

func (*HashingInstance) GetConfig

func (x *HashingInstance) GetConfig() *HashingConfig

func (*HashingInstance) GetHash

func (x *HashingInstance) GetHash() []byte

func (*HashingInstance) GetInstance

func (m *HashingInstance) GetInstance() isHashingInstance_Instance

func (*HashingInstance) GetScrypt

func (x *HashingInstance) GetScrypt() *ScryptHashingInstance

func (*HashingInstance) ProtoMessage

func (*HashingInstance) ProtoMessage()

func (*HashingInstance) ProtoReflect

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

func (*HashingInstance) Reset

func (x *HashingInstance) Reset()

func (*HashingInstance) String

func (x *HashingInstance) String() string

type HashingInstance_Bcrypt

type HashingInstance_Bcrypt struct {
	// if bcrypt is set, this bcrypt instance was used.
	Bcrypt *BcryptHashingInstance `protobuf:"bytes,3,opt,name=bcrypt,proto3,oneof"`
}

type HashingInstance_Scrypt

type HashingInstance_Scrypt struct {
	// if scrypt is set, this scrypt instance was used.
	Scrypt *ScryptHashingInstance `protobuf:"bytes,4,opt,name=scrypt,proto3,oneof"`
}

type LoginType

type LoginType int32

The LoginType enum defines the type of login.

const (
	// Default value.
	LoginType_LOGIN_TYPE_UNSPECIFIED LoginType = 0
	// Email and password login.
	LoginType_LOGIN_TYPE_EMAIL_PASSWORD LoginType = 1
	// deprecated: text is not supported - Phone number and password login.
	LoginType_LOGIN_TYPE_PHONE_PASSWORD LoginType = 2
	// Username and password login.
	LoginType_LOGIN_TYPE_USERNAME_PASSWORD LoginType = 3
	// SSO Login
	LoginType_LOGIN_TYPE_SSO LoginType = 4
)

func (LoginType) Descriptor

func (LoginType) Descriptor() protoreflect.EnumDescriptor

func (LoginType) Enum

func (x LoginType) Enum() *LoginType

func (LoginType) EnumDescriptor deprecated

func (LoginType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoginType.Descriptor instead.

func (LoginType) Number

func (x LoginType) Number() protoreflect.EnumNumber

func (LoginType) String

func (x LoginType) String() string

func (LoginType) Type

type MemberEntry

type MemberEntry struct {

	// The user or service account.
	//
	// Types that are assignable to Entry:
	//
	//	*MemberEntry_User
	//	*MemberEntry_ServiceAccount
	Entry    isMemberEntry_Entry    `protobuf_oneof:"entry"`
	JoinedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"` // when the member joined the group.
	// contains filtered or unexported fields
}

Entry model of a group member - placed in models to prevent cyclic imports.

func (*MemberEntry) Descriptor deprecated

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

Deprecated: Use MemberEntry.ProtoReflect.Descriptor instead.

func (*MemberEntry) GetEntry

func (m *MemberEntry) GetEntry() isMemberEntry_Entry

func (*MemberEntry) GetJoinedAt

func (x *MemberEntry) GetJoinedAt() *timestamppb.Timestamp

func (*MemberEntry) GetServiceAccount

func (x *MemberEntry) GetServiceAccount() *ServiceAccountEntry

func (*MemberEntry) GetUser

func (x *MemberEntry) GetUser() *UserEntry

func (*MemberEntry) ProtoMessage

func (*MemberEntry) ProtoMessage()

func (*MemberEntry) ProtoReflect

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

func (*MemberEntry) Reset

func (x *MemberEntry) Reset()

func (*MemberEntry) String

func (x *MemberEntry) String() string

type MemberEntry_ServiceAccount

type MemberEntry_ServiceAccount struct {
	ServiceAccount *ServiceAccountEntry `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3,oneof"` // if the member is a service account.
}

type MemberEntry_User

type MemberEntry_User struct {
	// if the member is a user.
	User *UserEntry `protobuf:"bytes,1,opt,name=user,proto3,oneof"`
}

type Metadata

type Metadata struct {

	// Key of the metadata.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Value of the metadata.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Generic metadata model.

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetKey

func (x *Metadata) GetKey() string

func (*Metadata) GetValue

func (x *Metadata) GetValue() []byte

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Pagination

type Pagination struct {

	// Where to start the pagination.
	Offset uint32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// How many items to return.
	Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// Whether to sort in descending order.
	Descending bool `protobuf:"varint,3,opt,name=descending,proto3" json:"descending,omitempty"`
	// contains filtered or unexported fields
}

Pagination option.

func (*Pagination) Descriptor deprecated

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetDescending

func (x *Pagination) GetDescending() bool

func (*Pagination) GetLimit

func (x *Pagination) GetLimit() uint32

func (*Pagination) GetOffset

func (x *Pagination) GetOffset() uint32

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

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

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

type ProviderCredentials

type ProviderCredentials struct {

	// Public key.
	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Private key.
	PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

Generic credentials model.

func (*ProviderCredentials) Descriptor deprecated

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

Deprecated: Use ProviderCredentials.ProtoReflect.Descriptor instead.

func (*ProviderCredentials) GetPrivateKey

func (x *ProviderCredentials) GetPrivateKey() string

func (*ProviderCredentials) GetPublicKey

func (x *ProviderCredentials) GetPublicKey() string

func (*ProviderCredentials) ProtoMessage

func (*ProviderCredentials) ProtoMessage()

func (*ProviderCredentials) ProtoReflect

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

func (*ProviderCredentials) Reset

func (x *ProviderCredentials) Reset()

func (*ProviderCredentials) String

func (x *ProviderCredentials) String() string

type RegisterInfo

type RegisterInfo struct {

	// Who created the user.
	CreaterId string          `protobuf:"bytes,1,opt,name=creater_id,json=createrId,proto3" json:"creater_id,omitempty"`
	Method    *RegisterMethod `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // How the user was registered.
	// contains filtered or unexported fields
}

Registering information of a user.

func (*RegisterInfo) Descriptor deprecated

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

Deprecated: Use RegisterInfo.ProtoReflect.Descriptor instead.

func (*RegisterInfo) GetCreaterId

func (x *RegisterInfo) GetCreaterId() string

func (*RegisterInfo) GetMethod

func (x *RegisterInfo) GetMethod() *RegisterMethod

func (*RegisterInfo) ProtoMessage

func (*RegisterInfo) ProtoMessage()

func (*RegisterInfo) ProtoReflect

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

func (*RegisterInfo) Reset

func (x *RegisterInfo) Reset()

func (*RegisterInfo) String

func (x *RegisterInfo) String() string

type RegisterMethod

type RegisterMethod struct {

	// Types that are assignable to Method:
	//
	//	*RegisterMethod_System_
	//	*RegisterMethod_Signup_
	Method isRegisterMethod_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

Method used to register a user.

func (*RegisterMethod) Descriptor deprecated

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

Deprecated: Use RegisterMethod.ProtoReflect.Descriptor instead.

func (*RegisterMethod) GetMethod

func (m *RegisterMethod) GetMethod() isRegisterMethod_Method

func (*RegisterMethod) GetSignup

func (x *RegisterMethod) GetSignup() *RegisterMethod_Signup

func (*RegisterMethod) GetSystem

func (x *RegisterMethod) GetSystem() *RegisterMethod_System

func (*RegisterMethod) ProtoMessage

func (*RegisterMethod) ProtoMessage()

func (*RegisterMethod) ProtoReflect

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

func (*RegisterMethod) Reset

func (x *RegisterMethod) Reset()

func (*RegisterMethod) String

func (x *RegisterMethod) String() string

type RegisterMethod_Signup

type RegisterMethod_Signup struct {

	// The login type used to sign up.
	LoginType LoginType `protobuf:"varint,1,opt,name=login_type,json=loginType,proto3,enum=model.LoginType" json:"login_type,omitempty"`
	// contains filtered or unexported fields
}

if the user was created by signing up.

func (*RegisterMethod_Signup) Descriptor deprecated

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

Deprecated: Use RegisterMethod_Signup.ProtoReflect.Descriptor instead.

func (*RegisterMethod_Signup) GetLoginType

func (x *RegisterMethod_Signup) GetLoginType() LoginType

func (*RegisterMethod_Signup) ProtoMessage

func (*RegisterMethod_Signup) ProtoMessage()

func (*RegisterMethod_Signup) ProtoReflect

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

func (*RegisterMethod_Signup) Reset

func (x *RegisterMethod_Signup) Reset()

func (*RegisterMethod_Signup) String

func (x *RegisterMethod_Signup) String() string

type RegisterMethod_Signup_

type RegisterMethod_Signup_ struct {
	Signup *RegisterMethod_Signup `protobuf:"bytes,2,opt,name=signup,proto3,oneof"` // user signed up.
}

type RegisterMethod_System

type RegisterMethod_System struct {
	// contains filtered or unexported fields
}

if the user was created by the system.

func (*RegisterMethod_System) Descriptor deprecated

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

Deprecated: Use RegisterMethod_System.ProtoReflect.Descriptor instead.

func (*RegisterMethod_System) ProtoMessage

func (*RegisterMethod_System) ProtoMessage()

func (*RegisterMethod_System) ProtoReflect

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

func (*RegisterMethod_System) Reset

func (x *RegisterMethod_System) Reset()

func (*RegisterMethod_System) String

func (x *RegisterMethod_System) String() string

type RegisterMethod_System_

type RegisterMethod_System_ struct {
	// system created the user.
	System *RegisterMethod_System `protobuf:"bytes,1,opt,name=system,proto3,oneof"`
}

type RevisionMetadata

type RevisionMetadata struct {
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	UpdatedBy   *Author                `protobuf:"bytes,3,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
	Fingerprint *Fingerprint           `protobuf:"bytes,4,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// contains filtered or unexported fields
}

func (*RevisionMetadata) Descriptor deprecated

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

Deprecated: Use RevisionMetadata.ProtoReflect.Descriptor instead.

func (*RevisionMetadata) GetCreatedAt

func (x *RevisionMetadata) GetCreatedAt() *timestamppb.Timestamp

func (*RevisionMetadata) GetFingerprint

func (x *RevisionMetadata) GetFingerprint() *Fingerprint

func (*RevisionMetadata) GetUpdatedAt

func (x *RevisionMetadata) GetUpdatedAt() *timestamppb.Timestamp

func (*RevisionMetadata) GetUpdatedBy

func (x *RevisionMetadata) GetUpdatedBy() *Author

func (*RevisionMetadata) ProtoMessage

func (*RevisionMetadata) ProtoMessage()

func (*RevisionMetadata) ProtoReflect

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

func (*RevisionMetadata) Reset

func (x *RevisionMetadata) Reset()

func (*RevisionMetadata) String

func (x *RevisionMetadata) String() string

type ScryptHashingConfig

type ScryptHashingConfig struct {

	// The key used to sign the salt.
	SignerKey string `protobuf:"bytes,1,opt,name=signer_key,json=signerKey,proto3" json:"signer_key,omitempty"`
	// The salt separator.
	SaltSeparator string `protobuf:"bytes,2,opt,name=salt_separator,json=saltSeparator,proto3" json:"salt_separator,omitempty"`
	// The number of rounds in the algorithm.
	Rounds int32 `protobuf:"varint,3,opt,name=rounds,proto3" json:"rounds,omitempty"`
	// The memory cost of the algorithm.
	MemCost int32 `protobuf:"varint,4,opt,name=mem_cost,json=memCost,proto3" json:"mem_cost,omitempty"`
	// The parallelization factor of the algorithm.
	P int32 `protobuf:"varint,5,opt,name=p,proto3" json:"p,omitempty"`
	// The length of the key.
	KeyLen int32 `protobuf:"varint,6,opt,name=key_len,json=keyLen,proto3" json:"key_len,omitempty"`
	// contains filtered or unexported fields
}

Scrypt hashing configuration.

func (*ScryptHashingConfig) Descriptor deprecated

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

Deprecated: Use ScryptHashingConfig.ProtoReflect.Descriptor instead.

func (*ScryptHashingConfig) GetKeyLen

func (x *ScryptHashingConfig) GetKeyLen() int32

func (*ScryptHashingConfig) GetMemCost

func (x *ScryptHashingConfig) GetMemCost() int32

func (*ScryptHashingConfig) GetP

func (x *ScryptHashingConfig) GetP() int32

func (*ScryptHashingConfig) GetRounds

func (x *ScryptHashingConfig) GetRounds() int32

func (*ScryptHashingConfig) GetSaltSeparator

func (x *ScryptHashingConfig) GetSaltSeparator() string

func (*ScryptHashingConfig) GetSignerKey

func (x *ScryptHashingConfig) GetSignerKey() string

func (*ScryptHashingConfig) ProtoMessage

func (*ScryptHashingConfig) ProtoMessage()

func (*ScryptHashingConfig) ProtoReflect

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

func (*ScryptHashingConfig) Reset

func (x *ScryptHashingConfig) Reset()

func (*ScryptHashingConfig) String

func (x *ScryptHashingConfig) String() string

type ScryptHashingInstance

type ScryptHashingInstance struct {

	// The salt used to hash the password.
	Salt []byte `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"`
	// contains filtered or unexported fields
}

Scrypt hashing instance.

func (*ScryptHashingInstance) Descriptor deprecated

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

Deprecated: Use ScryptHashingInstance.ProtoReflect.Descriptor instead.

func (*ScryptHashingInstance) GetSalt

func (x *ScryptHashingInstance) GetSalt() []byte

func (*ScryptHashingInstance) ProtoMessage

func (*ScryptHashingInstance) ProtoMessage()

func (*ScryptHashingInstance) ProtoReflect

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

func (*ScryptHashingInstance) Reset

func (x *ScryptHashingInstance) Reset()

func (*ScryptHashingInstance) String

func (x *ScryptHashingInstance) String() string

type ServiceAccountEntry

type ServiceAccountEntry struct {

	// unique id of the service account.
	ServiceAccountId string                 `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	Name             string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                            // name of the service account.
	ClientId         string                 `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`    // client id of the service account.
	GroupIds         []string               `protobuf:"bytes,4,rep,name=group_ids,json=groupIds,proto3" json:"group_ids,omitempty"`    // groups the service account belongs to.
	CreatedAt        *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // when the service account was created.
	CreatedBy        *Author                `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // who created the service account.
	// contains filtered or unexported fields
}

Entry model of a service account - placed in models to prevent cyclic imports.

func (*ServiceAccountEntry) Descriptor deprecated

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

Deprecated: Use ServiceAccountEntry.ProtoReflect.Descriptor instead.

func (*ServiceAccountEntry) GetClientId

func (x *ServiceAccountEntry) GetClientId() string

func (*ServiceAccountEntry) GetCreatedAt

func (x *ServiceAccountEntry) GetCreatedAt() *timestamppb.Timestamp

func (*ServiceAccountEntry) GetCreatedBy

func (x *ServiceAccountEntry) GetCreatedBy() *Author

func (*ServiceAccountEntry) GetGroupIds

func (x *ServiceAccountEntry) GetGroupIds() []string

func (*ServiceAccountEntry) GetName

func (x *ServiceAccountEntry) GetName() string

func (*ServiceAccountEntry) GetServiceAccountId

func (x *ServiceAccountEntry) GetServiceAccountId() string

func (*ServiceAccountEntry) ProtoMessage

func (*ServiceAccountEntry) ProtoMessage()

func (*ServiceAccountEntry) ProtoReflect

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

func (*ServiceAccountEntry) Reset

func (x *ServiceAccountEntry) Reset()

func (*ServiceAccountEntry) String

func (x *ServiceAccountEntry) String() string

type UserEntry

type UserEntry struct {

	// unique id of the user.
	UserId        string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	PrintableName string                 `protobuf:"bytes,2,opt,name=printable_name,json=printableName,proto3" json:"printable_name,omitempty"` // pretty printable name of a user.
	RegisterInfo  *RegisterInfo          `protobuf:"bytes,3,opt,name=register_info,json=registerInfo,proto3" json:"register_info,omitempty"`    // how the user was registered.
	Verified      bool                   `protobuf:"varint,4,opt,name=verified,proto3" json:"verified,omitempty"`                               // whether the user is verified.
	GroupIds      []string               `protobuf:"bytes,5,rep,name=group_ids,json=groupIds,proto3" json:"group_ids,omitempty"`                // groups the user belongs to.
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`             // when the user was created.
	// contains filtered or unexported fields
}

Entry model of a user - placed in models to prevent cyclic imports.

func (*UserEntry) Descriptor deprecated

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

Deprecated: Use UserEntry.ProtoReflect.Descriptor instead.

func (*UserEntry) GetCreatedAt

func (x *UserEntry) GetCreatedAt() *timestamppb.Timestamp

func (*UserEntry) GetGroupIds

func (x *UserEntry) GetGroupIds() []string

func (*UserEntry) GetPrintableName

func (x *UserEntry) GetPrintableName() string

func (*UserEntry) GetRegisterInfo

func (x *UserEntry) GetRegisterInfo() *RegisterInfo

func (*UserEntry) GetUserId

func (x *UserEntry) GetUserId() string

func (*UserEntry) GetVerified

func (x *UserEntry) GetVerified() bool

func (*UserEntry) ProtoMessage

func (*UserEntry) ProtoMessage()

func (*UserEntry) ProtoReflect

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

func (*UserEntry) Reset

func (x *UserEntry) Reset()

func (*UserEntry) String

func (x *UserEntry) String() string

type UserIdentifier

type UserIdentifier struct {

	// Types that are assignable to Identifier:
	//
	//	*UserIdentifier_Username
	//	*UserIdentifier_Email
	//	*UserIdentifier_PhoneNumber
	Identifier isUserIdentifier_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

different fields that can identify a user.

func (*UserIdentifier) Descriptor deprecated

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

Deprecated: Use UserIdentifier.ProtoReflect.Descriptor instead.

func (*UserIdentifier) GetEmail

func (x *UserIdentifier) GetEmail() string

func (*UserIdentifier) GetIdentifier

func (m *UserIdentifier) GetIdentifier() isUserIdentifier_Identifier

func (*UserIdentifier) GetPhoneNumber

func (x *UserIdentifier) GetPhoneNumber() string

func (*UserIdentifier) GetUsername

func (x *UserIdentifier) GetUsername() string

func (*UserIdentifier) ProtoMessage

func (*UserIdentifier) ProtoMessage()

func (*UserIdentifier) ProtoReflect

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

func (*UserIdentifier) Reset

func (x *UserIdentifier) Reset()

func (*UserIdentifier) String

func (x *UserIdentifier) String() string

type UserIdentifier_Email

type UserIdentifier_Email struct {
	Email string `protobuf:"bytes,2,opt,name=email,proto3,oneof"` // email is unique.
}

type UserIdentifier_PhoneNumber

type UserIdentifier_PhoneNumber struct {
	PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof"` // Deprecated: text is not supported - phone number is unique.
}

type UserIdentifier_Username

type UserIdentifier_Username struct {
	// username is unique.
	Username string `protobuf:"bytes,1,opt,name=username,proto3,oneof"`
}

type UserInfo

type UserInfo struct {

	// email of the user.
	Email       string                 `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Username    string                 `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`                          // username of the user.
	PhoneNumber string                 `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // Deprecated: text is not supported - phone number of the user.
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`       // when the user was created.
	GroupIds    []string               `protobuf:"bytes,6,rep,name=group_ids,json=groupIds,proto3" json:"group_ids,omitempty"`          // groups the user belongs to.
	// contains filtered or unexported fields
}

Userinfo - placed in models to prevent cyclic imports.

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetCreatedAt

func (x *UserInfo) GetCreatedAt() *timestamppb.Timestamp

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetGroupIds

func (x *UserInfo) GetGroupIds() []string

func (*UserInfo) GetPhoneNumber

func (x *UserInfo) GetPhoneNumber() string

func (*UserInfo) GetUsername

func (x *UserInfo) GetUsername() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

Jump to

Keyboard shortcuts

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