luci: go.chromium.org/luci/milo/git/gitacls Index | Files

package gitacls

import "go.chromium.org/luci/milo/git/gitacls"

Package gitacls implements read ACLs for Git/Gerrit data.

Index

Package Files

acls.go

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 2018-12-14. Refresh now. Tools for package owners.