luci: Index | Files

package gitacls

import ""

Package gitacls implements read ACLs for Git/Gerrit data.


Package Files


func ValidateConfig Uses

func ValidateConfig(ctx *validation.Context, cfg []*config.Settings_SourceAcls)

ValidateConfig passes all validation errors through validation context.

type ACLs Uses

type ACLs struct {
    // contains filtered or unexported fields

ACLs define readers for git repositories and Gerrits CLs.

func FromConfig Uses

func FromConfig(c context.Context, cfg []*config.Settings_SourceAcls) (*ACLs, error)

FromConfig returns ACLs if config is valid.

func (*ACLs) IsAllowed Uses

func (a *ACLs) IsAllowed(c context.Context, host, project string) (bool, error)

IsAllowed returns whether current identity has been granted read access to given Git/Gerrit project.

Package gitacls imports 11 packages (graph) and is imported by 6 packages. Updated 2020-12-06. Refresh now. Tools for package owners.