plugin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CasbinAuthZPlugin

type CasbinAuthZPlugin struct {
	// contains filtered or unexported fields
}

CasbinAuthZPlugin is the Casbin Authorization Plugin

func NewPlugin

func NewPlugin(casbinModel string, casbinPolicy string) (*CasbinAuthZPlugin, error)

newPlugin creates a new casbin authorization plugin

func (*CasbinAuthZPlugin) AuthZReq

AuthZReq authorizes the docker client command. The command is allowed only if it matches a Casbin policy rule. Otherwise, the request is denied!

func (*CasbinAuthZPlugin) AuthZRes

AuthZRes authorizes the docker client response. All responses are allowed by default.

Jump to

Keyboard shortcuts

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