acl

package
v0.0.0-...-cadb033 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, driver Driver, check func() error)

Types

type Driver

type Driver interface {
	CanLogin(username Username, password Password) (bool, error)

	CanAccess(username Username, namespace, repo string, perm Permission) (bool, error)
}

func Load

func Load(name string) (Driver, error)

type Password

type Password string

type Permission

type Permission int
const (
	READ Permission = iota
	WRITE
	DELETE
)

type Username

type Username string
const (
	Anonymous Username = Username("")
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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