policy

package
v2.3.20181123+incompat... Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 10 Imported by: 39

Documentation

Index

Constants

View Source
const (
	PolicyDelegation = "delegate"

	PolicyActionList    = "list"
	PolicyActionGet     = "get"
	PolicyActionUpdate  = "update"
	PolicyActionPatch   = "patch"
	PolicyActionCreate  = "create"
	PolicyActionDelete  = "delete"
	PolicyActionPerform = "perform"
)

Variables

This section is empty.

Functions

func EnableGlobalRbac

func EnableGlobalRbac(refreshInterval time.Duration, retryInterval time.Duration, debug bool)

Types

type SPolicyManager

type SPolicyManager struct {
	// contains filtered or unexported fields
}
var (
	PolicyManager *SPolicyManager
)

func (*SPolicyManager) Allow

func (manager *SPolicyManager) Allow(isAdmin bool, userCred mcclient.TokenCredential, service string, resource string, action string, extra ...string) rbacutils.TRbacResult

func (*SPolicyManager) ExplainRpc

func (manager *SPolicyManager) ExplainRpc(userCred mcclient.TokenCredential, params jsonutils.JSONObject) (jsonutils.JSONObject, error)

func (*SPolicyManager) IsAdminCapable

func (manager *SPolicyManager) IsAdminCapable(userCred mcclient.TokenCredential) bool

Jump to

Keyboard shortcuts

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