database

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BreachWatchRecordStorage

type BreachWatchRecordStorage struct {
	RecordUid_ string `db:"record_uid"`
	Data_      []byte `db:"data"`
	Type_      int32  `db:"type"`
	Revision_  int64  `db:"revision"`
}

func (*BreachWatchRecordStorage) Data

func (bwr *BreachWatchRecordStorage) Data() []byte

func (*BreachWatchRecordStorage) RecordUid

func (bwr *BreachWatchRecordStorage) RecordUid() string

func (*BreachWatchRecordStorage) Revision

func (bwr *BreachWatchRecordStorage) Revision() int64

func (*BreachWatchRecordStorage) Type

func (bwr *BreachWatchRecordStorage) Type() int32

func (*BreachWatchRecordStorage) Uid

func (bwr *BreachWatchRecordStorage) Uid() string

type BreachWatchSecurityData

type BreachWatchSecurityData struct {
	RecordUid_ string `db:"record_uid"`
	Revision_  int64  `db:"revision"`
}

func (*BreachWatchSecurityData) RecordUid

func (bwsd *BreachWatchSecurityData) RecordUid() string

func (*BreachWatchSecurityData) Revision

func (bwsd *BreachWatchSecurityData) Revision() int64

func (*BreachWatchSecurityData) Uid

func (bwsd *BreachWatchSecurityData) Uid() string

type EncryptedData

type EncryptedData struct {
	DisplayName string `json:"displayname,omitempty"`
}

type EnterpriseEntityData

type EnterpriseEntityData struct {
	Type int64  `db:"type"`
	Key  string `db:"key"`
	Data []byte `db:"data"`
}

type EnterpriseSettings

type EnterpriseSettings struct {
	ContinuationToken []byte `db:"continuation_token"`
	EnterpriseIds     string `db:"enterprise_ids"`
}

type FolderRecordStorage

type FolderRecordStorage struct {
	FolderUid_ string `db:"folder_uid"`
	RecordUid_ string `db:"record_uid"`
}

func (*FolderRecordStorage) FolderUid

func (fr *FolderRecordStorage) FolderUid() string

func (*FolderRecordStorage) ObjectUid

func (fr *FolderRecordStorage) ObjectUid() string

func (*FolderRecordStorage) RecordUid

func (fr *FolderRecordStorage) RecordUid() string

func (*FolderRecordStorage) SubjectUid

func (fr *FolderRecordStorage) SubjectUid() string

type FolderStorage

type FolderStorage struct {
	FolderUid_       string `db:"folder_uid"`
	ParentUid_       string `db:"parent_uid"`
	FolderType_      string `db:"folder_type"`
	FolderKey_       []byte `db:"folder_key"`
	KeyType_         int32  `db:"key_type"`
	SharedFolderUid_ string `db:"shared_folder_uid"`
	Revision_        int64  `db:"revision"`
	Data_            []byte `db:"data"`
}

func (*FolderStorage) Data

func (f *FolderStorage) Data() []byte

func (*FolderStorage) FolderKey

func (f *FolderStorage) FolderKey() []byte

func (*FolderStorage) FolderType

func (f *FolderStorage) FolderType() string

func (*FolderStorage) FolderUid

func (f *FolderStorage) FolderUid() string

func (*FolderStorage) KeyType

func (f *FolderStorage) KeyType() int32

func (*FolderStorage) ParentUid

func (f *FolderStorage) ParentUid() string

func (*FolderStorage) Revision

func (f *FolderStorage) Revision() int64

func (*FolderStorage) SharedFolderUid

func (f *FolderStorage) SharedFolderUid() string

func (*FolderStorage) Uid

func (f *FolderStorage) Uid() string

type NonSharedDataStorage

type NonSharedDataStorage struct {
	RecordUid_ string `db:"record_uid"`
	Data_      []byte `db:"data"`
}

func (*NonSharedDataStorage) Data

func (nsd *NonSharedDataStorage) Data() []byte

func (*NonSharedDataStorage) RecordUid

