lib

package
v0.1.0-DEV Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DFMT = "2006-01-02"

Variables

View Source
var (
	// CommitHash contains the current Git revision. Use make to build to make
	// sure this gets set.
	CommitHash string

	// BuildDate contains the date of the current build.
	BuildDate string
)
View Source
var DStamp = time.Now().UTC().Format(DFMT)

Functions

func AddGroups

func AddGroups(gs []string) error

func AddUsers

func AddUsers(us []string)

func AddUsersToGroups

func AddUsersToGroups(gs []string, us []string) error

func AuthToken

func AuthToken(us string, p string, r *http.Request) bool

func Build

func Build(in io.Reader, out interface{}) error

func DelGroups

func DelGroups(gs []string) error

func DelStatus

func DelStatus(sT database.StatusS)

func DelUsers

func DelUsers(us []string)

func DelUsersFromGroups

func DelUsersFromGroups(gs []string, us []string) error

func GetAllStatusBuckets

func GetAllStatusBuckets() []string

func GetAllStatusByDate

func GetAllStatusByDate(date string) ([]database.StatusS, error)

func GetGroup

func GetGroup(n string) (database.GroupS, error)

func GetStatus

func GetStatus(uS database.UserS, date string) []database.StatusS

func GetUser

func GetUser(n string) (database.UserS, error)

func In

func In(v string, a []string) (ok bool, i int)

func IsAdmin

func IsAdmin(user string) bool

func IsSelf

func IsSelf(me, user string) bool

func ListGroups

func ListGroups() ([]database.GroupS, error)

func ListUsers

func ListUsers() []database.UserS

func LoadGlobalConfig

func LoadGlobalConfig(configFilename string) error

LoadGlobalConfig loads Hugo configuration into the global Viper.

func ModifyGroups

func ModifyGroups(gs []database.GroupS) error

func NewStatus

func NewStatus(uS database.UserS, s string) database.StatusS

func RemoveGroup

func RemoveGroup(list []database.GroupS, rm database.GroupS) []database.GroupS

func RemoveIndex

func RemoveIndex(list []string, i int) []string

func RemoveUser

func RemoveUser(list []database.UserS, rm database.UserS) []database.UserS

func UserInGroup

func UserInGroup(n string, u database.UserS) bool

Types

type Info

type Info struct {
	Version    string
	CommitHash string
	BuildDate  string
}

StandupbotInfo contains information about the current Standupbot environment

Jump to

Keyboard shortcuts

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