Documentation
¶
Index ¶
- Constants
- Variables
- func Mail_PassResetNominator(ctx pf.PfCtx, email pf.PfUserEmail, is_reset bool, user_email pf.PfUserEmail, ...) (err error)
- func Mail_PassResetUser(ctx pf.PfCtx, email pf.PfUserEmail, is_reset bool, nom_email pf.PfUserEmail, ...) (err error)
- func NewTriCtx() pf.PfCtx
- func NewTriGroup() pf.PfGroup
- func NewTriUser() pf.PfUser
- func TriMenuOverride(ctx pf.PfCtx, menu *pf.PfMenu)
- type TriCtx
- func (tctx *TriCtx) HasSelectedVouchee() bool
- func (tctx *TriCtx) SelectVouchee(username string, perms pf.Perm) (err error)
- func (tctx *TriCtx) SelectedVouchee() (user TriUser)
- func (tctx *TriCtx) TriSelectedGroup() (grp TriGroup)
- func (tctx *TriCtx) TriSelectedUser() (user TriUser)
- func (tctx *TriCtx) TriTheUser() (user TriUser)
- type TriGroup
- type TriGroupAttestation
- type TriGroupMember
- type TriGroupMemberS
- type TriGroupS
- func (grp *TriGroupS) Add_default_attestations(ctx pf.PfCtx) (err error)
- func (grp *TriGroupS) Add_default_mailinglists(ctx pf.PfCtx) (err error)
- func (grp *TriGroupS) Exists(group_name string) (exists bool)
- func (grp *TriGroupS) GetAttestations() (output []TriGroupAttestation, err error)
- func (grp *TriGroupS) GetAttestationsKVS() (kvs keyval.KeyVals, err error)
- func (grp *TriGroupS) GetVouch_adminonly() bool
- func (grp *TriGroupS) ListGroupMembers(search string, username string, offset int, max int, nominated bool, ...) (members []pf.PfGroupMember, err error)
- func (grp *TriGroupS) Refresh() (err error)
- func (grp *TriGroupS) Select(ctx pf.PfCtx, group_name string, perms pf.Perm) (err error)
- type TriUser
- type TriUserS
- type TriVouch
- type Vouch
Constants ¶
View Source
const CRLF = pf.CRLF
Variables ¶
View Source
var AppName = "Trident"
View Source
var AppSchemaVersion = 0
The version of the Database
View Source
var AppSetupVersion = 0
Version of AppSetup
View Source
var Copyright = "(C) 2015-2016 The Trident Project"
View Source
var Website = "https:///tridentli"
Functions ¶
func Mail_PassResetNominator ¶
func Mail_PassResetNominator(ctx pf.PfCtx, email pf.PfUserEmail, is_reset bool, user_email pf.PfUserEmail, nom_portion string) (err error)
func Mail_PassResetUser ¶
func Mail_PassResetUser(ctx pf.PfCtx, email pf.PfUserEmail, is_reset bool, nom_email pf.PfUserEmail, user_portion string) (err error)
func NewTriUser ¶
Types ¶
type TriCtx ¶
type TriCtx struct {
// contains filtered or unexported fields
}
func (*TriCtx) HasSelectedVouchee ¶
func (*TriCtx) SelectVouchee ¶
func (*TriCtx) SelectedVouchee ¶
func (*TriCtx) TriSelectedGroup ¶
func (*TriCtx) TriSelectedUser ¶
func (*TriCtx) TriTheUser ¶
type TriGroupAttestation ¶
type TriGroupMember ¶
type TriGroupMember interface {
pf.PfGroupMember
GetVouchesFor() int
GetVouchesBy() int
GetVouchesForMe() int
GetVouchesByMe() int
}
func NewTriGroupMember ¶
func NewTriGroupMember() TriGroupMember
type TriGroupMemberS ¶
type TriGroupMemberS struct {
pf.PfGroupMember
VouchesFor int
VouchesBy int
VouchesForMe int
VouchesByMe int
}
func (*TriGroupMemberS) GetVouchesBy ¶
func (o *TriGroupMemberS) GetVouchesBy() int
func (*TriGroupMemberS) GetVouchesByMe ¶
func (o *TriGroupMemberS) GetVouchesByMe() int
func (*TriGroupMemberS) GetVouchesFor ¶
func (o *TriGroupMemberS) GetVouchesFor() int
func (*TriGroupMemberS) GetVouchesForMe ¶
func (o *TriGroupMemberS) GetVouchesForMe() int
type TriGroupS ¶
type TriGroupS struct {
pf.PfGroup
Please_vouch bool `label:"Please Vouch" pfset:"group_admin" hint:"Members must vouch before becoming active"`
Vouch_adminonly bool `label:"Vouch group admins only" pfset:"group_admin" hint:"Only adminstators may Vouvh"`
Min_invouch int `label:"Minimum Inbound Vouches" pfset:"group_admin" hint:"Number of incoming vouches required to vett."`
Min_outvouch int `label:"Minimum Outbound Vouches" pfset:"group_admin" hint:"Number of outgoing vouches required"`
Target_invouch int `label:"Target Invouches" pfset:"group_admin"`
Max_inactivity string `label:"Maximum Inactivity" pfset:"group_admin" coalesce:"30 days"`
Can_time_out bool `label:"Can Time Out" pfset:"group_admin"`
Max_vouchdays int `label:"Maximum Vouch Days" pfset:"group_admin"`
Idle_guard string `label:"Idle Guard" pfset:"group_admin" coalesce:"30 days"`
Nom_enabled bool `label:"Nominations Enabled" pfset:"group_admin"`
}
func (*TriGroupS) Add_default_attestations ¶
func (*TriGroupS) Add_default_mailinglists ¶
func (*TriGroupS) GetAttestations ¶
func (grp *TriGroupS) GetAttestations() (output []TriGroupAttestation, err error)
func (*TriGroupS) GetAttestationsKVS ¶
func (*TriGroupS) GetVouch_adminonly ¶
func (*TriGroupS) ListGroupMembers ¶
type TriUserS ¶
func (*TriUserS) BestNominator ¶
type TriVouch ¶
type TriVouch struct {
Vouchor string `label:"Voucher" pfset:"self" pfcol:"voucher"`
Vouchee string `label:"Vouchee" pfset:"self" pfcol:"vouchee"`
GroupName string `label:"TrustGroup" pfset:"self" pfcol:"trustgroup"`
Comment string `label:"Comment" pfset:"self" pfcol:"comment"`
Entered time.Time `label:"Entered" pfset:"nobody"`
Positive bool `label:"Positive" pfset:"self" pfcol:"positive" hint:"Is the vouch of a positive nature"`
State string `label:"Member state in trustgroup" pfset:"nobody"`
Affiliation string `label:"Vouchee Afiliation" pfset:"nobody"`
MyVouch bool
Attestations []TriGroupAttestation
}
Click to show internal directories.
Click to hide internal directories.