Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context stores the data resources as JSON
func (*Context) AddResource ¶
Add data at path: request.object
func (*Context) AddSA ¶
removes prefix 'system:serviceaccount:' and namespace, then loads only username
func (*Context) AddUserInfo ¶
func (ctx *Context) AddUserInfo(userRequestInfo kyverno.RequestInfo) error
type EvalInterface ¶
EvalInterface ... to evaluate
type Interface ¶
type Interface interface {
// merges the json with context
AddJSON(dataRaw []byte) error
// merges resource json under request.object
AddResource(dataRaw []byte) error
// merges userInfo json under kyverno.userInfo
AddUserInfo(userInfo kyverno.UserInfo) error
// merges serrviceaccount
AddSA(userName string) error
EvalInterface
}
Interface ... normal functions
Click to show internal directories.
Click to hide internal directories.