users

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: BSD-2-Clause Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataCenters []*conf.Arc
View Source
var Groups []*Group
View Source
var Teams map[string]*Team
View Source
var Users map[string]*User

Functions

func Init

func Init(name string) error

Types

type Group

type Group struct {
	// contains filtered or unexported fields
}

type Team

type Team struct {
	Name  string
	Sudo  bool
	Users []*User
	// contains filtered or unexported fields
}

Team provides a way to organize users.

func FindOrphanedTeams

func FindOrphanedTeams() ([]*Team, error)

FindOrphanedTeams finds any teams that are not a part of a pod

func (*Team) FindTeam

func (t *Team) FindTeam(name string) string

func (*Team) FindUser

func (t *Team) FindUser(name string) *User

func (*Team) Populate

func (t *Team) Populate() error

type TeamAudit

type TeamAudit struct {
	RogueTeam    string
	RogueTeamPod string
}

func FindRogueTeams

func FindRogueTeams() ([]*TeamAudit, error)

FindRogueTeams finds any teams that are a part of a pod, but aren't a defined team.

type User

type User struct {
	// contains filtered or unexported fields
}

func FindOrphanedUsers

func FindOrphanedUsers() ([]*User, error)

FindOrphanedUsers finds any users that are not a part of a team.

Jump to

Keyboard shortcuts

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