Documentation ¶
Index ¶
- func AddRoutes(group *gin.RouterGroup, cluster cluster.Cluster, config APIConfiguration) error
- type APIConfiguration
- type EngineRequest
- func (r *EngineRequest) LoadClusterResources(resourceLoader loader.Loader) ([]unstructured.Unstructured, error)
- func (r *EngineRequest) LoadConfig(resourceLoader loader.Loader) (*corev1.ConfigMap, error)
- func (r *EngineRequest) LoadOldResources(resourceLoader loader.Loader) ([]unstructured.Unstructured, error)
- func (r *EngineRequest) LoadParameters() (*models.Parameters, error)
- func (r *EngineRequest) LoadPolicies(policyLoader loader.Loader) ([]kyvernov1.PolicyInterface, []v1beta1.ValidatingAdmissionPolicy, ...)
- func (r *EngineRequest) LoadPolicyExceptions() ([]*kyvernov2.PolicyException, error)
- func (r *EngineRequest) LoadResources(resourceLoader loader.Loader) ([]unstructured.Unstructured, error)
- func (r *EngineRequest) LoadVAPBindings(policyLoader loader.Loader) ([]v1beta1.ValidatingAdmissionPolicyBinding, error)
- func (r *EngineRequest) ResourceLoader(cluster cluster.Cluster, kubeVersion string, config APIConfiguration) (loader.Loader, error)
- type EngineResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRoutes ¶
func AddRoutes(group *gin.RouterGroup, cluster cluster.Cluster, config APIConfiguration) error
Types ¶
type APIConfiguration ¶
type EngineRequest ¶
type EngineRequest struct { Policies string `json:"policies"` Resources string `json:"resources"` OldResources string `json:"oldResources"` ClusterResources string `json:"clusterResources"` Context string `json:"context"` Config string `json:"config"` CustomResourceDefinitions string `json:"customResourceDefinitions"` PolicyExceptions string `json:"policyExceptions"` VAPBindings string `json:"vapBindings"` ImageData map[string]models.ImageData `json:"imageData"` }
func (*EngineRequest) LoadClusterResources ¶
func (r *EngineRequest) LoadClusterResources(resourceLoader loader.Loader) ([]unstructured.Unstructured, error)
func (*EngineRequest) LoadConfig ¶
func (*EngineRequest) LoadOldResources ¶
func (r *EngineRequest) LoadOldResources(resourceLoader loader.Loader) ([]unstructured.Unstructured, error)
func (*EngineRequest) LoadParameters ¶
func (r *EngineRequest) LoadParameters() (*models.Parameters, error)
func (*EngineRequest) LoadPolicies ¶
func (r *EngineRequest) LoadPolicies(policyLoader loader.Loader) ([]kyvernov1.PolicyInterface, []v1beta1.ValidatingAdmissionPolicy, []v1beta1.ValidatingAdmissionPolicyBinding, error)
func (*EngineRequest) LoadPolicyExceptions ¶
func (r *EngineRequest) LoadPolicyExceptions() ([]*kyvernov2.PolicyException, error)
func (*EngineRequest) LoadResources ¶
func (r *EngineRequest) LoadResources(resourceLoader loader.Loader) ([]unstructured.Unstructured, error)
func (*EngineRequest) LoadVAPBindings ¶
func (r *EngineRequest) LoadVAPBindings(policyLoader loader.Loader) ([]v1beta1.ValidatingAdmissionPolicyBinding, error)
func (*EngineRequest) ResourceLoader ¶
func (r *EngineRequest) ResourceLoader(cluster cluster.Cluster, kubeVersion string, config APIConfiguration) (loader.Loader, error)
type EngineResponse ¶
type EngineResponse struct { Policies []kyvernov1.PolicyInterface `json:"policies"` Resources []unstructured.Unstructured `json:"resources"` *models.Results }
Click to show internal directories.
Click to hide internal directories.