Back to godoc.org

Package legacy

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package legacy contains older implementation of IsMember check.

To be deleted very soon.

Index

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) bool

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier