Documentation
¶
Overview ¶
Package rolecontrol ...
Package rolecontrol ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetControl ¶
type AssetControl interface { AddControledURLs(urls *[]ControlledURL) bool GetControlledAsset(url string, ca string) (bool, string) }
AssetControl AssetControl
type ControlledAsset ¶
type ControlledAsset struct { ControlledAsset string `json:"controlledAsset"` AllowedRole string `json:"allowedRole"` }
ControlledAsset ControlledAsset
type ControlledURL ¶
type ControlledURL struct { URL string `json:"url"` Asset []ControlledAsset `json:"assets"` }
ControlledURL ControlledURL
type MockOauthAssets ¶
MockOauthAssets MockOauthAssets
func (*MockOauthAssets) AddControledURLs ¶
func (c *MockOauthAssets) AddControledURLs(urls *[]ControlledURL) bool
AddControledURLs AddControledURLs
func (*MockOauthAssets) GetControlledAsset ¶
func (c *MockOauthAssets) GetControlledAsset(url string, ca string) (bool, string)
GetControlledAsset GetControlledAsset
func (*MockOauthAssets) GetNewAssetControl ¶
func (c *MockOauthAssets) GetNewAssetControl() AssetControl
GetNewAssetControl GetNewAssetControl
type OauthAssets ¶
type OauthAssets struct {
// contains filtered or unexported fields
}
OauthAssets OauthAssets
func (*OauthAssets) AddControledURLs ¶
func (c *OauthAssets) AddControledURLs(urls *[]ControlledURL) bool
AddControledURLs AddControledURLs
func (*OauthAssets) GetControlledAsset ¶
func (c *OauthAssets) GetControlledAsset(url string, ca string) (bool, string)
GetControlledAsset GetControlledAsset
func (*OauthAssets) GetNewAssetControl ¶
func (c *OauthAssets) GetNewAssetControl() AssetControl
GetNewAssetControl GetNewAssetControl
Click to show internal directories.
Click to hide internal directories.