func (nsd *NonSharedDataStorage) RecordUid() string

func (*NonSharedDataStorage) Uid

func (nsd *NonSharedDataStorage) Uid() string

type RecordKeyStorage

type RecordKeyStorage struct {
	RecordUid_       string `db:"record_uid"`
	EncrypterUid_    string `db:"encrypter_uid"`
	KeyType_         int32  `db:"key_type"`
	RecordKey_       []byte `db:"record_key"`
	CanShare_        bool   `db:"can_share"`
	CanEdit_         bool   `db:"can_edit"`
	ExpirationTime_  int64  `db:"expiration_time"`
	Owner_           bool   `db:"owner"`
	OwnerAccountUid_ string `db:"owner_account_uid"`
}

func (*RecordKeyStorage) CanEdit

func (rks *RecordKeyStorage) CanEdit() bool

func (*RecordKeyStorage) CanShare

func (rks *RecordKeyStorage) CanShare() bool

func (*RecordKeyStorage) EncrypterUid

func (rks *RecordKeyStorage) EncrypterUid() string

func (*RecordKeyStorage) ExpirationTime

func (rks *RecordKeyStorage) ExpirationTime() int64

func (*RecordKeyStorage) KeyType

func (rks *RecordKeyStorage) KeyType() int32

func (*RecordKeyStorage) ObjectUid

func (rks *RecordKeyStorage) ObjectUid() string

func (*RecordKeyStorage) Owner

func (rks *RecordKeyStorage) Owner() bool

func (*RecordKeyStorage) OwnerAccountUid

func (rks *RecordKeyStorage) OwnerAccountUid() string

func (*RecordKeyStorage) RecordKey

func (rks *RecordKeyStorage) RecordKey() []byte

func (*RecordKeyStorage) RecordUid

func (rks *RecordKeyStorage) RecordUid() string

func (*RecordKeyStorage) SubjectUid

func (rks *RecordKeyStorage) SubjectUid() string

type RecordStorage

type RecordStorage struct {
	RecordUid_    string `db:"record_uid"`
	Revision_     int64  `db:"revision"`
	Version_      int32  `db:"version"`
	ModifiedTime_ int64  `db:"modified_time"`
	Data_         []byte `db:"data"`
	Extra_        []byte `db:"extra"`
	UData_        string `db:"udata"`
	Shared_       bool   `db:"shared"`
}

func (*RecordStorage) Data

func (r *RecordStorage) Data() []byte

func (*RecordStorage) Extra

func (r *RecordStorage) Extra() []byte

func (*RecordStorage) ModifiedTime

func (r *RecordStorage) ModifiedTime() int64

func (*RecordStorage) RecordUid

func (r *RecordStorage) RecordUid() string

func (*RecordStorage) Revision

func (r *RecordStorage) Revision() int64

func (*RecordStorage) SetShared

func (r *RecordStorage) SetShared(shared bool)

func (*RecordStorage) Shared

func (r *RecordStorage) Shared() bool

func (*RecordStorage) UData

func (r *RecordStorage) UData() string

func (*RecordStorage) Uid

func (r *RecordStorage) Uid() string

func (*RecordStorage) Version

func (r *RecordStorage) Version() int32

type RecordTypeContent

type RecordTypeContent struct {
	Name        string             `json:"$id"`
	Description string             `json:"description"`
	Fields      []*RecordTypeField `json:"fields"`
}

type RecordTypeField

type RecordTypeField struct {
	Type     string `json:"$ref"`
	Label    string `json:"label"`
	Required bool   `json:"required"`
}

type RecordTypeStorage

type RecordTypeStorage struct {
	Id_      int64  `db:"id"`
	Scope_   int32  `db:"scope"`
	Content_ string `db:"content"`
}

func (*RecordTypeStorage) Content

func (f *RecordTypeStorage) Content() string

func (*RecordTypeStorage) Id

func (f *RecordTypeStorage) Id() int64

func (*RecordTypeStorage) Scope

func (f *RecordTypeStorage) Scope() int32

