luci: go.chromium.org/luci/server/auth/authdb/internal/legacy Index | Files

package legacy

import "go.chromium.org/luci/server/auth/authdb/internal/legacy"

Package legacy contains older implementation of IsMember check.

To be deleted very soon.

Index

Package Files

groups.go

type Groups Uses

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

Groups is a legacy representation of the groups graph.

func BuildGroups Uses

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

BuildGroups builds the legacy representation of the groups graph.

func (*Groups) IsMember Uses

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

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

Package legacy imports 3 packages (graph). Updated 2019-12-14. Refresh now. Tools for package owners.