Documentation ¶
Index ¶
- Variables
- func AllowApiCall(allow bool)
- func GetForeachElement() int
- func GetMock() bool
- func GetRegistryAccess() bool
- func GetRegistryClient() registryclient.Client
- func IsAllowApiCall() 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 ¶
Functions ¶
func AllowApiCall ¶ added in v1.9.0
func AllowApiCall(allow bool)
func GetForeachElement ¶
func GetForeachElement() int
func GetRegistryAccess ¶
func GetRegistryAccess() bool
func GetRegistryClient ¶ added in v1.9.0
func GetRegistryClient() registryclient.Client
func IsAllowApiCall ¶ added in v1.9.0
func IsAllowApiCall() bool
func SetContext ¶
func SetContext(context Context)
func SetForEachElement ¶ added in v1.9.0
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.