legacy

package
v0.0.0-...-9eda336 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package legacy contains older implementation of IsMember check.

To be deleted very soon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Groups

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

Groups is a legacy representation of the groups graph.

func BuildGroups

func BuildGroups(groups []*protocol.AuthGroup) (*Groups, error)

BuildGroups builds the legacy representation of the groups graph.

func (*Groups) IsMember

func (g *Groups) IsMember(id identity.Identity, groupName string) graph.IsMemberResult

IsMember returns true if the given identity belongs to the given group.

Jump to

Keyboard shortcuts

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