func (*RecordTypeStorage) Uid

func (f *RecordTypeStorage) Uid() int64

type SharedFolderKeyStorage

type SharedFolderKeyStorage struct {
	SharedFolderUid_ string `db:"shared_folder_uid"`
	EncrypterUid_    string `db:"encrypter_uid"`
	KeyType_         int32  `db:"key_type"`
	SharedFolderKey_ []byte `db:"shared_folder_key"`
}

func (*SharedFolderKeyStorage) EncrypterUid

func (sfk *SharedFolderKeyStorage) EncrypterUid() string

func (*SharedFolderKeyStorage) KeyType

func (sfk *SharedFolderKeyStorage) KeyType() int32

func (*SharedFolderKeyStorage) ObjectUid

func (sfk *SharedFolderKeyStorage) ObjectUid() string

func (*SharedFolderKeyStorage) SharedFolderKey

func (sfk *SharedFolderKeyStorage) SharedFolderKey() []byte

func (*SharedFolderKeyStorage) SharedFolderUid

func (sfk *SharedFolderKeyStorage) SharedFolderUid() string

func (*SharedFolderKeyStorage) SubjectUid

func (sfk *SharedFolderKeyStorage) SubjectUid() string

type SharedFolderPermissionStorage

type SharedFolderPermissionStorage struct {
	SharedFolderUid_ string `db:"shared_folder_uid"`
	UserUid_         string `db:"user_uid"`
	UserType_        int32  `db:"user_type"`
	ManageRecords_   bool   `db:"manage_records"`
	ManageUsers_     bool   `db:"manage_users"`
	ExpirationTime_  int64  `db:"expiration_time"`
}

func (*SharedFolderPermissionStorage) ExpirationTime

func (sfp *SharedFolderPermissionStorage) ExpirationTime() int64

func (*SharedFolderPermissionStorage) ManageRecords

func (sfp *SharedFolderPermissionStorage) ManageRecords() bool

func (*SharedFolderPermissionStorage) ManageUsers

func (sfp *SharedFolderPermissionStorage) ManageUsers() bool

func (*SharedFolderPermissionStorage) ObjectUid

func (sfp *SharedFolderPermissionStorage) ObjectUid() string

func (*SharedFolderPermissionStorage) SharedFolderUid

func (sfp *SharedFolderPermissionStorage) SharedFolderUid() string

func (*SharedFolderPermissionStorage) SubjectUid

func (sfp *SharedFolderPermissionStorage) SubjectUid() string

func (*SharedFolderPermissionStorage) UserType

func (sfp *SharedFolderPermissionStorage) UserType() int32

func (*SharedFolderPermissionStorage) UserUid

func (sfp *SharedFolderPermissionStorage) UserUid() string

type SharedFolderStorage

type SharedFolderStorage struct {
	SharedFolderUid_      string `db:"shared_folder_uid"`
	Revision_             int64  `db:"revision"`
	Name_                 []byte `db:"name"`
	Data_                 []byte `db:"data"`
	DefaultManageRecords_ bool   `db:"default_manage_records"`
	DefaultManageUsers_   bool   `db:"default_manage_users"`
	DefaultCanEdit_       bool   `db:"default_can_edit"`
	DefaultCanShare_      bool   `db:"default_can_share"`
	OwnerAccountUid_      string `db:"owner_account_uid"`
}

func (*SharedFolderStorage) Data

func (sf *SharedFolderStorage) Data() []byte

func (*SharedFolderStorage) DefaultCanEdit

func (sf *SharedFolderStorage) DefaultCanEdit() bool

func (*SharedFolderStorage) DefaultCanShare

func (sf *SharedFolderStorage) DefaultCanShare() bool

func (*SharedFolderStorage) DefaultManageRecords

func (sf *SharedFolderStorage) DefaultManageRecords() bool

func (*SharedFolderStorage) DefaultManageUsers

func (sf *SharedFolderStorage) DefaultManageUsers() bool

func (*SharedFolderStorage) Name

