Documentation ¶
Index ¶
- func CallAPI(request APIRequest) (*http.Response, error)
- func GetGVR(group, version, resource string) schema.GroupVersionResource
- func GetWithRetry(sleepInterval time.Duration, retryCount int, retryFunc func() error) error
- type APIRequest
- type E2EClient
- func (e2e *E2EClient) CleanClusterPolicies(gvr schema.GroupVersionResource) error
- func (e2e *E2EClient) ClusterPolicyReady(policyName string) bool
- func (e2e *E2EClient) CreateClusteredResource(gvr schema.GroupVersionResource, resourceData *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) CreateClusteredResourceYaml(gvr schema.GroupVersionResource, resourceData []byte) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) CreateNamespacedResource(gvr schema.GroupVersionResource, namespace string, ...) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) CreateNamespacedResourceYaml(gvr schema.GroupVersionResource, namespace, name string, resourceData []byte) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) DeleteClusteredResource(gvr schema.GroupVersionResource, name string) error
- func (e2e *E2EClient) DeleteNamespacedResource(gvr schema.GroupVersionResource, namespace, name string) error
- func (e2e *E2EClient) GetClusteredResource(gvr schema.GroupVersionResource, name string) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) GetNamespacedResource(gvr schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) ListNamespacedResources(gvr schema.GroupVersionResource, namespace string) (*unstructured.UnstructuredList, error)
- func (e2e *E2EClient) PolicyReady(namespace string, policyName string) bool
- func (e2e *E2EClient) UpdateClusteredResource(gvr schema.GroupVersionResource, resourceData *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) UpdateClusteredResourceYaml(gvr schema.GroupVersionResource, resourceData []byte) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) UpdateNamespacedResource(gvr schema.GroupVersionResource, namespace string, ...) (*unstructured.Unstructured, error)
- func (e2e *E2EClient) UpdateNamespacedResourceYaml(gvr schema.GroupVersionResource, namespace string, resourceData []byte) (*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGVR ¶
func GetGVR(group, version, resource string) schema.GroupVersionResource
GetGVR :- gets GroupVersionResource for dynamic client
Types ¶
type E2EClient ¶
E2EClient ...
func NewE2EClient ¶
NewE2EClient returns a new instance of E2EClient
func (*E2EClient) CleanClusterPolicies ¶
func (e2e *E2EClient) CleanClusterPolicies(gvr schema.GroupVersionResource) error
CleanClusterPolicies ;- Deletes all the cluster policies
func (*E2EClient) ClusterPolicyReady ¶ added in v1.7.0
func (*E2EClient) CreateClusteredResource ¶
func (e2e *E2EClient) CreateClusteredResource(gvr schema.GroupVersionResource, resourceData *unstructured.Unstructured) (*unstructured.Unstructured, error)
CreateClusteredResource ...
func (*E2EClient) CreateClusteredResourceYaml ¶
func (e2e *E2EClient) CreateClusteredResourceYaml(gvr schema.GroupVersionResource, resourceData []byte) (*unstructured.Unstructured, error)
CreateClusteredResourceYaml creates cluster resources from YAML like Namespace, ClusterRole, ClusterRoleBinding etc ...
func (*E2EClient) CreateNamespacedResource ¶
func (e2e *E2EClient) CreateNamespacedResource(gvr schema.GroupVersionResource, namespace string, resourceData *unstructured.Unstructured) (*unstructured.Unstructured, error)
CreateNamespacedResource ...
func (*E2EClient) CreateNamespacedResourceYaml ¶
func (e2e *E2EClient) CreateNamespacedResourceYaml(gvr schema.GroupVersionResource, namespace, name string, resourceData []byte) (*unstructured.Unstructured, error)
CreateNamespacedResourceYaml creates namespaced resources like Pods, Services, Deployments etc
func (*E2EClient) DeleteClusteredResource ¶
func (e2e *E2EClient) DeleteClusteredResource(gvr schema.GroupVersionResource, name string) error
DeleteClusteredResource ...
func (*E2EClient) DeleteNamespacedResource ¶
func (e2e *E2EClient) DeleteNamespacedResource(gvr schema.GroupVersionResource, namespace, name string) error
DeleteNamespacedResource ...
func (*E2EClient) GetClusteredResource ¶
func (e2e *E2EClient) GetClusteredResource(gvr schema.GroupVersionResource, name string) (*unstructured.Unstructured, error)
GetClusteredResource ...
func (*E2EClient) GetNamespacedResource ¶
func (e2e *E2EClient) GetNamespacedResource(gvr schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, error)
GetNamespacedResource ...
func (*E2EClient) ListNamespacedResources ¶
func (e2e *E2EClient) ListNamespacedResources(gvr schema.GroupVersionResource, namespace string) (*unstructured.UnstructuredList, error)
ListNamespacedResources ...
func (*E2EClient) PolicyReady ¶ added in v1.7.0
func (*E2EClient) UpdateClusteredResource ¶ added in v1.4.0
func (e2e *E2EClient) UpdateClusteredResource(gvr schema.GroupVersionResource, resourceData *unstructured.Unstructured) (*unstructured.Unstructured, error)
UpdateClusteredResource ...
func (*E2EClient) UpdateClusteredResourceYaml ¶ added in v1.4.0
func (e2e *E2EClient) UpdateClusteredResourceYaml(gvr schema.GroupVersionResource, resourceData []byte) (*unstructured.Unstructured, error)
UpdateClusteredResourceYaml creates cluster resources from YAML like Namespace, ClusterRole, ClusterRoleBinding etc ...
func (*E2EClient) UpdateNamespacedResource ¶ added in v1.4.0
func (e2e *E2EClient) UpdateNamespacedResource(gvr schema.GroupVersionResource, namespace string, resourceData *unstructured.Unstructured) (*unstructured.Unstructured, error)
UpdateNamespacedResource ...
func (*E2EClient) UpdateNamespacedResourceYaml ¶ added in v1.4.0
func (e2e *E2EClient) UpdateNamespacedResourceYaml(gvr schema.GroupVersionResource, namespace string, resourceData []byte) (*unstructured.Unstructured, error)
UpdateNamespacedResourceYaml creates namespaced resources like Pods, Services, Deployments etc