Documentation ¶
Index ¶
- func Current(w http.ResponseWriter, r *http.Request)
- func GetAvailableDSes(w http.ResponseWriter, r *http.Request)
- func GetDSes(w http.ResponseWriter, r *http.Request)
- func ReplaceCurrent(w http.ResponseWriter, r *http.Request)
- type TOUser
- func (user *TOUser) Create() (error, error, int)
- func (user *TOUser) DeleteQuery() string
- func (user TOUser) GetAuditName() string
- func (user TOUser) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (user TOUser) GetKeys() (map[string]interface{}, bool)
- func (user TOUser) GetType() string
- func (user *TOUser) InsertQuery() string
- func (u *TOUser) IsTenantAuthorized(user *auth.CurrentUser) (bool, error)
- func (user *TOUser) NewReadObj() interface{}
- func (user *TOUser) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (this *TOUser) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (user *TOUser) SelectQuery() string
- func (user *TOUser) SetKeys(keys map[string]interface{})
- func (user *TOUser) SetLastUpdated(t tc.TimeNoMod)
- func (user *TOUser) Update(h http.Header) (error, error, int)
- func (user *TOUser) UpdateQuery() string
- func (user *TOUser) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableDSes ¶
func GetAvailableDSes(w http.ResponseWriter, r *http.Request)
func ReplaceCurrent ¶
func ReplaceCurrent(w http.ResponseWriter, r *http.Request)
Types ¶
type TOUser ¶
type TOUser struct { api.APIInfoImpl `json:"-"` tc.User }
func (*TOUser) Create ¶
Note: Not using GenericCreate because Scan also needs to scan tenant and rolename
func (*TOUser) DeleteQuery ¶
func (TOUser) GetAuditName ¶
func (TOUser) GetKeyFieldsInfo ¶
func (user TOUser) GetKeyFieldsInfo() []api.KeyFieldInfo
func (*TOUser) InsertQuery ¶
func (*TOUser) IsTenantAuthorized ¶
func (u *TOUser) IsTenantAuthorized(user *auth.CurrentUser) (bool, error)
func (*TOUser) NewReadObj ¶
func (user *TOUser) NewReadObj() interface{}
func (*TOUser) ParamColumns ¶
func (user *TOUser) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TOUser) Read ¶
This is not using GenericRead because of this tenancy check. Maybe we can add tenancy functionality to the generic case?
func (*TOUser) SelectQuery ¶
func (*TOUser) SetLastUpdated ¶
func (user *TOUser) SetLastUpdated(t tc.TimeNoMod)
func (*TOUser) UpdateQuery ¶
Click to show internal directories.
Click to hide internal directories.