userprint

package
v7.0.0-beta.27+incompa... Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrgUsersPluginPrinter

func NewOrgUsersPluginPrinter(
	pluginModel *[]plugin_models.GetOrgUsers_Model,
	userLister func(guid string, role models.Role) ([]models.UserFields, error),
	roles []models.Role,
) *pluginPrinter

func NewSpaceUsersPluginPrinter

func NewSpaceUsersPluginPrinter(
	pluginModel *[]plugin_models.GetSpaceUsers_Model,
	userLister func(guid string, role models.Role) ([]models.UserFields, error),
	roles []models.Role,
) *pluginPrinter

Types

type OrgUsersUIPrinter

type OrgUsersUIPrinter struct {
	Roles            []models.Role
	RoleDisplayNames map[models.Role]string
	UserLister       func(orgGUID string, role models.Role) ([]models.UserFields, error)
	UI               terminal.UI
}

func (*OrgUsersUIPrinter) PrintUsers

func (p *OrgUsersUIPrinter) PrintUsers(guid string, username string)

type SpaceUsersUIPrinter

type SpaceUsersUIPrinter struct {
	UI               terminal.UI
	UserLister       func(spaceGUID string, role models.Role) ([]models.UserFields, error)
	Roles            []models.Role
	RoleDisplayNames map[models.Role]string
}

func (*SpaceUsersUIPrinter) PrintUsers

func (p *SpaceUsersUIPrinter) PrintUsers(guid string, username string)

type UserPrinter

type UserPrinter interface {
	PrintUsers(guid string, username string)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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