Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OutputNotFoundErr = errors.New("output not found in cue") OutputNilErr = errors.New("output must not be nil") OutputNotSettableErr = errors.New("output must be settable") )
View Source
var ErrTooManyRedirects = errors.New("too many redirects")
Functions ¶
Types ¶
type CueParams ¶ added in v0.4.0
type CueParams struct { Object *unstructured.Unstructured `json:"object"` OldObject *unstructured.Unstructured `json:"oldObject"` // otherObject:xxx, http:xxx ExtraParams map[string]any `json:"extraParams"` }
func BuildCueParamsViaOverridePolicy ¶ added in v0.4.0
func BuildCueParamsViaOverridePolicy(c dynamiclister.DynamicResourceLister, curObject *unstructured.Unstructured, tmpl *policyv1alpha1.OverrideRuleTemplate) (*CueParams, error)
func BuildCueParamsViaValidatePolicy ¶ added in v0.4.0
func BuildCueParamsViaValidatePolicy(c dynamiclister.DynamicResourceLister, curObject *unstructured.Unstructured, tmpl *policyv1alpha1.ValidateRuleTemplate) (*CueParams, error)
Click to show internal directories.
Click to hide internal directories.