Documentation
¶
Index ¶
- Variables
- func GetForeachElement() int
- func GetMock() bool
- func GetRegistryAccess() bool
- func SetContext(context Context)
- func SetForeachElement(foreachElement int)
- func SetMock(mock bool)
- func SetRegistryAccess(access bool)
- func SetSubjects(subjects Subject)
- type Context
- type Policy
- type Rule
- type Subject
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Mock, RegistryAccess bool
ContextVar Context
ForeachElement int
Subjects Subject
)
Functions ¶
func GetForeachElement ¶
func GetForeachElement() int
func GetRegistryAccess ¶
func GetRegistryAccess() bool
func SetContext ¶
func SetContext(context Context)
func SetForeachElement ¶
func SetForeachElement(foreachElement int)
func SetRegistryAccess ¶
func SetRegistryAccess(access bool)
func SetSubjects ¶
func SetSubjects(subjects Subject)
Types ¶
type Context ¶
type Context struct {
Policies []Policy `json:"policies"`
}
func GetContext ¶
func GetContext() Context
type Policy ¶
func GetPolicyFromContext ¶
Click to show internal directories.
Click to hide internal directories.