acl

package
v0.0.0-...-678bb0e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

package acl implements ACLs for enforcement in API and UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AclSets

type AclSets map[string][]*messages.Acl

AclSets are parsed and indexed `AclSet` of a project.

func ValidateAclSets

func ValidateAclSets(sets []*messages.AclSet) (AclSets, error)

ValidateAclSets validates list of AclSet of a project and returns AclSets.

type GrantsByRole

type GrantsByRole struct {
	Owners  []string `gae:",noindex"`
	Readers []string `gae:",noindex"`
}

GrantsByRole can answer questions who can READ and who OWNS the task.

func ValidateTaskAcls

func ValidateTaskAcls(pSets AclSets, tSets []string, tAcls []*messages.Acl) (*GrantsByRole, error)

ValidateTaskAcls validates task's ACLs and returns TaskAcls.

func (*GrantsByRole) Equal

func (g *GrantsByRole) Equal(o *GrantsByRole) bool

func (*GrantsByRole) IsOwner

func (g *GrantsByRole) IsOwner(c context.Context) (bool, error)

func (*GrantsByRole) IsReader

func (g *GrantsByRole) IsReader(c context.Context) (bool, error)

Jump to

Keyboard shortcuts

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