Documentation ¶
Index ¶
Constants ¶
View Source
const (
InitPlusExtendedPermissionCapabilityEx = "InitPlusExtendedPermissionCapabilityEx"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Capability struct { Provider CapabilityEx Config *Config *logger.Logger }
func (*Capability) GetConfigValidator ¶
func (cap *Capability) GetConfigValidator() (v validator.Validator)
func (*Capability) GetExtendedPermissionCapabilityEx ¶
func (cap *Capability) GetExtendedPermissionCapabilityEx() (capEx CapabilityEx)
func (*Capability) GetInitFuncName ¶
func (cap *Capability) GetInitFuncName() (name string)
func (*Capability) InitProvider ¶
func (cap *Capability) InitProvider(sym plugin.Symbol)
type CapabilityEx ¶
type CapabilityEx interface { ValidateExtendedTunnelPermission(r *http.Request, tr []PermissionParams) error ValidateExtendedCommandPermission(r *http.Request, cr []PermissionParams) error ValidateExtendedCommandPermissionRaw(command string, isSudo bool, cr []PermissionParams) error ValidateExtendedDeleteNonOwnedTunnelPermissionRaw(tr []PermissionParams) error }
type PermissionParams ¶
type PermissionParams map[string]interface{}
func (*PermissionParams) Scan ¶
func (m *PermissionParams) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.