Documentation
¶
Overview ¶
cSpell:ignore gonic, orgs, paulo, ferreira
cSpell:ignore ferreira, paulo
cSpell:ignore ferreira, paulo
cSpell:ignore bson, paulo ferreira
cSpell:ignore bson, paulo ferreira
cSpell:ignore bson, paulo ferreira
cSpell:ignore bson, paulo ferreira
cSpell:ignore ferreira, paulo
cSpell:ignore bson, paulo ferreira
cSpell:ignore ferreira, paulo
cSpell:ignore ferreira, paulo
cSpell:ignore bson, paulo ferreira
cSpell:ignore ferreira, paulo
cSpell:ignore ferreira, paulo
cSpell:ignore bson, paulo ferreira
cSpell:ignore bson, paulo ferreira
cSpell:ignore bson, paulo ferreira
Index ¶
- Constants
- func ClearStates(state, clear uint16) uint16
- func CountInvitations(db *sql.DB, q query.TQueryConditions) (uint64, error)
- func CountRegisteredObjectInviteManagers(db *sql.DB, object uint64) (uint64, error)
- func CountRegisteredObjectRoleManagers(db *sql.DB, object uint64) (uint64, error)
- func CountRegisteredObjectTemplates(db *sql.DB, object uint64, q query.TQueryConditions) (uint64, error)
- func CountRegisteredObjectUsers(db *sql.DB, object uint64, q query.TQueryConditions) (uint64, error)
- func CountRegisteredOrgStores(db *sql.DB, org uint64, q query.TQueryConditions) (uint64, error)
- func CountRegisteredOrgs(db *sql.DB, q query.TQueryConditions) (uint64, error)
- func CountRegisteredUserObjects(db *sql.DB, user uint64, q query.TQueryConditions) (uint64, error)
- func CountRegisteredUserObjectsByType(db *sql.DB, user uint64, ltype uint16, q query.TQueryConditions) (uint64, error)
- func CountRegisteredUsers(db *sql.DB, q query.TQueryConditions) (uint64, error)
- func CountStoreObject(db *sql.DB, store uint32, q query.TQueryConditions) (uint64, error)
- func CountStoreParentObject(db *sql.DB, store uint32, parent uint32, q query.TQueryConditions) (uint64, error)
- func DeleteRegisteredObjectTemplate(db *sql.DB, object uint64, template string) error
- func DeleteRegisteredObjectUser(db *sql.DB, object uint64, user uint64) (bool, error)
- func DeleteRegisteredUserObject(db *sql.DB, user uint64, object uint64) (bool, error)
- func DeleteStoreObject(db *sql.DB, store uint32, oid uint32) error
- func DeleteStoreObjectFolder(db *sql.DB, store uint32, folder uint32) error
- func ExistsRegisteredObjectTemplate(db *sql.DB, object uint64, template string) (bool, error)
- func GetShardInviteID(db sqlf.Executor, uid string) (uint32, error)
- func GetShardObjectID(db sqlf.Executor, store uint32, title string) (uint32, error)
- func GetShardOrgID(db sqlf.Executor, alias string) (uint32, error)
- func GetShardStoreID(db sqlf.Executor, org uint64, alias string) (uint32, error)
- func GetShardUserID(db sqlf.Executor, email string) (uint32, error)
- func HasAllStates(state, test uint16) bool
- func HasAnyStates(state, test uint16) bool
- func HasPendingInvitation(db *sql.DB, object uint64, invitee_email string) (bool, error)
- func QueryInvitations(db *sql.DB, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryRegisteredObjectTemplates(db *sql.DB, object uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryRegisteredObjectUsers(db *sql.DB, object uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryRegisteredOrgs(db *sql.DB, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryRegisteredStores(db *sql.DB, org uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryRegisteredUserObjects(db *sql.DB, user uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryRegisteredUserObjectsByType(db *sql.DB, user uint64, ltype uint16, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryRegisteredUsers(db *sql.DB, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func QueryStoreParentObjects(db *sql.DB, store uint32, parent uint32, q query.TQueryConditions, c bool) (query.TQueryResults, error)
- func RandomAlphaNumericPunctuationString(n int) string
- func RandomAlphaNumericString(n int) string
- func RandomAlphaString(n int) string
- func Role(category, function uint16) uint32
- func RoleAddFunctions(functions uint32, role uint32) uint32
- func RoleCategory(role uint32) uint16
- func RoleExactMatch(from, to uint32) bool
- func RoleFunctions(role uint32) uint16
- func RoleIsValid(role uint32) bool
- func RoleMatch(from, to uint32) bool
- func RoleMatchCategory(category uint16, role uint32) bool
- func RoleMatchExactFunctions(from, to uint32) bool
- func RoleMatchFunctions(from, to uint32) bool
- func RoleMatchSubCategory(subcategory uint16, role uint32) bool
- func RoleRemoveFunctions(functions, role uint32) uint32
- func RoleSubCategory(role uint32) uint16
- func SetStates(state, set uint16) uint16
- type DBSessionManager
- type I_Roles
- type Invitation
- func (o *Invitation) AddRole(role uint32) bool
- func (o *Invitation) AddRoles(roles []uint32) bool
- func (o *Invitation) ByID(db *sql.DB, id uint32) error
- func (o *Invitation) Created() *time.Time
- func (o *Invitation) Creator() uint64
- func (o *Invitation) Expiration() *time.Time
- func (o *Invitation) ExpirationUTC() string
- func (o *Invitation) Flush(db sqlf.Executor, force bool) error
- func (o *Invitation) HasExactRole(role uint32) bool
- func (o *Invitation) HasRole(role uint32) bool
- func (o *Invitation) ID() uint32
- func (o *Invitation) InviteeEmail() string
- func (o *Invitation) IsDirty() bool
- func (o *Invitation) IsNew() bool
- func (o *Invitation) IsRolesEmpty() bool
- func (o *Invitation) IsValid() bool
- func (o *Invitation) Key() *uint64
- func (o *Invitation) KeyPick() []byte
- func (o *Invitation) Message() string
- func (o *Invitation) Object() uint64
- func (o *Invitation) RemoveAllRoles() bool
- func (o *Invitation) RemoveCategory(category uint16) bool
- func (o *Invitation) RemoveExactRole(role uint32) bool
- func (o *Invitation) RemoveRole(role uint32) bool
- func (o *Invitation) RemoveRoles(roles []uint32) bool
- func (o *Invitation) Roles() []uint32
- func (o *Invitation) RolesFromCSV(csv string) bool
- func (o *Invitation) RolesToCSV() string
- func (o *Invitation) SetCreator(id uint64) (uint64, error)
- func (o *Invitation) SetExpiration(t time.Time) error
- func (o *Invitation) SetExpiresIn(days uint16) error
- func (o *Invitation) SetInviteeEmail(email string) (string, error)
- func (o *Invitation) SetKey(id uint64, pick []byte) error
- func (o *Invitation) SetMessage(m string) (string, error)
- func (o *Invitation) SetObject(id uint64) (uint64, error)
- func (o *Invitation) UID() string
- type InvitationRegistry
- func (o *InvitationRegistry) ByID(db *sql.DB, id uint64) error
- func (o *InvitationRegistry) ByUID(db *sql.DB, uid string) error
- func (o *InvitationRegistry) Creator() uint64
- func (o *InvitationRegistry) Expiration() *time.Time
- func (o *InvitationRegistry) ExpirationUTC() string
- func (o *InvitationRegistry) Flush(db sqlf.Executor, force bool) error
- func (o *InvitationRegistry) HasPending(db *sql.DB) (bool, error)
- func (o *InvitationRegistry) ID() uint64
- func (o *InvitationRegistry) InviteeEmail() string
- func (o *InvitationRegistry) IsActive() bool
- func (o *InvitationRegistry) IsDirty() bool
- func (o *InvitationRegistry) IsExpired() bool
- func (o *InvitationRegistry) IsNew() bool
- func (o *InvitationRegistry) IsValid() bool
- func (o *InvitationRegistry) Object() uint64
- func (o *InvitationRegistry) SetAccepted() uint16
- func (o *InvitationRegistry) SetDeclined() uint16
- func (o *InvitationRegistry) SetExpiration(t time.Time) error
- func (o *InvitationRegistry) SetExpiresIn(days uint16) error
- func (o *InvitationRegistry) SetRevoked() uint16
- func (o *InvitationRegistry) SetState(state uint16) error
- func (o *InvitationRegistry) State() uint16
- func (o *InvitationRegistry) UID() string
- type Key
- func (o *Key) ByID(db *sql.DB, id uint32) error
- func (o *Key) Created() *time.Time
- func (o *Key) Creator() uint64
- func (o *Key) DecryptKey(key []byte) ([]byte, error)
- func (o *Key) EncryptKey(creator uint64, bytes []byte) ([]byte, error)
- func (o *Key) Expiration() *time.Time
- func (o *Key) ExpirationUTC() string
- func (o *Key) Flush(db sqlf.Executor, force bool) error
- func (o *Key) ID() uint32
- func (o *Key) IsDirty() bool
- func (o *Key) IsNew() bool
- func (o *Key) IsValid() bool
- func (o *Key) SetExpiration(t time.Time) error
- func (o *Key) SetExpiresIn(days uint16) error
- type ObjectTemplateRegistry
- func (o *ObjectTemplateRegistry) ByTemplate(db *sql.DB, object uint64, template string) error
- func (o *ObjectTemplateRegistry) Delete(db *sql.DB, force bool) error
- func (o *ObjectTemplateRegistry) Flush(db sqlf.Executor, force bool) error
- func (o *ObjectTemplateRegistry) IsDirty() bool
- func (o *ObjectTemplateRegistry) IsNew() bool
- func (o *ObjectTemplateRegistry) IsSystemOrganization() bool
- func (o *ObjectTemplateRegistry) IsValid() bool
- func (o *ObjectTemplateRegistry) Object() uint64
- func (o *ObjectTemplateRegistry) SetKey(object uint64, template string) error
- func (o *ObjectTemplateRegistry) SetTitle(s string) (string, error)
- func (o *ObjectTemplateRegistry) Template() string
- func (o *ObjectTemplateRegistry) Title() string
- type ObjectUserRegistry
- func (o *ObjectUserRegistry) AddRole(role uint32) bool
- func (o *ObjectUserRegistry) AddRoles(roles []uint32) bool
- func (o *ObjectUserRegistry) ByKey(db *sql.DB, object uint64, user uint64) error
- func (o *ObjectUserRegistry) ClearStates(states uint16) (uint16, error)
- func (o *ObjectUserRegistry) CreateStoreKey(hexCypher string) error
- func (o *ObjectUserRegistry) Flush(db sqlf.Executor, force bool) error
- func (o *ObjectUserRegistry) GetCategoryRole(category uint16) uint32
- func (o *ObjectUserRegistry) GetSubCategoryRole(subcategory uint16) uint32
- func (o *ObjectUserRegistry) HasExactRole(role uint32) bool
- func (o *ObjectUserRegistry) HasRole(role uint32) bool
- func (o *ObjectUserRegistry) IsAdminUser() bool
- func (o *ObjectUserRegistry) IsBlocked() bool
- func (o *ObjectUserRegistry) IsDirty() bool
- func (o *ObjectUserRegistry) IsInvitationManager() bool
- func (o *ObjectUserRegistry) IsNew() bool
- func (o *ObjectUserRegistry) IsReadOnly() bool
- func (o *ObjectUserRegistry) IsRolesEmpty() bool
- func (o *ObjectUserRegistry) IsRolesManager() bool
- func (o *ObjectUserRegistry) IsSystemOrganization() bool
- func (o *ObjectUserRegistry) IsValid() bool
- func (o *ObjectUserRegistry) Object() uint64
- func (o *ObjectUserRegistry) RemoveAllRoles() bool
- func (o *ObjectUserRegistry) RemoveCategory(category uint16) bool
- func (o *ObjectUserRegistry) RemoveExactRole(role uint32) bool
- func (o *ObjectUserRegistry) RemoveRole(role uint32) bool
- func (o *ObjectUserRegistry) RemoveRoles(roles []uint32) bool
- func (o *ObjectUserRegistry) Roles() []uint32
- func (o *ObjectUserRegistry) RolesFromCSV(csv string) bool
- func (o *ObjectUserRegistry) RolesToCSV() string
- func (o *ObjectUserRegistry) SetKey(object uint64, user uint64) error
- func (o *ObjectUserRegistry) SetState(states uint16) (uint16, error)
- func (o *ObjectUserRegistry) SetStoreKey(hexCypher string, key []byte) error
- func (o *ObjectUserRegistry) SetUserName(username string) (string, error)
- func (o *ObjectUserRegistry) State() uint16
- func (o *ObjectUserRegistry) StoreKey(hexCypher string) ([]byte, error)
- func (o *ObjectUserRegistry) StoreKeyBytes(key []byte) ([]byte, error)
- func (o *ObjectUserRegistry) User() uint64
- func (o *ObjectUserRegistry) UserName() string
- type OrgRegistry
- func (o *OrgRegistry) Alias() string
- func (o *OrgRegistry) ByAlias(db *sql.DB, alias string) error
- func (o *OrgRegistry) ByID(db *sql.DB, id uint64) error
- func (o *OrgRegistry) ClearStates(states uint16) (uint16, error)
- func (o *OrgRegistry) Find(db *sql.DB, id interface{}) error
- func (o *OrgRegistry) Flush(db sqlf.Executor, force bool) error
- func (o *OrgRegistry) HasAllStates(states uint16) bool
- func (o *OrgRegistry) HasAnyStates(states uint16) bool
- func (o *OrgRegistry) ID() uint64
- func (o *OrgRegistry) IsActive() bool
- func (o *OrgRegistry) IsBlocked() bool
- func (o *OrgRegistry) IsDirty() bool
- func (o *OrgRegistry) IsNew() bool
- func (o *OrgRegistry) IsReadOnly() bool
- func (o *OrgRegistry) IsSystem() bool
- func (o *OrgRegistry) IsValid() bool
- func (o *OrgRegistry) Name() string
- func (o *OrgRegistry) SetAlias(alias string) (string, error)
- func (o *OrgRegistry) SetID(id uint64) (uint64, error)
- func (o *OrgRegistry) SetName(name string) (string, error)
- func (o *OrgRegistry) SetStates(states uint16) (uint16, error)
- func (o *OrgRegistry) State() uint16
- type OrgStoreRegistry
- func (o *OrgStoreRegistry) ByAlias(db *sql.DB, org uint64, store string) error
- func (o *OrgStoreRegistry) ByID(db *sql.DB, org uint64, store uint64) error
- func (o *OrgStoreRegistry) ClearStates(states uint16) (uint16, error)
- func (o *OrgStoreRegistry) Find(db *sql.DB, org uint64, id interface{}) error
- func (o *OrgStoreRegistry) Flush(db sqlf.Executor, force bool) error
- func (o *OrgStoreRegistry) HasAllStates(states uint16) bool
- func (o *OrgStoreRegistry) HasAnyStates(states uint16) bool
- func (o *OrgStoreRegistry) IsBlocked() bool
- func (o *OrgStoreRegistry) IsDirty() bool
- func (o *OrgStoreRegistry) IsNew() bool
- func (o *OrgStoreRegistry) IsReadOnly() bool
- func (o *OrgStoreRegistry) IsValid() bool
- func (o *OrgStoreRegistry) Organization() uint64
- func (o *OrgStoreRegistry) SetKey(org uint64, user uint64) error
- func (o *OrgStoreRegistry) SetStates(states uint16) (uint16, error)
- func (o *OrgStoreRegistry) SetStoreAlias(alias string) (string, error)
- func (o *OrgStoreRegistry) State() uint16
- func (o *OrgStoreRegistry) Store() uint64
- func (o *OrgStoreRegistry) StoreAlias() string
- type Organization
- func (o *Organization) Alias() string
- func (o *Organization) ByAlias(db *sql.DB, alias string) error
- func (o *Organization) ByID(db *sql.DB, id uint32) error
- func (o *Organization) Created() *time.Time
- func (o *Organization) Creator() uint64
- func (o *Organization) Find(db *sql.DB, id interface{}) error
- func (o *Organization) Flush(db sqlf.Executor, force bool) error
- func (o *Organization) ID() uint32
- func (o *Organization) IsDirty() bool
- func (o *Organization) IsNew() bool
- func (o *Organization) IsSystem() bool
- func (o *Organization) IsValid() bool
- func (o *Organization) Modified() *time.Time
- func (o *Organization) Modifier() *uint64
- func (o *Organization) Name() string
- func (o *Organization) SetAlias(alias string) (string, error)
- func (o *Organization) SetCreator(id uint64) error
- func (o *Organization) SetID(id uint32) (uint32, error)
- func (o *Organization) SetModifier(id uint64) error
- func (o *Organization) SetName(name string) (string, error)
- func (o *Organization) UpdateRegistry() bool
- type S_Roles
- func (o *S_Roles) AddRole(role uint32) bool
- func (o *S_Roles) AddRoles(roles []uint32) bool
- func (o *S_Roles) GetCategoryRole(category uint16) uint32
- func (o *S_Roles) GetSubCategoryRole(subcategory uint16) uint32
- func (o *S_Roles) HasCategory(category uint16) bool
- func (o *S_Roles) HasExactRole(role uint32) bool
- func (o *S_Roles) HasRole(role uint32) bool
- func (o *S_Roles) HasSubCategory(subcategory uint16) bool
- func (o *S_Roles) IsRolesEmpty() bool
- func (o *S_Roles) RemoveAllRoles() bool
- func (o *S_Roles) RemoveCategory(category uint16) bool
- func (o *S_Roles) RemoveExactRole(role uint32) bool
- func (o *S_Roles) RemoveRole(role uint32) bool
- func (o *S_Roles) RemoveRoles(roles []uint32) bool
- func (o *S_Roles) Roles() []uint32
- func (o *S_Roles) RolesFromCSV(csv string) bool
- func (o *S_Roles) RolesToCSV() string
- type States
- type Store
- func (o *Store) Alias() string
- func (o *Store) ByAlias(db *sql.DB, alias string) error
- func (o *Store) ByID(db *sql.DB, id uint32) error
- func (o *Store) Created() *time.Time
- func (o *Store) Creator() uint64
- func (o *Store) Find(db *sql.DB, id interface{}) error
- func (o *Store) Flush(db sqlf.Executor, force bool) error
- func (o *Store) ID() uint32
- func (o *Store) IsDirty() bool
- func (o *Store) IsNew() bool
- func (o *Store) IsValid() bool
- func (o *Store) Modified() *time.Time
- func (o *Store) Modifier() *uint64
- func (o *Store) Name() string
- func (o *Store) Organization() uint64
- func (o *Store) SetAlias(alias string) (string, error)
- func (o *Store) SetCreator(id uint64) error
- func (o *Store) SetID(id uint32) (uint32, error)
- func (o *Store) SetModifier(id uint64) error
- func (o *Store) SetName(name string) (string, error)
- func (o *Store) SetOrganization(org uint64) (uint64, error)
- func (o *Store) UpdateRegistry() bool
- type StoreObject
- func (o *StoreObject) ByID(db *sql.DB, id uint32) error
- func (o *StoreObject) ByKey(db *sql.DB, store uint32, id uint32) error
- func (o *StoreObject) Created() *time.Time
- func (o *StoreObject) Creator() uint64
- func (o *StoreObject) Flush(db sqlf.Executor, force bool) error
- func (o *StoreObject) ID() uint32
- func (o *StoreObject) IsDirty() bool
- func (o *StoreObject) IsNew() bool
- func (o *StoreObject) Modified() *time.Time
- func (o *StoreObject) Modifier() *uint64
- func (o *StoreObject) Object() []byte
- func (o *StoreObject) Parent() uint32
- func (o *StoreObject) SetCreator(id uint64) error
- func (o *StoreObject) SetModifier(id uint64) error
- func (o *StoreObject) SetObject(ob []byte) error
- func (o *StoreObject) SetParent(p uint32) (uint32, error)
- func (o *StoreObject) SetStore(s uint32) (uint32, error)
- func (o *StoreObject) SetTitle(t string) (string, error)
- func (o *StoreObject) SetType(t uint8) (uint8, error)
- func (o *StoreObject) Store() uint32
- func (o *StoreObject) Title() string
- func (o *StoreObject) Type() uint8
- type StoreTemplateObject
- func (o *StoreTemplateObject) DecryptObject(key []byte, cbs []byte) error
- func (o *StoreTemplateObject) EncryptObject(key []byte) ([]byte, error)
- func (o *StoreTemplateObject) FromString(s string) error
- func (o *StoreTemplateObject) MarshalJSON() ([]byte, error)
- func (o *StoreTemplateObject) SetTemplate(v string) (string, error)
- func (o *StoreTemplateObject) SetTitle(v string) (string, error)
- func (o *StoreTemplateObject) SetValues(v map[string]interface{}) (interface{}, error)
- func (o *StoreTemplateObject) SetVersion(v uint16) (uint16, error)
- func (o *StoreTemplateObject) Template() string
- func (o *StoreTemplateObject) Title() string
- func (o *StoreTemplateObject) ToString() (string, error)
- func (o *StoreTemplateObject) UnmarshalJSON(b []byte) error
- func (o *StoreTemplateObject) Values() interface{}
- func (o *StoreTemplateObject) Version() uint16
- type Template
- func (o *Template) ByID(db *sql.DB, id uint32) error
- func (o *Template) ByNameLatest(db *sql.DB, name string) error
- func (o *Template) ByNameVersion(db *sql.DB, name string, version uint16) error
- func (o *Template) Created() *time.Time
- func (o *Template) Description() string
- func (o *Template) Flush(db sqlf.Executor, force bool) error
- func (o *Template) ID() uint32
- func (o *Template) IsDirty() bool
- func (o *Template) IsNew() bool
- func (o *Template) IsValid() bool
- func (o *Template) Model() string
- func (o *Template) ModelJSON() (map[string]interface{}, error)
- func (o *Template) SetDescription(s string) (string, error)
- func (o *Template) SetID(id uint32) (uint32, error)
- func (o *Template) SetModel(s string) (string, error)
- func (o *Template) SetTemplate(name string, version uint16) error
- func (o *Template) SetTitle(s string) (string, error)
- func (o *Template) Template() string
- func (o *Template) Title() string
- func (o *Template) Version() uint16
- type User
- func (o *User) ByEmail(db *sql.DB, email string) error
- func (o *User) ByID(db *sql.DB, id uint32) error
- func (o *User) ByUserName(db *sql.DB, username string) error
- func (o *User) Created() *time.Time
- func (o *User) Creator() uint64
- func (o *User) Email() string
- func (o *User) Find(db *sql.DB, id interface{}) error
- func (o *User) Flush(db sqlf.Executor, force bool) error
- func (o *User) ID() uint32
- func (o *User) IsDirty() bool
- func (o *User) IsNew() bool
- func (o *User) IsValid() bool
- func (o *User) Modified() *time.Time
- func (o *User) Modifier() *uint64
- func (o *User) Name() string
- func (o *User) ResetHash(hash string) error
- func (o *User) SetCreator(id uint64) error
- func (o *User) SetEmail(email string) (string, error)
- func (o *User) SetHash(hash string) error
- func (o *User) SetID(id uint32) (uint32, error)
- func (o *User) SetModifier(id uint64) error
- func (o *User) SetName(name string) (string, error)
- func (o *User) SetUserName(username string) (string, error)
- func (o *User) TestHash(hash string) bool
- func (o *User) TestPassword(password string) bool
- func (o *User) UpdateHash(old, hash string) error
- func (o *User) UpdateRegistry() bool
- func (o *User) UserName() string
- type UserObjectRegistry
- func (o *UserObjectRegistry) Alias() string
- func (o *UserObjectRegistry) ByKey(db *sql.DB, user uint64, object uint64) error
- func (o *UserObjectRegistry) Favorite() bool
- func (o *UserObjectRegistry) Flush(db sqlf.Executor, force bool) error
- func (o *UserObjectRegistry) IsDirty() bool
- func (o *UserObjectRegistry) IsNew() bool
- func (o *UserObjectRegistry) IsSystemOrganization() bool
- func (o *UserObjectRegistry) IsValid() bool
- func (o *UserObjectRegistry) Object() uint64
- func (o *UserObjectRegistry) SetAlias(alias string) (string, error)
- func (o *UserObjectRegistry) SetFavorite(f bool) (bool, error)
- func (o *UserObjectRegistry) SetKey(user uint64, object uint64) error
- func (o *UserObjectRegistry) Type() uint16
- func (o *UserObjectRegistry) User() uint64
- type UserRegistry
- func (o *UserRegistry) ByEmail(db *sql.DB, email string) error
- func (o *UserRegistry) ByID(db *sql.DB, id uint64) error
- func (o *UserRegistry) ByUserName(db *sql.DB, username string) error
- func (o *UserRegistry) ClearStates(states uint16)
- func (o *UserRegistry) Email() string
- func (o *UserRegistry) Find(db *sql.DB, id interface{}) error
- func (o *UserRegistry) Flush(db sqlf.Executor, force bool) error
- func (o *UserRegistry) HasAllStates(states uint16) bool
- func (o *UserRegistry) HasAnyStates(states uint16) bool
- func (o *UserRegistry) ID() uint64
- func (o *UserRegistry) IsActive() bool
- func (o *UserRegistry) IsBlocked() bool
- func (o *UserRegistry) IsDirty() bool
- func (o *UserRegistry) IsNew() bool
- func (o *UserRegistry) IsReadOnly() bool
- func (o *UserRegistry) IsValid() bool
- func (o *UserRegistry) Name() string
- func (o *UserRegistry) SetEmail(email string) (string, error)
- func (o *UserRegistry) SetID(id uint64) (uint64, error)
- func (o *UserRegistry) SetName(name string) (string, error)
- func (o *UserRegistry) SetStates(states uint16)
- func (o *UserRegistry) SetUserName(username string) (string, error)
- func (o *UserRegistry) State() uint16
- func (o *UserRegistry) TestHash(hash string) bool
- func (o *UserRegistry) TestPassword(password string) bool
- func (o *UserRegistry) UpdatePassword(u *User) error
- func (o *UserRegistry) UpdateRegistry(u *User) error
- func (o *UserRegistry) UserName() string
Constants ¶
const CATEGORY_ORG = 0x0200 // ORGANIZATION ROLES
const CATEGORY_STORE = 0x0300 // STORE ROLES
const CATEGORY_SYSTEM = 0x0100 // SYSTEM ROLES
Object: CATEGORIES //
const FUNCTION_ALL = 0xFFFF
FUNCTION GROUPS
const FUNCTION_CREATE = 0x0100
const FUNCTION_DELETE = 0x0400
const FUNCTION_LIST = 0x0002
const FUNCTION_MODIFY = 0xFF00
const FUNCTION_READ = 0x0001
FUNCTIONS
const FUNCTION_READONLY = 0x00FF
const FUNCTION_READ_LIST = 0x0003
COMBINED READ and LIST
const FUNCTION_UPDATE = 0x0200
const OBJECT_TYPE_FOLDER = 0
KNOWN OBJECT TYPES
const OBJECT_TYPE_JSON = 1
const STATE_BLOCKED = 0x0002 // User/Organization Blocked (USE: Administrator Blocked User Access)
const STATE_DELETE = 0x2000 // Object Marked for Deletion
const STATE_INACTIVE = 0x0001 // User Locked Out of System (USE: Too Many Failed Password Attempts)
FUNCTIONS
const STATE_MASK_FUNCTIONS = 0x0FFF // MASK LOWER BITS
const STATE_MASK_MARKERS = 0xF000 // MASK UPPER Bits
MASKS
const STATE_READONLY = 0x0004 // User/Organization Disabled All Modification Roles
const STATE_SYSTEM = 0x1000 // SYSTEM User/Organization
MARKERS
const SUBCATEGORY_CONF = 0x0001 // Configuration Management
Management: SUB-CATEGORIES //
const SUBCATEGORY_INVITE = 0x0004 // Invitation Management
const SUBCATEGORY_OBJECT = 0x0007 // Store Object Management
const SUBCATEGORY_ORG = 0x0005 // Organization Management
const SUBCATEGORY_ROLES = 0x0003 // Roles Management
const SUBCATEGORY_STORE = 0x0006 // Store Management
const SUBCATEGORY_TEMPLATE = 0x0008 // Template Management
const SUBCATEGORY_USER = 0x0002 // User Management
Variables ¶
This section is empty.
Functions ¶
func ClearStates ¶
func CountInvitations ¶
func CountRegisteredObjectInviteManagers ¶ added in v0.0.6
func CountRegisteredObjectRoleManagers ¶ added in v0.0.6
func CountRegisteredOrgs ¶
func CountRegisteredUsers ¶
func CountStoreObject ¶
func CountStoreParentObject ¶
func DeleteRegisteredObjectUser ¶ added in v0.0.6
func DeleteRegisteredUserObject ¶ added in v0.0.6
func DeleteStoreObjectFolder ¶
func GetShardInviteID ¶ added in v0.0.5
func GetShardObjectID ¶ added in v0.0.5
func GetShardOrgID ¶ added in v0.0.5
func GetShardStoreID ¶ added in v0.0.5
func GetShardUserID ¶ added in v0.0.5
func HasAllStates ¶
func HasAnyStates ¶
func HasPendingInvitation ¶
func QueryInvitations ¶
func QueryInvitations(db *sql.DB, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func QueryRegisteredObjectTemplates ¶
func QueryRegisteredObjectTemplates(db *sql.DB, object uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func QueryRegisteredObjectUsers ¶
func QueryRegisteredObjectUsers(db *sql.DB, object uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func QueryRegisteredOrgs ¶
func QueryRegisteredOrgs(db *sql.DB, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func QueryRegisteredStores ¶
func QueryRegisteredStores(db *sql.DB, org uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func QueryRegisteredUserObjects ¶
func QueryRegisteredUserObjects(db *sql.DB, user uint64, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func QueryRegisteredUserObjectsByType ¶
func QueryRegisteredUserObjectsByType(db *sql.DB, user uint64, ltype uint16, q query.TQueryConditions, c bool) (query.TQueryResults, error)
TODO Implement Delete (Both From Within an Entry and Without a Structure)
func QueryRegisteredUsers ¶
func QueryRegisteredUsers(db *sql.DB, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func QueryStoreParentObjects ¶
func QueryStoreParentObjects(db *sql.DB, store uint32, parent uint32, q query.TQueryConditions, c bool) (query.TQueryResults, error)
func RandomAlphaString ¶
func RoleAddFunctions ¶
func RoleCategory ¶
func RoleExactMatch ¶
func RoleFunctions ¶
func RoleIsValid ¶
func RoleMatchCategory ¶
func RoleMatchExactFunctions ¶
func RoleMatchFunctions ¶
func RoleMatchSubCategory ¶ added in v0.0.6
func RoleRemoveFunctions ¶
func RoleSubCategory ¶ added in v0.0.6
Types ¶
type DBSessionManager ¶
type DBSessionManager struct {
// contains filtered or unexported fields
}
func NewDBManager ¶
func NewDBManager(c *common.ShardedDatabase) *DBSessionManager
Constructor Create an RPF Instance
type I_Roles ¶
type I_Roles interface { Roles() []uint32 IsRolesEmpty() bool HasRole(role uint32) bool HasExactRole(role uint32) bool GetCategoryRole(category uint16) uint32 GetSubCategoryRole(subcategory uint16) uint32 AddRole(role uint32) bool AddRoles(roles []uint32) bool RemoveRole(role uint32) bool RemoveCategory(category uint16) bool RemoveExactRole(role uint32) bool RemoveRoles(roles []uint32) bool RemoveAllRoles() bool RolesFromCSV(csv string) bool RolesToCSV() string }
type Invitation ¶
type Invitation struct {
// contains filtered or unexported fields
}
Invitation Object Definition
func (*Invitation) AddRole ¶
func (o *Invitation) AddRole(role uint32) bool
func (*Invitation) AddRoles ¶
func (o *Invitation) AddRoles(roles []uint32) bool
func (*Invitation) ByID ¶
func (o *Invitation) ByID(db *sql.DB, id uint32) error
ByID Finds Entry By ID
func (*Invitation) Created ¶
func (o *Invitation) Created() *time.Time
func (*Invitation) Creator ¶
func (o *Invitation) Creator() uint64
func (*Invitation) Expiration ¶
func (o *Invitation) Expiration() *time.Time
func (*Invitation) ExpirationUTC ¶
func (o *Invitation) ExpirationUTC() string
func (*Invitation) HasExactRole ¶
func (o *Invitation) HasExactRole(role uint32) bool
func (*Invitation) HasRole ¶
func (o *Invitation) HasRole(role uint32) bool
func (*Invitation) InviteeEmail ¶
func (o *Invitation) InviteeEmail() string
func (*Invitation) IsDirty ¶
func (o *Invitation) IsDirty() bool
TODO Implement Delete (Both From Within an Entry and Without a Structure) IsDirty Have the Object Properties Changed since last Serialization?
func (*Invitation) IsNew ¶
func (o *Invitation) IsNew() bool
func (*Invitation) IsRolesEmpty ¶
func (o *Invitation) IsRolesEmpty() bool
func (*Invitation) IsValid ¶
func (o *Invitation) IsValid() bool
func (*Invitation) Key ¶
func (o *Invitation) Key() *uint64
func (*Invitation) KeyPick ¶
func (o *Invitation) KeyPick() []byte
func (*Invitation) Message ¶
func (o *Invitation) Message() string
func (*Invitation) Object ¶
func (o *Invitation) Object() uint64
func (*Invitation) RemoveAllRoles ¶
func (o *Invitation) RemoveAllRoles() bool
func (*Invitation) RemoveCategory ¶
func (o *Invitation) RemoveCategory(category uint16) bool
func (*Invitation) RemoveExactRole ¶
func (o *Invitation) RemoveExactRole(role uint32) bool
func (*Invitation) RemoveRole ¶
func (o *Invitation) RemoveRole(role uint32) bool
func (*Invitation) RemoveRoles ¶
func (o *Invitation) RemoveRoles(roles []uint32) bool
func (*Invitation) RolesFromCSV ¶
func (o *Invitation) RolesFromCSV(csv string) bool
func (*Invitation) RolesToCSV ¶
func (o *Invitation) RolesToCSV() string
func (*Invitation) SetCreator ¶
func (o *Invitation) SetCreator(id uint64) (uint64, error)
func (*Invitation) SetExpiration ¶
func (o *Invitation) SetExpiration(t time.Time) error
func (*Invitation) SetExpiresIn ¶
func (o *Invitation) SetExpiresIn(days uint16) error
func (*Invitation) SetInviteeEmail ¶
func (o *Invitation) SetInviteeEmail(email string) (string, error)
func (*Invitation) SetMessage ¶
func (o *Invitation) SetMessage(m string) (string, error)
func (*Invitation) UID ¶
func (o *Invitation) UID() string
type InvitationRegistry ¶
type InvitationRegistry struct {
// contains filtered or unexported fields
}
Invitation Registry Object Definition
func InvitationToRegistry ¶
func InvitationToRegistry(i *Invitation, group uint16, shard uint32) (*InvitationRegistry, error)
func (*InvitationRegistry) ByID ¶
func (o *InvitationRegistry) ByID(db *sql.DB, id uint64) error
ByID Finds Entry By ID
func (*InvitationRegistry) ByUID ¶
func (o *InvitationRegistry) ByUID(db *sql.DB, uid string) error
ByUID Finds Entry By Unique ID String
func (*InvitationRegistry) Creator ¶
func (o *InvitationRegistry) Creator() uint64
func (*InvitationRegistry) Expiration ¶
func (o *InvitationRegistry) Expiration() *time.Time
func (*InvitationRegistry) ExpirationUTC ¶
func (o *InvitationRegistry) ExpirationUTC() string
func (*InvitationRegistry) Flush ¶
func (o *InvitationRegistry) Flush(db sqlf.Executor, force bool) error
func (*InvitationRegistry) HasPending ¶
func (o *InvitationRegistry) HasPending(db *sql.DB) (bool, error)
func (*InvitationRegistry) ID ¶
func (o *InvitationRegistry) ID() uint64
func (*InvitationRegistry) InviteeEmail ¶
func (o *InvitationRegistry) InviteeEmail() string
func (*InvitationRegistry) IsActive ¶
func (o *InvitationRegistry) IsActive() bool
func (*InvitationRegistry) IsDirty ¶
func (o *InvitationRegistry) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*InvitationRegistry) IsExpired ¶
func (o *InvitationRegistry) IsExpired() bool
func (*InvitationRegistry) IsNew ¶
func (o *InvitationRegistry) IsNew() bool
func (*InvitationRegistry) IsValid ¶
func (o *InvitationRegistry) IsValid() bool
func (*InvitationRegistry) Object ¶
func (o *InvitationRegistry) Object() uint64
func (*InvitationRegistry) SetAccepted ¶
func (o *InvitationRegistry) SetAccepted() uint16
func (*InvitationRegistry) SetDeclined ¶
func (o *InvitationRegistry) SetDeclined() uint16
func (*InvitationRegistry) SetExpiration ¶
func (o *InvitationRegistry) SetExpiration(t time.Time) error
func (*InvitationRegistry) SetExpiresIn ¶
func (o *InvitationRegistry) SetExpiresIn(days uint16) error
func (*InvitationRegistry) SetRevoked ¶
func (o *InvitationRegistry) SetRevoked() uint16
func (*InvitationRegistry) SetState ¶
func (o *InvitationRegistry) SetState(state uint16) error
func (*InvitationRegistry) State ¶
func (o *InvitationRegistry) State() uint16
func (*InvitationRegistry) UID ¶
func (o *InvitationRegistry) UID() string
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Keys Object
func (*Key) Expiration ¶
func (*Key) ExpirationUTC ¶
func (*Key) SetExpiresIn ¶
type ObjectTemplateRegistry ¶
type ObjectTemplateRegistry struct {
// contains filtered or unexported fields
}
Object Template Registry Definition
func (*ObjectTemplateRegistry) ByTemplate ¶
ByTemplate Find Template in Object by Name
func (*ObjectTemplateRegistry) Delete ¶
func (o *ObjectTemplateRegistry) Delete(db *sql.DB, force bool) error
func (*ObjectTemplateRegistry) Flush ¶
func (o *ObjectTemplateRegistry) Flush(db sqlf.Executor, force bool) error
func (*ObjectTemplateRegistry) IsDirty ¶
func (o *ObjectTemplateRegistry) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*ObjectTemplateRegistry) IsNew ¶
func (o *ObjectTemplateRegistry) IsNew() bool
func (*ObjectTemplateRegistry) IsSystemOrganization ¶
func (o *ObjectTemplateRegistry) IsSystemOrganization() bool
func (*ObjectTemplateRegistry) IsValid ¶
func (o *ObjectTemplateRegistry) IsValid() bool
func (*ObjectTemplateRegistry) Object ¶
func (o *ObjectTemplateRegistry) Object() uint64
ID Get Organization ID
func (*ObjectTemplateRegistry) SetKey ¶
func (o *ObjectTemplateRegistry) SetKey(object uint64, template string) error
func (*ObjectTemplateRegistry) SetTitle ¶
func (o *ObjectTemplateRegistry) SetTitle(s string) (string, error)
func (*ObjectTemplateRegistry) Template ¶
func (o *ObjectTemplateRegistry) Template() string
func (*ObjectTemplateRegistry) Title ¶
func (o *ObjectTemplateRegistry) Title() string
type ObjectUserRegistry ¶
type ObjectUserRegistry struct { States // contains filtered or unexported fields }
Org User Registry Definition
func (*ObjectUserRegistry) AddRole ¶
func (o *ObjectUserRegistry) AddRole(role uint32) bool
func (*ObjectUserRegistry) AddRoles ¶
func (o *ObjectUserRegistry) AddRoles(roles []uint32) bool
func (*ObjectUserRegistry) ClearStates ¶
func (o *ObjectUserRegistry) ClearStates(states uint16) (uint16, error)
func (*ObjectUserRegistry) CreateStoreKey ¶
func (o *ObjectUserRegistry) CreateStoreKey(hexCypher string) error
func (*ObjectUserRegistry) Flush ¶
func (o *ObjectUserRegistry) Flush(db sqlf.Executor, force bool) error
func (*ObjectUserRegistry) GetCategoryRole ¶ added in v0.0.6
func (o *ObjectUserRegistry) GetCategoryRole(category uint16) uint32
func (*ObjectUserRegistry) GetSubCategoryRole ¶ added in v0.0.6
func (o *ObjectUserRegistry) GetSubCategoryRole(subcategory uint16) uint32
func (*ObjectUserRegistry) HasExactRole ¶
func (o *ObjectUserRegistry) HasExactRole(role uint32) bool
func (*ObjectUserRegistry) HasRole ¶
func (o *ObjectUserRegistry) HasRole(role uint32) bool
func (*ObjectUserRegistry) IsAdminUser ¶
func (o *ObjectUserRegistry) IsAdminUser() bool
func (*ObjectUserRegistry) IsBlocked ¶
func (o *ObjectUserRegistry) IsBlocked() bool
State Management
func (*ObjectUserRegistry) IsDirty ¶
func (o *ObjectUserRegistry) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*ObjectUserRegistry) IsInvitationManager ¶ added in v0.0.6
func (o *ObjectUserRegistry) IsInvitationManager() bool
func (*ObjectUserRegistry) IsNew ¶
func (o *ObjectUserRegistry) IsNew() bool
func (*ObjectUserRegistry) IsReadOnly ¶
func (o *ObjectUserRegistry) IsReadOnly() bool
func (*ObjectUserRegistry) IsRolesEmpty ¶
func (o *ObjectUserRegistry) IsRolesEmpty() bool
func (*ObjectUserRegistry) IsRolesManager ¶ added in v0.0.6
func (o *ObjectUserRegistry) IsRolesManager() bool
func (*ObjectUserRegistry) IsSystemOrganization ¶
func (o *ObjectUserRegistry) IsSystemOrganization() bool
func (*ObjectUserRegistry) IsValid ¶
func (o *ObjectUserRegistry) IsValid() bool
func (*ObjectUserRegistry) Object ¶
func (o *ObjectUserRegistry) Object() uint64
ID Get Organization ID
func (*ObjectUserRegistry) RemoveAllRoles ¶
func (o *ObjectUserRegistry) RemoveAllRoles() bool
func (*ObjectUserRegistry) RemoveCategory ¶
func (o *ObjectUserRegistry) RemoveCategory(category uint16) bool
func (*ObjectUserRegistry) RemoveExactRole ¶
func (o *ObjectUserRegistry) RemoveExactRole(role uint32) bool
func (*ObjectUserRegistry) RemoveRole ¶
func (o *ObjectUserRegistry) RemoveRole(role uint32) bool
func (*ObjectUserRegistry) RemoveRoles ¶
func (o *ObjectUserRegistry) RemoveRoles(roles []uint32) bool
func (*ObjectUserRegistry) Roles ¶
func (o *ObjectUserRegistry) Roles() []uint32
Implementation of I_Roles //
func (*ObjectUserRegistry) RolesFromCSV ¶
func (o *ObjectUserRegistry) RolesFromCSV(csv string) bool
func (*ObjectUserRegistry) RolesToCSV ¶
func (o *ObjectUserRegistry) RolesToCSV() string
func (*ObjectUserRegistry) SetKey ¶
func (o *ObjectUserRegistry) SetKey(object uint64, user uint64) error
func (*ObjectUserRegistry) SetState ¶
func (o *ObjectUserRegistry) SetState(states uint16) (uint16, error)
func (*ObjectUserRegistry) SetStoreKey ¶
func (o *ObjectUserRegistry) SetStoreKey(hexCypher string, key []byte) error
func (*ObjectUserRegistry) SetUserName ¶
func (o *ObjectUserRegistry) SetUserName(username string) (string, error)
func (*ObjectUserRegistry) State ¶
func (o *ObjectUserRegistry) State() uint16
func (*ObjectUserRegistry) StoreKey ¶
func (o *ObjectUserRegistry) StoreKey(hexCypher string) ([]byte, error)
STORE KEY
func (*ObjectUserRegistry) StoreKeyBytes ¶
func (o *ObjectUserRegistry) StoreKeyBytes(key []byte) ([]byte, error)
func (*ObjectUserRegistry) User ¶
func (o *ObjectUserRegistry) User() uint64
func (*ObjectUserRegistry) UserName ¶
func (o *ObjectUserRegistry) UserName() string
type OrgRegistry ¶
type OrgRegistry struct { States // contains filtered or unexported fields }
User Object Definition
func (*OrgRegistry) Alias ¶
func (o *OrgRegistry) Alias() string
func (*OrgRegistry) ByAlias ¶
func (o *OrgRegistry) ByAlias(db *sql.DB, alias string) error
ByOrgName Finds Org By Alias
func (*OrgRegistry) ByID ¶
func (o *OrgRegistry) ByID(db *sql.DB, id uint64) error
ByID Finds User By ID
func (*OrgRegistry) ClearStates ¶
func (o *OrgRegistry) ClearStates(states uint16) (uint16, error)
func (*OrgRegistry) HasAllStates ¶
func (o *OrgRegistry) HasAllStates(states uint16) bool
func (*OrgRegistry) HasAnyStates ¶
func (o *OrgRegistry) HasAnyStates(states uint16) bool
func (*OrgRegistry) ID ¶
func (o *OrgRegistry) ID() uint64
func (*OrgRegistry) IsActive ¶
func (o *OrgRegistry) IsActive() bool
func (*OrgRegistry) IsBlocked ¶
func (o *OrgRegistry) IsBlocked() bool
func (*OrgRegistry) IsDirty ¶
func (o *OrgRegistry) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*OrgRegistry) IsNew ¶
func (o *OrgRegistry) IsNew() bool
func (*OrgRegistry) IsReadOnly ¶
func (o *OrgRegistry) IsReadOnly() bool
func (*OrgRegistry) IsSystem ¶
func (o *OrgRegistry) IsSystem() bool
func (*OrgRegistry) IsValid ¶
func (o *OrgRegistry) IsValid() bool
func (*OrgRegistry) Name ¶
func (o *OrgRegistry) Name() string
func (*OrgRegistry) State ¶
func (o *OrgRegistry) State() uint16
type OrgStoreRegistry ¶
type OrgStoreRegistry struct { States // contains filtered or unexported fields }
Org Store Registry Definition
func (*OrgStoreRegistry) ClearStates ¶
func (o *OrgStoreRegistry) ClearStates(states uint16) (uint16, error)
func (*OrgStoreRegistry) Find ¶
func (o *OrgStoreRegistry) Find(db *sql.DB, org uint64, id interface{}) error
General Find Store in Org
func (*OrgStoreRegistry) Flush ¶
func (o *OrgStoreRegistry) Flush(db sqlf.Executor, force bool) error
func (*OrgStoreRegistry) HasAllStates ¶
func (o *OrgStoreRegistry) HasAllStates(states uint16) bool
func (*OrgStoreRegistry) HasAnyStates ¶
func (o *OrgStoreRegistry) HasAnyStates(states uint16) bool
func (*OrgStoreRegistry) IsBlocked ¶
func (o *OrgStoreRegistry) IsBlocked() bool
func (*OrgStoreRegistry) IsDirty ¶
func (o *OrgStoreRegistry) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*OrgStoreRegistry) IsNew ¶
func (o *OrgStoreRegistry) IsNew() bool
func (*OrgStoreRegistry) IsReadOnly ¶
func (o *OrgStoreRegistry) IsReadOnly() bool
func (*OrgStoreRegistry) IsValid ¶
func (o *OrgStoreRegistry) IsValid() bool
func (*OrgStoreRegistry) Organization ¶
func (o *OrgStoreRegistry) Organization() uint64
ID Get Organization ID
func (*OrgStoreRegistry) SetStates ¶
func (o *OrgStoreRegistry) SetStates(states uint16) (uint16, error)
func (*OrgStoreRegistry) SetStoreAlias ¶
func (o *OrgStoreRegistry) SetStoreAlias(alias string) (string, error)
func (*OrgStoreRegistry) State ¶
func (o *OrgStoreRegistry) State() uint16
func (*OrgStoreRegistry) Store ¶
func (o *OrgStoreRegistry) Store() uint64
func (*OrgStoreRegistry) StoreAlias ¶
func (o *OrgStoreRegistry) StoreAlias() string
type Organization ¶
type Organization struct {
// contains filtered or unexported fields
}
Organization Object Definition
func (*Organization) Alias ¶
func (o *Organization) Alias() string
func (*Organization) ByAlias ¶
func (o *Organization) ByAlias(db *sql.DB, alias string) error
ByOrgName Finds Organization By Name
func (*Organization) ByID ¶
func (o *Organization) ByID(db *sql.DB, id uint32) error
ByID Finds User By ID
func (*Organization) Created ¶
func (o *Organization) Created() *time.Time
func (*Organization) Creator ¶
func (o *Organization) Creator() uint64
func (*Organization) IsDirty ¶
func (o *Organization) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*Organization) IsNew ¶
func (o *Organization) IsNew() bool
func (*Organization) IsSystem ¶
func (o *Organization) IsSystem() bool
func (*Organization) IsValid ¶
func (o *Organization) IsValid() bool
func (*Organization) Modified ¶
func (o *Organization) Modified() *time.Time
func (*Organization) Modifier ¶
func (o *Organization) Modifier() *uint64
func (*Organization) Name ¶
func (o *Organization) Name() string
func (*Organization) SetCreator ¶
func (o *Organization) SetCreator(id uint64) error
func (*Organization) SetModifier ¶
func (o *Organization) SetModifier(id uint64) error
func (*Organization) UpdateRegistry ¶
func (o *Organization) UpdateRegistry() bool
type S_Roles ¶
type S_Roles struct { I_Roles // contains filtered or unexported fields }
func (*S_Roles) GetCategoryRole ¶ added in v0.0.6
func (*S_Roles) GetSubCategoryRole ¶ added in v0.0.6
func (*S_Roles) HasCategory ¶ added in v0.0.6
func (*S_Roles) HasExactRole ¶
func (*S_Roles) HasSubCategory ¶ added in v0.0.6
func (*S_Roles) IsRolesEmpty ¶
func (*S_Roles) RemoveAllRoles ¶
func (*S_Roles) RemoveCategory ¶
func (*S_Roles) RemoveExactRole ¶
func (*S_Roles) RemoveRole ¶
func (*S_Roles) RemoveRoles ¶
func (*S_Roles) RolesFromCSV ¶
func (*S_Roles) RolesToCSV ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store Object Definition
func (*Store) SetCreator ¶
func (*Store) SetModifier ¶
func (*Store) UpdateRegistry ¶
type StoreObject ¶
type StoreObject struct {
// contains filtered or unexported fields
}
STORE Object Definition
func ChildObjectFromParent ¶
func ChildObjectFromParent(p *StoreObject) (*StoreObject, error)
func QueryStoreObjects ¶
TODO Implement Delete (Both From Within an Entry and Without a Structure)
func (*StoreObject) ByID ¶
func (o *StoreObject) ByID(db *sql.DB, id uint32) error
ByID Finds Entry By Object ID
func (*StoreObject) Created ¶
func (o *StoreObject) Created() *time.Time
func (*StoreObject) Creator ¶
func (o *StoreObject) Creator() uint64
func (*StoreObject) ID ¶
func (o *StoreObject) ID() uint32
func (*StoreObject) IsDirty ¶
func (o *StoreObject) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*StoreObject) IsNew ¶
func (o *StoreObject) IsNew() bool
func (*StoreObject) Modified ¶
func (o *StoreObject) Modified() *time.Time
func (*StoreObject) Modifier ¶
func (o *StoreObject) Modifier() *uint64
func (*StoreObject) Object ¶
func (o *StoreObject) Object() []byte
func (*StoreObject) Parent ¶
func (o *StoreObject) Parent() uint32
func (*StoreObject) SetCreator ¶
func (o *StoreObject) SetCreator(id uint64) error
func (*StoreObject) SetModifier ¶
func (o *StoreObject) SetModifier(id uint64) error
func (*StoreObject) SetObject ¶
func (o *StoreObject) SetObject(ob []byte) error
func (*StoreObject) Store ¶
func (o *StoreObject) Store() uint32
func (*StoreObject) Title ¶
func (o *StoreObject) Title() string
func (*StoreObject) Type ¶
func (o *StoreObject) Type() uint8
type StoreTemplateObject ¶
type StoreTemplateObject struct {
// contains filtered or unexported fields
}
Templated Object for Storage
func (*StoreTemplateObject) DecryptObject ¶
func (o *StoreTemplateObject) DecryptObject(key []byte, cbs []byte) error
func (*StoreTemplateObject) EncryptObject ¶
func (o *StoreTemplateObject) EncryptObject(key []byte) ([]byte, error)
func (*StoreTemplateObject) FromString ¶
func (o *StoreTemplateObject) FromString(s string) error
func (*StoreTemplateObject) MarshalJSON ¶
func (o *StoreTemplateObject) MarshalJSON() ([]byte, error)
func (*StoreTemplateObject) SetTemplate ¶
func (o *StoreTemplateObject) SetTemplate(v string) (string, error)
func (*StoreTemplateObject) SetTitle ¶
func (o *StoreTemplateObject) SetTitle(v string) (string, error)
func (*StoreTemplateObject) SetValues ¶
func (o *StoreTemplateObject) SetValues(v map[string]interface{}) (interface{}, error)
func (*StoreTemplateObject) SetVersion ¶
func (o *StoreTemplateObject) SetVersion(v uint16) (uint16, error)
func (*StoreTemplateObject) Template ¶
func (o *StoreTemplateObject) Template() string
func (*StoreTemplateObject) Title ¶
func (o *StoreTemplateObject) Title() string
func (*StoreTemplateObject) ToString ¶
func (o *StoreTemplateObject) ToString() (string, error)
func (*StoreTemplateObject) UnmarshalJSON ¶
func (o *StoreTemplateObject) UnmarshalJSON(b []byte) error
func (*StoreTemplateObject) Values ¶
func (o *StoreTemplateObject) Values() interface{}
func (*StoreTemplateObject) Version ¶
func (o *StoreTemplateObject) Version() uint16
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template Object Definition
func (*Template) ByNameLatest ¶
Finds Latest Version ofTemplate By Name
func (*Template) ByNameVersion ¶
Finds Template By Name and Version
func (*Template) Description ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User Profile
func (*User) ByUserName ¶
ByUserName Finds User By User Name
func (*User) SetCreator ¶
func (*User) SetModifier ¶
func (*User) TestPassword ¶
func (*User) UpdateHash ¶
func (*User) UpdateRegistry ¶
type UserObjectRegistry ¶
type UserObjectRegistry struct {
// contains filtered or unexported fields
}
User <--> Container Registry Definition
func (*UserObjectRegistry) Alias ¶
func (o *UserObjectRegistry) Alias() string
func (*UserObjectRegistry) Favorite ¶
func (o *UserObjectRegistry) Favorite() bool
func (*UserObjectRegistry) Flush ¶
func (o *UserObjectRegistry) Flush(db sqlf.Executor, force bool) error
func (*UserObjectRegistry) IsDirty ¶
func (o *UserObjectRegistry) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*UserObjectRegistry) IsNew ¶
func (o *UserObjectRegistry) IsNew() bool
func (*UserObjectRegistry) IsSystemOrganization ¶
func (o *UserObjectRegistry) IsSystemOrganization() bool
func (*UserObjectRegistry) IsValid ¶
func (o *UserObjectRegistry) IsValid() bool
func (*UserObjectRegistry) Object ¶
func (o *UserObjectRegistry) Object() uint64
func (*UserObjectRegistry) SetAlias ¶
func (o *UserObjectRegistry) SetAlias(alias string) (string, error)
func (*UserObjectRegistry) SetFavorite ¶
func (o *UserObjectRegistry) SetFavorite(f bool) (bool, error)
func (*UserObjectRegistry) SetKey ¶
func (o *UserObjectRegistry) SetKey(user uint64, object uint64) error
func (*UserObjectRegistry) Type ¶
func (o *UserObjectRegistry) Type() uint16
type UserRegistry ¶
type UserRegistry struct { States // contains filtered or unexported fields }
User Object Definition
func UserRegistryFromUser ¶
func UserRegistryFromUser(u *User) (*UserRegistry, error)
func (*UserRegistry) ByEmail ¶
func (o *UserRegistry) ByEmail(db *sql.DB, email string) error
ByEmail Finds User By Email
func (*UserRegistry) ByID ¶
func (o *UserRegistry) ByID(db *sql.DB, id uint64) error
ByID Finds User By ID
func (*UserRegistry) ByUserName ¶
func (o *UserRegistry) ByUserName(db *sql.DB, username string) error
ByUserName Finds User By User Name
func (*UserRegistry) ClearStates ¶
func (o *UserRegistry) ClearStates(states uint16)
func (*UserRegistry) Email ¶
func (o *UserRegistry) Email() string
func (*UserRegistry) HasAllStates ¶
func (o *UserRegistry) HasAllStates(states uint16) bool
func (*UserRegistry) HasAnyStates ¶
func (o *UserRegistry) HasAnyStates(states uint16) bool
func (*UserRegistry) IsActive ¶
func (o *UserRegistry) IsActive() bool
func (*UserRegistry) IsBlocked ¶
func (o *UserRegistry) IsBlocked() bool
func (*UserRegistry) IsDirty ¶
func (o *UserRegistry) IsDirty() bool
IsDirty Have the Object Properties Changed since last Serialization?
func (*UserRegistry) IsNew ¶
func (o *UserRegistry) IsNew() bool
func (*UserRegistry) IsReadOnly ¶
func (o *UserRegistry) IsReadOnly() bool
func (*UserRegistry) IsValid ¶
func (o *UserRegistry) IsValid() bool
func (*UserRegistry) Name ¶
func (o *UserRegistry) Name() string
func (*UserRegistry) SetStates ¶
func (o *UserRegistry) SetStates(states uint16)
func (*UserRegistry) SetUserName ¶
func (o *UserRegistry) SetUserName(username string) (string, error)
func (*UserRegistry) State ¶
func (o *UserRegistry) State() uint16
func (*UserRegistry) TestHash ¶
func (o *UserRegistry) TestHash(hash string) bool
func (*UserRegistry) TestPassword ¶
func (o *UserRegistry) TestPassword(password string) bool
func (*UserRegistry) UpdatePassword ¶ added in v0.0.2
func (o *UserRegistry) UpdatePassword(u *User) error
func (*UserRegistry) UpdateRegistry ¶
func (o *UserRegistry) UpdateRegistry(u *User) error
func (*UserRegistry) UserName ¶
func (o *UserRegistry) UserName() string
Source Files
¶
- database.manager.go
- invitations.go
- invitations.registry.go
- keys.go
- object.template.registry.go
- object.user.registry.go
- org.store.registry.go
- orgs.go
- orgs.registry.go
- roles.go
- states.go
- store.objects.go
- store.template.objects.go
- stores.go
- template.go
- user.object.registry.go
- users.go
- users.registry.go
- utilities.go