rolecontrol

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

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

type MockOauthAssets struct {
	MockSuccess     bool
	MockAllowedRole string
}

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

Jump to

Keyboard shortcuts

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