func (sf *SharedFolderStorage) Name() []byte

func (*SharedFolderStorage) OwnerAccountUid

func (sf *SharedFolderStorage) OwnerAccountUid() string

func (*SharedFolderStorage) Revision

func (sf *SharedFolderStorage) Revision() (revision int64)

func (*SharedFolderStorage) SharedFolderUid

func (sf *SharedFolderStorage) SharedFolderUid() string

func (*SharedFolderStorage) Uid

func (sf *SharedFolderStorage) Uid() string

type SsoToken

type SsoToken struct {
	Command      string `json:"command"`
	Result       string `json:"result"`
	Email        string `json:"email"`
	Password     string `json:"password"`
	NewPassword  string `json:"new_password"`
	ProviderName string `json:"provider_name"`
	SessionId    string `json:"session_id"`
	LoginToken   string `json:"login_token"`
}

type TeamStorage

type TeamStorage struct {
	TeamUid_        string `db:"team_uid"`
	Name_           string `db:"name"`
	TeamKey_        []byte `db:"team_key"`
	KeyType_        int32  `db:"key_type"`
	TeamPrivateKey_ []byte `db:"team_private_key"`
	RestrictEdit_   bool   `db:"restrict_edit"`
	RestrictShare_  bool   `db:"restrict_share"`
	RestrictView_   bool   `db:"restrict_view"`
}

func (*TeamStorage) KeyType

func (t *TeamStorage) KeyType() int32

func (*TeamStorage) Name

func (t *TeamStorage) Name() string

func (*TeamStorage) RestrictEdit

func (t *TeamStorage) RestrictEdit() (b bool)

func (*TeamStorage) RestrictShare

func (t *TeamStorage) RestrictShare() (b bool)

func (*TeamStorage) RestrictView

func (t *TeamStorage) RestrictView() (b bool)

func (*TeamStorage) TeamKey

func (t *TeamStorage) TeamKey() []byte

func (*TeamStorage) TeamPrivateKey

func (t *TeamStorage) TeamPrivateKey() []byte

func (*TeamStorage) TeamUid

func (t *TeamStorage) TeamUid() string

func (*TeamStorage) Uid

func (t *TeamStorage) Uid() string

type UserEmailStorage

type UserEmailStorage struct {
	AccountUid_ string `db:"account_uid"`
	Email_      string `db:"email"`
}

func (*UserEmailStorage) AccountUid

func (ues *UserEmailStorage) AccountUid() string

func (*UserEmailStorage) Email

func (ues *UserEmailStorage) Email() string

func (*UserEmailStorage) ObjectUid

func (ues *UserEmailStorage) ObjectUid() string

func (*UserEmailStorage) SubjectUid

func (ues *UserEmailStorage) SubjectUid() string

type UserSettingsStorage

type UserSettingsStorage struct {
	ContinuationToken_ []byte `db:"continuation_token"`
	ProfileData_       []byte `db:"profile_data"`
	ProfileName_       string `db:"profile_name"`
	ProfileUrl_        string `db:"profile_url"`
}

func (*UserSettingsStorage) ContinuationToken

func (us *UserSettingsStorage) ContinuationToken() []byte

func (*UserSettingsStorage) ProfileData

func (us *UserSettingsStorage) ProfileData() []byte

func (*UserSettingsStorage) ProfileName

func (us *UserSettingsStorage) ProfileName() string

func (*UserSettingsStorage) ProfileUrl

func (us *UserSettingsStorage) ProfileUrl() string

func (*UserSettingsStorage) SetContinuationToken

func (us *UserSettingsStorage) SetContinuationToken(token []byte)

func (*UserSettingsStorage) SetProfileData

func (us *UserSettingsStorage) SetProfileData(data []byte)

func (*UserSettingsStorage) SetProfileName

func (us *UserSettingsStorage) SetProfileName(name string)

func (*UserSettingsStorage) SetProfileUrl

func (us *UserSettingsStorage) SetProfileUrl(url string)

Jump to

Keyboard shortcuts

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