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.
Click to show internal directories.
Click to hide internal directories.