securityflag

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package securityflag implements utilities for creating security objects based on flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorizerOrDie

func NewAuthorizerOrDie() security.Authorizer

NewAuthorizerOrDie constructs an Authorizer based on the provided "--v23.permissions.literal" or "--v23.permissions.file" flags. Otherwise it creates a default Authorizer.

func PermissionsFromFlag

func PermissionsFromFlag() (access.Permissions, error)

TODO(rjkroege): Refactor these two functions into one by making an Authorizer use a Permissions accessor interface. PermissionsFromFlag reads the same flags as NewAuthorizerOrDie but produces a Permissions for callers that need more control of how Permissions are managed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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