TriUI

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTriUI

func NewTriUI() pu.PfUI

func TriUIMenuOverride

func TriUIMenuOverride(cui pu.PfUI, menu *pu.PfUIMenu)

Types

type NominateAdd

type NominateAdd struct {
	Action       string          `label:"Action" pftype:"hidden"`
	Vouchee      string          `label:"Username" pfset:"nobody" pfget:"none"`
	Comment      string          `label:"Vouch comment" pftype:"text" hint:"Vouch description for this user" pfreq:"yes"`
	Attestations map[string]bool `label:"Attestations (all required)" hint:"Attestations for this user" options:"GetAttestationOpts" pfcheckboxmode:"yes"`
	Button       string          `label:"Nominate" pftype:"submit"`
	Message      string          /* Used by pfform() */
	Error        string          /* Used by pfform() */
	// contains filtered or unexported fields
}

func (*NominateAdd) GetAttestationOpts

func (na *NominateAdd) GetAttestationOpts(obj interface{}) (kvs keyval.KeyVals, err error)

type NominateNew

type NominateNew struct {
	Action       string          `label:"Action" pftype:"hidden"`
	Search       string          `label:"Search" pftype:"hidden"`
	Email        string          `label:"Email address of nominee" pfset:"none"`
	FullName     string          `label:"Full Name" hint:"Full Name of this user" pfreq:"yes"`
	Affiliation  string          `label:"Affiliation" hint:"Who the user is affiliated to" pfreq:"yes"`
	Biography    string          `label:"Biography" pftype:"text" hint:"Biography for this user" pfreq:"yes"`
	Comment      string          `label:"Vouch Comment" pftype:"text" hint:"Vouch for this user" pfreq:"yes"`
	Attestations map[string]bool `label:"Attestations (all required)" hint:"Attestations for this user" options:"GetAttestationOpts" pfcheckboxmode:"yes"`
	Button       string          `label:"Nominate" pftype:"submit"`
	Message      string          /* Used by pfform() */
	Error        string          /* Used by pfform() */
	// contains filtered or unexported fields
}

func (*NominateNew) GetAttestationOpts

func (na *NominateNew) GetAttestationOpts(obj interface{}) (kvs keyval.KeyVals, err error)

type VouchAdd

type VouchAdd struct {
	Action       string          `label:"Action" pftype:"hidden"`
	Group        string          `label:"Group" pftype:"hidden"`
	Vouchee      string          `label:"Username" pftype:"hidden"`
	Comment      string          `label:"Vouch" pftype:"text" hint:"Vouch for this user" pfreq:"yes"`
	Attestations map[string]bool `label:"Attestations (all required)" hint:"Attestations for this user" options:"GetAttestationOpts" pfcheckboxmode:"yes"`
	Button       string          `label:"Vouch" pftype:"submit"`
	// contains filtered or unexported fields
}

func (*VouchAdd) GetAttestationOpts

func (va *VouchAdd) GetAttestationOpts(obj interface{}) (kvs keyval.KeyVals, err error)

Jump to

Keyboard shortcuts

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