admission

package
v0.0.0-...-e99cc0b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotVerify = errors.New("Cannot verify user authenticity")

ErrCannotVerify is returned when attempting to verify the user is a human being.

View Source
var ErrClosed = errors.New("User registration is disabled")

ErrClosed is returned when attempting to create a new user account and admissions are closed.

View Source
var ErrMembership = errors.New("User must be a member of an approved organization")

ErrMembership is returned when attempting to create a new user account for a user that is not a member of an approved organization.

Functions

func Combine

func Combine(service ...core.AdmissionService) core.AdmissionService

Combine combines admission services.

func External

func External(endpoint, secret string, skipVerify bool) core.AdmissionService

External returns a new external Admission controller.

func Membership

func Membership(service core.OrganizationService, accounts []string) core.AdmissionService

Membership limits user access by organization membership.

func Nobot

func Nobot(service core.UserService, age time.Duration) core.AdmissionService

Nobot enforces an admission policy that restricts access to users accounts that were recently created and may be bots. The policy expects the source control management system will identify and remove the bot accounts before they would be eligible to use the system.

func Open

func Open(disabled bool) core.AdmissionService

Open enforces an open admission policy by default unless disabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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