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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_controller_storage_auth_store_v1_account_proto protoreflect.FileDescriptor
View Source
var File_controller_storage_auth_store_v1_auth_method_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {

	// auth_account_id is primary key for the user account
	// @inject_tag: gorm:"primary_key"
	PublicId string `protobuf:"bytes,1,opt,name=public_id,json=publicId,proto3" json:"public_id,omitempty" gorm:"primary_key"`
	// auth_method_id is the auth method associated with this user account.
	// @inject_tag: `gorm:"default:null"`
	AuthMethodId string `protobuf:"bytes,2,opt,name=auth_method_id,json=authMethodId,proto3" json:"auth_method_id,omitempty" gorm:"default:null"`
	// scope_id for the user account
	// @inject_tag: `gorm:"default:null"`
	ScopeId string `protobuf:"bytes,4,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" gorm:"default:null"`
	// user_id is the iam.user associated with this account
	// @inject_tag: `gorm:"default:null"`
	IamUserId string `protobuf:"bytes,5,opt,name=iam_user_id,json=iamUserId,proto3" json:"iam_user_id,omitempty" gorm:"default:null"`
	// contains filtered or unexported fields
}

Account is a "shared table" between the iam, authtoken, and auth subsystems. The auth system is responsible for creating entries. The iam system is only responsible/allowed to update the iam_user_id. The authtoken system is a reader of this data.

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAuthMethodId

func (x *Account) GetAuthMethodId() string

func (*Account) GetIamUserId

func (x *Account) GetIamUserId() string

func (*Account) GetPublicId

func (x *Account) GetPublicId() string

func (*Account) GetScopeId

func (x *Account) GetScopeId() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AuthAccount

type AuthAccount struct {

	// @inject_tag: gorm:"primary_key"
	AuthAccountId string `protobuf:"bytes,1,opt,name=auth_account_id,json=authAccountId,proto3" json:"auth_account_id,omitempty"`
	// @inject_tag: `gorm:"default:null"`
	AuthMethodId string `protobuf:"bytes,2,opt,name=auth_method_id,json=authMethodId,proto3" json:"auth_method_id,omitempty"`
	// @inject_tag: `gorm:"default:null"`
	IamScopeId string `protobuf:"bytes,3,opt,name=iam_scope_id,json=iamScopeId,proto3" json:"iam_scope_id,omitempty"`
	// @inject_tag: `gorm:"default:null"`
	IamUserId string `protobuf:"bytes,4,opt,name=iam_user_id,json=iamUserId,proto3" json:"iam_user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthAccount) Descriptor deprecated

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

Deprecated: Use AuthAccount.ProtoReflect.Descriptor instead.

func (*AuthAccount) GetAuthAccountId

func (x *AuthAccount) GetAuthAccountId() string

func (*AuthAccount) GetAuthMethodId

func (x *AuthAccount) GetAuthMethodId() string

func (*AuthAccount) GetIamScopeId

func (x *AuthAccount) GetIamScopeId() string

func (*AuthAccount) GetIamUserId

func (x *AuthAccount) GetIamUserId() string

func (*AuthAccount) ProtoMessage

func (*AuthAccount) ProtoMessage()

func (*AuthAccount) ProtoReflect

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

func (*AuthAccount) Reset

func (x *AuthAccount) Reset()

func (*AuthAccount) String

func (x *AuthAccount) String() string

type AuthMethod

type AuthMethod struct {

	// @inject_tag: gorm:"primary_key"
	AuthAccountId string `protobuf:"bytes,1,opt,name=auth_account_id,json=authAccountId,proto3" json:"auth_account_id,omitempty"`
	// @inject_tag: `gorm:"default:null"`
	IamScopeId string `protobuf:"bytes,2,opt,name=iam_scope_id,json=iamScopeId,proto3" json:"iam_scope_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthMethod) Descriptor deprecated

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

Deprecated: Use AuthMethod.ProtoReflect.Descriptor instead.

func (*AuthMethod) GetAuthAccountId

func (x *AuthMethod) GetAuthAccountId() string

func (*AuthMethod) GetIamScopeId

func (x *AuthMethod) GetIamScopeId() string

func (*AuthMethod) ProtoMessage

func (*AuthMethod) ProtoMessage()

func (*AuthMethod) ProtoReflect

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

func (*AuthMethod) Reset

func (x *AuthMethod) Reset()

func (*AuthMethod) String

func (x *AuthMethod) String() string

Jump to

Keyboard shortcuts

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