groups

package
v0.0.0-...-907143c Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Collection = "groups"

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupByProviderMap

type GroupByProviderMap map[string]ProviderWithGroups

type GroupWithProvider

type GroupWithProvider struct {
	Provider string    `bson:"provider"`
	Group    sdk.Group `bson:",inline"`
}

type ProviderWithGroups

type ProviderWithGroups struct {
	Provider string      `json:"provider"`
	Name     string      `json:"name"`
	Groups   []sdk.Group `json:"groups"`
}

type Service

type Service interface {
	ListGroupsByProvider() (GroupByProviderMap, error)
	ListGroupsPaginated(perPage int, page int) (sdk.GroupPage, error)
	GetGroup(id string) (sdk.Group, error)
	DeleteGroup(id string) error
	UpdateGroups(guid string, groups []sdk.Group) error
}

func NewService

func NewService(db database.Database, providers provider.Service) Service

Jump to

Keyboard shortcuts

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