permissions

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admins

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

func NewAdmins

func NewAdmins(admins []string) *Admins

func (*Admins) IsAdmin

func (a *Admins) IsAdmin(user *model.User) bool

type Orgs

type Orgs struct {
	IsConfigured bool
	// contains filtered or unexported fields
}

func NewOrgs

func NewOrgs(orgs []string) *Orgs

func (*Orgs) IsMember

func (o *Orgs) IsMember(teams []*model.Team) bool

type OwnersAllowlist

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

func NewOwnersAllowlist

func NewOwnersAllowlist(owners []string) *OwnersAllowlist

func (*OwnersAllowlist) IsAllowed

func (o *OwnersAllowlist) IsAllowed(repo *model.Repo) bool

Jump to

Keyboard shortcuts

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