role

package
v7.0.1-rc0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(w http.ResponseWriter, r *http.Request)

Create will create a new role based on the struct supplied.

func Delete

func Delete(w http.ResponseWriter, r *http.Request)

Delete will delete the role identified by the role name.

func Get

func Get(w http.ResponseWriter, r *http.Request)

Get will read the roles and return them to the user.

func Update

func Update(w http.ResponseWriter, r *http.Request)

Update will modify the role identified by the role name.

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, 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