permission

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelAccess

type ModelAccess int

ModelAccess defines the permission that a user has on a model.

const (

	// ModelReadAccess allows a user to read a model but not to change it.
	ModelReadAccess ModelAccess = iota

	// ModelWriteAccess allows a user write access to the model.
	ModelWriteAccess ModelAccess = iota
)

func ParseModelAccess

func ParseModelAccess(access string) (ModelAccess, error)

ParseModelAccess parses a user-facing string representation of a model access permission into a logical representation.

Jump to

Keyboard shortcuts

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