Documentation ¶
Index ¶
- func CreatePatch(name, reqJson string, labels map[string]string, deleteKeys []string) []byte
- func MutationMessage(resourceName string, diffResult []mapnode.Difference) (msg string)
- func ValidateHelmReleaseMetadata(reqc *common.ReqContext) (bool, error)
- func ValidateResource(reqc *common.ReqContext, verifierNamespace string) (bool, string)
- func ValidateResourceSignature(reqc *common.ReqContext) (bool, error)
- func ValidateResourceSigningProfile(reqc *common.ReqContext, verifierNamespace string) (bool, error)
- func ValidateSignPolicy(reqc *common.ReqContext) (bool, error)
- func ValidateVerifierConfig(reqc *common.ReqContext) (bool, error)
- type ConcreteMutationChecker
- type MAResult
- type Ma4kInput
- type MutationChecker
- type PatchOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePatch ¶
Return value is a document of JSON Patch. JSON Patch format is specified in RFC 6902 from the IETF.
func MutationMessage ¶
func MutationMessage(resourceName string, diffResult []mapnode.Difference) (msg string)
func ValidateHelmReleaseMetadata ¶
func ValidateHelmReleaseMetadata(reqc *common.ReqContext) (bool, error)
func ValidateResource ¶
func ValidateResource(reqc *common.ReqContext, verifierNamespace string) (bool, string)
func ValidateResourceSignature ¶
func ValidateResourceSignature(reqc *common.ReqContext) (bool, error)
func ValidateResourceSigningProfile ¶
func ValidateResourceSigningProfile(reqc *common.ReqContext, verifierNamespace string) (bool, error)
func ValidateSignPolicy ¶
func ValidateSignPolicy(reqc *common.ReqContext) (bool, error)
func ValidateVerifierConfig ¶
func ValidateVerifierConfig(reqc *common.ReqContext) (bool, error)
Types ¶
type ConcreteMutationChecker ¶
type ConcreteMutationChecker struct{}
func (*ConcreteMutationChecker) Eval ¶
func (self *ConcreteMutationChecker) Eval(reqc *common.ReqContext, signingProfile rspapi.ResourceSigningProfile) (*common.MutationEvalResult, error)
type MAResult ¶
type MAResult struct { IsMutated bool Diff string Filtered string MatchedKeys []string Checked bool Msg string Error error }
func GetMAResult ¶
func GetMAResult(ma4kInput *Ma4kInput, rules []*profile.AttrsPattern) (*MAResult, error)
type Ma4kInput ¶
type MutationChecker ¶
type MutationChecker interface {
Eval(reqc *common.ReqContext, signingProfile rspapi.ResourceSigningProfile) (*common.MutationEvalResult, error)
}
func NewMutationChecker ¶
func NewMutationChecker() MutationChecker
type PatchOperation ¶
Click to show internal directories.
Click to hide internal directories.