sv_group

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorGroupNotFoundForGroupId = errors.New("group not found for the group id")
	ErrorGroupNotFoundForName    = errors.New("group not found for the name")
)

Functions

This section is empty.

Types

type CreateOpt

type CreateOpt func(opt *createOpts) *createOpts

func CompanyManaged

func CompanyManaged() CreateOpt

func ManagementType

func ManagementType(mgmtType string) CreateOpt

func UserManaged

func UserManaged() CreateOpt

type Group

type Group interface {
	Resolve(groupId string) (g *mo_group.Group, err error)
	ResolveByName(groupName string) (g *mo_group.Group, err error)
	List() (g []*mo_group.Group, err error)
	Create(name string, opt ...CreateOpt) (g *mo_group.Group, err error)
	Remove(groupId string) error
	Update(group *mo_group.Group) (g *mo_group.Group, err error)
}

func New

func New(ctx dbx_context.Context) Group

func NewCached

func NewCached(ctx dbx_context.Context) Group

Jump to

Keyboard shortcuts

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