role

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TORole

type TORole struct {
	api.APIInfoImpl `json:"-"`
	tc.Role
	LastUpdated    *tc.TimeNoMod   `json:"-"`
	PQCapabilities *pq.StringArray `json:"-" db:"capabilities"`
}

func (*TORole) Create

func (role *TORole) Create() (error, error, int)

func (*TORole) Delete

func (role *TORole) Delete() (error, error, int)

func (*TORole) DeleteQuery

func (v *TORole) DeleteQuery() string

func (TORole) GetAuditName

func (role TORole) GetAuditName() string

func (TORole) GetKeyFieldsInfo

func (role TORole) GetKeyFieldsInfo() []api.KeyFieldInfo

func (TORole) GetKeys

func (role TORole) GetKeys() (map[string]interface{}, bool)

Implementation of the Identifier, Validator interface functions

func (*TORole) GetLastUpdated

func (v *TORole) GetLastUpdated() (*time.Time, bool, error)

func (TORole) GetType

func (role TORole) GetType() string

func (*TORole) InsertQuery

func (v *TORole) InsertQuery() string

func (*TORole) NewReadObj

func (v *TORole) NewReadObj() interface{}

func (*TORole) ParamColumns

func (v *TORole) ParamColumns() map[string]dbhelpers.WhereColumnInfo

func (*TORole) Read

func (role *TORole) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

func (*TORole) SelectMaxLastUpdatedQuery

func (v *TORole) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string

func (*TORole) SelectQuery

func (v *TORole) SelectQuery() string

func (*TORole) SetKeys

func (role *TORole) SetKeys(keys map[string]interface{})

func (*TORole) SetLastUpdated

func (v *TORole) SetLastUpdated(t tc.TimeNoMod)

func (*TORole) Update

func (role *TORole) Update(h http.Header) (error, error, int)

func (*TORole) UpdateQuery

func (v *TORole) UpdateQuery() string

func (TORole) Validate

func (role TORole) Validate() error

Validate fulfills the api.Validator interface

Jump to

Keyboard shortcuts

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