...

Package kclient

Overview ▾

Package kclient is a generated GoMock package.

Index ▾

Constants
Variables
func APIServiceBindingFromBinding(binding bindingApi.ServiceBinding) (api.ServiceBinding, error)
func APIServiceBindingFromSpec(spec specApi.ServiceBinding) api.ServiceBinding
func Bool(b bool) *bool
func ConvertK8sResourceToUnstructured(resource interface{}) (unstructuredResource unstructured.Unstructured, err error)
func ConvertUnstructuredListToResource(u unstructured.UnstructuredList, obj interface{}) error
func ConvertUnstructuredToResource(u unstructured.Unstructured, obj interface{}) error
func FakeNew() (*Client, *FakeClientset)
func FakeNewWithIngressSupports(networkingv1Supported, extensionV1Supported bool) (*Client, *FakeClientset)
func FakePodStatus(status corev1.PodPhase, podName string) *corev1.Pod
func GetGVRFromCR(cr *olm.CRDDescription) schema.GroupVersionResource
func GetInputEnvVarsFromStrings(envVars []string) ([]corev1.EnvVar, error)
func NewKubernetesFakedDiscovery(extv1b1supported, nwv1suppored bool) *odoFake.FakeDiscovery
func NewServiceBindingObject(bindingName string, bindAsFiles bool, workloadName string, namingStrategy string, workloadGVK schema.GroupVersionKind, mappings []bindingApi.Mapping, services []bindingApi.Service, status bindingApi.ServiceBindingStatus) *bindingApi.ServiceBinding
type Client
    func New() (*Client, error)
    func NewForConfig(config clientcmd.ClientConfig) (client *Client, err error)
    func (c *Client) ApplyDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)
    func (c *Client) CreateDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)
    func (c *Client) CreateJob(job batchv1.Job, namespace string) (*batchv1.Job, error)
    func (c *Client) CreateNamespace(name string) (*corev1.Namespace, error)
    func (c *Client) CreateNewProject(projectName string, wait bool) error
    func (c *Client) CreatePVC(pvc corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)
    func (c *Client) CreateSecret(objectMeta metav1.ObjectMeta, data map[string]string, ownerReference metav1.OwnerReference) error
    func (c *Client) CreateSecrets(componentName string, commonObjectMeta metav1.ObjectMeta, svc *corev1.Service, ownerReference metav1.OwnerReference) error
    func (c *Client) CreateService(svc corev1.Service) (*corev1.Service, error)
    func (c *Client) CreateTLSSecret(tlsCertificate []byte, tlsPrivKey []byte, objectMeta metav1.ObjectMeta) (*corev1.Secret, error)
    func (c *Client) DeleteDynamicResource(name string, gvr schema.GroupVersionResource, wait bool) error
    func (c *Client) DeleteJob(jobName string) error
    func (c *Client) DeleteNamespace(name string, wait bool) error
    func (c *Client) DeletePVC(pvcName string) error
    func (c *Client) DeleteProject(name string, wait bool) error
    func (c *Client) DeleteSecret(secretName, namespace string) error
    func (c *Client) DeleteService(serviceName string) error
    func (c *Client) DeploymentWatcher(ctx context.Context, selector string) (watch.Interface, error)
    func (c *Client) ExecCMDInContainer(ctx context.Context, containerName, podName string, cmd []string, stdout, stderr io.Writer, stdin io.Reader, tty bool) error
    func (c *Client) GeneratePortForwardReq(podName string) *rest.Request
    func (c *Client) GetAllPodsInNamespaceMatchingSelector(selector string, ns string) (*corev1.PodList, error)
    func (c *Client) GetAllResourcesFromSelector(selector string, ns string) ([]unstructured.Unstructured, error)
    func (c Client) GetBindableKindStatusRestMapping(bindableKindStatuses []bindingApi.BindableKindsStatus) ([]*meta.RESTMapping, error)
    func (c *Client) GetBindableKinds() (bindingApi.BindableKinds, error)
    func (c Client) GetBindingServiceBinding(name string) (bindingApi.ServiceBinding, error)
    func (c *Client) GetCSVWithCR(name string) (*olm.ClusterServiceVersion, error)
    func (c *Client) GetClient() kubernetes.Interface
    func (c *Client) GetClientConfig() *rest.Config
    func (c *Client) GetConfig() clientcmd.ClientConfig
    func (c *Client) GetCurrentNamespace() string
    func (c *Client) GetCurrentNamespacePolicy() (psaApi.Policy, error)
    func (c *Client) GetCurrentProjectName() string
    func (c *Client) GetCustomResourcesFromCSV(csv *olm.ClusterServiceVersion) *[]olm.CRDDescription
    func (c *Client) GetDeploymentAPIVersion() (schema.GroupVersionKind, error)
    func (c *Client) GetDeploymentByName(name string) (*appsv1.Deployment, error)
    func (c *Client) GetDeploymentFromSelector(selector string) ([]appsv1.Deployment, error)
    func (c *Client) GetDynamicClient() dynamic.Interface
    func (c *Client) GetDynamicResource(gvr schema.GroupVersionResource, name string) (*unstructured.Unstructured, error)
    func (c *Client) GetGVKFromGVR(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error)
    func (c *Client) GetGVRFromGVK(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
    func (c *Client) GetJobLogs(job *batchv1.Job, containerName string) (io.ReadCloser, error)
    func (c *Client) GetNamespace(name string) (*corev1.Namespace, error)
    func (c *Client) GetNamespaceNormal(name string) (*corev1.Namespace, error)
    func (c *Client) GetNamespaces() ([]string, error)
    func (c *Client) GetOCVersion() (string, error)
    func (c *Client) GetOneDeployment(componentName, appName string, isPartOfComponent bool) (*appsv1.Deployment, error)
    func (c *Client) GetOneDeploymentFromSelector(selector string) (*appsv1.Deployment, error)
    func (c *Client) GetOneService(componentName, appName string, isPartOfComponent bool) (*corev1.Service, error)
    func (c *Client) GetOneServiceFromSelector(selector string) (*corev1.Service, error)
    func (c *Client) GetOperatorGVRList() ([]meta.RESTMapping, error)
    func (c *Client) GetPVCFromName(pvcName string) (*corev1.PersistentVolumeClaim, error)
    func (c *Client) GetPodLogs(podName, containerName string, followLog bool) (io.ReadCloser, error)
    func (c *Client) GetPodUsingComponentName(componentName string) (*corev1.Pod, error)
    func (c *Client) GetPodsMatchingSelector(selector string) (*corev1.PodList, error)
    func (c *Client) GetProject(projectName string) (*projectv1.Project, error)
    func (c *Client) GetRegistryList() ([]api.Registry, error)
    func (c *Client) GetResourceSpecDefinition(group, version, kind string) (*spec.Schema, error)
    func (c *Client) GetRestMappingFromGVK(gvk schema.GroupVersionKind) (*meta.RESTMapping, error)
    func (c *Client) GetRestMappingFromUnstructured(u unstructured.Unstructured) (*meta.RESTMapping, error)
    func (c *Client) GetRunningPodFromSelector(selector string) (*corev1.Pod, error)
    func (c *Client) GetSecret(name, namespace string) (*corev1.Secret, error)
    func (c *Client) GetServerVersion(timeout time.Duration) (*ServerInfo, error)
    func (c Client) GetSpecServiceBinding(name string) (specApi.ServiceBinding, error)
    func (c Client) GetWorkloadKinds() ([]string, []schema.GroupVersionKind, error)
    func (c *Client) IsCSVSupported() (bool, error)
    func (c *Client) IsDeploymentExtensionsV1Beta1() (bool, error)
    func (c *Client) IsPodNameMatchingSelector(ctx context.Context, podname string, selector string) (bool, error)
    func (c *Client) IsProjectSupported() (bool, error)
    func (c *Client) IsResourceSupported(apiGroup, apiVersion, resourceName string) (bool, error)
    func (c *Client) IsSSASupported() bool
    func (c *Client) IsServiceBindingSupported() (bool, error)
    func (c *Client) ListClusterServiceVersions() (*olm.ClusterServiceVersionList, error)
    func (c *Client) ListClusterWideDynamicResources(gvr schema.GroupVersionResource, selector string) (*unstructured.UnstructuredList, error)
    func (c *Client) ListConfigMaps(labelSelector string) ([]corev1.ConfigMap, error)
    func (c *Client) ListDynamicResources(namespace string, gvr schema.GroupVersionResource, selector string) (*unstructured.UnstructuredList, error)
    func (c *Client) ListIngresses(namespace, selector string) (*v1.IngressList, error)
    func (c *Client) ListJobs(selector string) (*batchv1.JobList, error)
    func (c *Client) ListPVCNames(selector string) ([]string, error)
    func (c *Client) ListPVCs(selector string) ([]corev1.PersistentVolumeClaim, error)
    func (c *Client) ListProjectNames() ([]string, error)
    func (c *Client) ListProjects() (*projectv1.ProjectList, error)
    func (c *Client) ListSecrets(labelSelector string) ([]corev1.Secret, error)
    func (c Client) ListServiceBindingsFromAllGroups() ([]specApi.ServiceBinding, []bindingApi.ServiceBinding, error)
    func (c *Client) ListServices(selector string) ([]corev1.Service, error)
    func (c *Client) NewServiceBindingServiceObject(serviceNs string, unstructuredService unstructured.Unstructured, bindingName string) (bindingApi.Service, error)
    func (c *Client) PatchDynamicResource(resource unstructured.Unstructured) (bool, error)
    func (c *Client) PodWarningEventWatcher(ctx context.Context) (result watch.Interface, isForbidden bool, err error)
    func (c *Client) PodWatcher(ctx context.Context, selector string) (watch.Interface, error)
    func (c *Client) Refresh() (bool, error)
    func (c *Client) RunLogout(stdout io.Writer) error
    func (c *Client) SetCurrentNamespace(namespace string) error
    func (c *Client) SetDiscoveryInterface(client discovery.DiscoveryInterface)
    func (c *Client) SetDynamicClient(scheme *runtime.Scheme, objects ...runtime.Object)
    func (c *Client) SetNamespace(ns string)
    func (c *Client) SetupPortForwarding(pod *corev1.Pod, portPairs []string, out io.Writer, errOut io.Writer, stopChan chan struct{}, address string) error
    func (c *Client) TryWithBlockOwnerDeletion(ownerReference metav1.OwnerReference, exec func(ownerReference metav1.OwnerReference) error) error
    func (c *Client) UpdateDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)
    func (c *Client) UpdateDynamicResource(gvr schema.GroupVersionResource, name string, u *unstructured.Unstructured) error
    func (c *Client) UpdatePVCLabels(pvc *corev1.PersistentVolumeClaim, labels map[string]string) error
    func (c *Client) UpdateSecret(secret *corev1.Secret, namespace string) (*corev1.Secret, error)
    func (c *Client) UpdateService(svc corev1.Service) (*corev1.Service, error)
    func (c *Client) UpdateStorageOwnerReference(pvc *corev1.PersistentVolumeClaim, ownerReference ...metav1.OwnerReference) error
    func (c *Client) WaitAndGetSecret(name string, namespace string) (*corev1.Secret, error)
    func (c *Client) WaitDynamicResourceDeleted(gvr schema.GroupVersionResource, name string) error
    func (c *Client) WaitForJobToComplete(job *batchv1.Job) (*batchv1.Job, error)
    func (c *Client) WaitForServiceAccountInNamespace(namespace, serviceAccountName string) error
type ClientInterface
type DeploymentNotFoundError
    func (e *DeploymentNotFoundError) Error() string
type FakeClientset
type GVRN
type MockClientInterface
    func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface
    func (m *MockClientInterface) ApplyDeployment(deploy v10.Deployment) (*v10.Deployment, error)
    func (m *MockClientInterface) CreateDeployment(deploy v10.Deployment) (*v10.Deployment, error)
    func (m *MockClientInterface) CreateJob(job v11.Job, namespace string) (*v11.Job, error)
    func (m *MockClientInterface) CreateNamespace(name string) (*v12.Namespace, error)
    func (m *MockClientInterface) CreateNewProject(projectName string, wait bool) error
    func (m *MockClientInterface) CreatePVC(pvc v12.PersistentVolumeClaim) (*v12.PersistentVolumeClaim, error)
    func (m *MockClientInterface) CreateSecret(objectMeta v14.ObjectMeta, data map[string]string, ownerReference v14.OwnerReference) error
    func (m *MockClientInterface) CreateSecrets(componentName string, commonObjectMeta v14.ObjectMeta, svc *v12.Service, ownerReference v14.OwnerReference) error
    func (m *MockClientInterface) CreateService(svc v12.Service) (*v12.Service, error)
    func (m *MockClientInterface) CreateTLSSecret(tlsCertificate, tlsPrivKey []byte, objectMeta v14.ObjectMeta) (*v12.Secret, error)
    func (m *MockClientInterface) DeleteDynamicResource(name string, gvr schema.GroupVersionResource, wait bool) error
    func (m *MockClientInterface) DeleteJob(jobName string) error
    func (m *MockClientInterface) DeleteNamespace(name string, wait bool) error
    func (m *MockClientInterface) DeletePVC(pvcName string) error
    func (m *MockClientInterface) DeleteProject(name string, wait bool) error
    func (m *MockClientInterface) DeleteSecret(secretName, namespace string) error
    func (m *MockClientInterface) DeleteService(serviceName string) error
    func (m *MockClientInterface) DeploymentWatcher(ctx context.Context, selector string) (watch.Interface, error)
    func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder
    func (m *MockClientInterface) ExecCMDInContainer(ctx context.Context, containerName, podName string, cmd []string, stdout, stderr io.Writer, stdin io.Reader, tty bool) error
    func (m *MockClientInterface) GeneratePortForwardReq(podName string) *rest.Request
    func (m *MockClientInterface) GetAllPodsInNamespaceMatchingSelector(selector, ns string) (*v12.PodList, error)
    func (m *MockClientInterface) GetAllResourcesFromSelector(selector, ns string) ([]unstructured.Unstructured, error)
    func (m *MockClientInterface) GetBindableKindStatusRestMapping(bindableKindStatuses []v1alpha10.BindableKindsStatus) ([]*meta.RESTMapping, error)
    func (m *MockClientInterface) GetBindableKinds() (v1alpha10.BindableKinds, error)
    func (m *MockClientInterface) GetBindingServiceBinding(name string) (v1alpha10.ServiceBinding, error)
    func (m *MockClientInterface) GetCSVWithCR(name string) (*v1alpha1.ClusterServiceVersion, error)
    func (m *MockClientInterface) GetClient() kubernetes.Interface
    func (m *MockClientInterface) GetClientConfig() *rest.Config
    func (m *MockClientInterface) GetConfig() clientcmd.ClientConfig
    func (m *MockClientInterface) GetCurrentNamespace() string
    func (m *MockClientInterface) GetCurrentNamespacePolicy() (api0.Policy, error)
    func (m *MockClientInterface) GetCurrentProjectName() string
    func (m *MockClientInterface) GetCustomResourcesFromCSV(csv *v1alpha1.ClusterServiceVersion) *[]v1alpha1.CRDDescription
    func (m *MockClientInterface) GetDeploymentAPIVersion() (schema.GroupVersionKind, error)
    func (m *MockClientInterface) GetDeploymentByName(name string) (*v10.Deployment, error)
    func (m *MockClientInterface) GetDeploymentFromSelector(selector string) ([]v10.Deployment, error)
    func (m *MockClientInterface) GetDynamicClient() dynamic.Interface
    func (m *MockClientInterface) GetDynamicResource(gvr schema.GroupVersionResource, name string) (*unstructured.Unstructured, error)
    func (m *MockClientInterface) GetGVKFromGVR(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error)
    func (m *MockClientInterface) GetGVRFromGVK(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
    func (m *MockClientInterface) GetJobLogs(job *v11.Job, containerName string) (io.ReadCloser, error)
    func (m *MockClientInterface) GetNamespace(name string) (*v12.Namespace, error)
    func (m *MockClientInterface) GetNamespaceNormal(name string) (*v12.Namespace, error)
    func (m *MockClientInterface) GetNamespaces() ([]string, error)
    func (m *MockClientInterface) GetOCVersion() (string, error)
    func (m *MockClientInterface) GetOneDeployment(componentName, appName string, isPartOfComponent bool) (*v10.Deployment, error)
    func (m *MockClientInterface) GetOneDeploymentFromSelector(selector string) (*v10.Deployment, error)
    func (m *MockClientInterface) GetOneService(componentName, appName string, isPartOfComponent bool) (*v12.Service, error)
    func (m *MockClientInterface) GetOneServiceFromSelector(selector string) (*v12.Service, error)
    func (m *MockClientInterface) GetOperatorGVRList() ([]meta.RESTMapping, error)
    func (m *MockClientInterface) GetPVCFromName(pvcName string) (*v12.PersistentVolumeClaim, error)
    func (m *MockClientInterface) GetPodLogs(podName, containerName string, followLog bool) (io.ReadCloser, error)
    func (m *MockClientInterface) GetPodUsingComponentName(componentName string) (*v12.Pod, error)
    func (m *MockClientInterface) GetPodsMatchingSelector(selector string) (*v12.PodList, error)
    func (m *MockClientInterface) GetProject(projectName string) (*v1.Project, error)
    func (m *MockClientInterface) GetRegistryList() ([]api.Registry, error)
    func (m *MockClientInterface) GetResourceSpecDefinition(group, version, kind string) (*spec.Schema, error)
    func (m *MockClientInterface) GetRestMappingFromGVK(gvk schema.GroupVersionKind) (*meta.RESTMapping, error)
    func (m *MockClientInterface) GetRestMappingFromUnstructured(arg0 unstructured.Unstructured) (*meta.RESTMapping, error)
    func (m *MockClientInterface) GetRunningPodFromSelector(selector string) (*v12.Pod, error)
    func (m *MockClientInterface) GetSecret(name, namespace string) (*v12.Secret, error)
    func (m *MockClientInterface) GetServerVersion(timeout time.Duration) (*ServerInfo, error)
    func (m *MockClientInterface) GetSpecServiceBinding(name string) (v1alpha3.ServiceBinding, error)
    func (m *MockClientInterface) GetWorkloadKinds() ([]string, []schema.GroupVersionKind, error)
    func (m *MockClientInterface) IsCSVSupported() (bool, error)
    func (m *MockClientInterface) IsDeploymentExtensionsV1Beta1() (bool, error)
    func (m *MockClientInterface) IsPodNameMatchingSelector(ctx context.Context, podname, selector string) (bool, error)
    func (m *MockClientInterface) IsProjectSupported() (bool, error)
    func (m *MockClientInterface) IsResourceSupported(apiGroup, apiVersion, resourceName string) (bool, error)
    func (m *MockClientInterface) IsSSASupported() bool
    func (m *MockClientInterface) IsServiceBindingSupported() (bool, error)
    func (m *MockClientInterface) ListClusterServiceVersions() (*v1alpha1.ClusterServiceVersionList, error)
    func (m *MockClientInterface) ListConfigMaps(labelSelector string) ([]v12.ConfigMap, error)
    func (m *MockClientInterface) ListDynamicResources(namespace string, gvr schema.GroupVersionResource, selector string) (*unstructured.UnstructuredList, error)
    func (m *MockClientInterface) ListIngresses(namespace, selector string) (*v13.IngressList, error)
    func (m *MockClientInterface) ListJobs(selector string) (*v11.JobList, error)
    func (m *MockClientInterface) ListPVCNames(selector string) ([]string, error)
    func (m *MockClientInterface) ListPVCs(selector string) ([]v12.PersistentVolumeClaim, error)
    func (m *MockClientInterface) ListProjectNames() ([]string, error)
    func (m *MockClientInterface) ListSecrets(labelSelector string) ([]v12.Secret, error)
    func (m *MockClientInterface) ListServiceBindingsFromAllGroups() ([]v1alpha3.ServiceBinding, []v1alpha10.ServiceBinding, error)
    func (m *MockClientInterface) ListServices(selector string) ([]v12.Service, error)
    func (m *MockClientInterface) NewServiceBindingServiceObject(serviceNs string, unstructuredService unstructured.Unstructured, bindingName string) (v1alpha10.Service, error)
    func (m *MockClientInterface) PatchDynamicResource(exampleCustomResource unstructured.Unstructured) (bool, error)
    func (m *MockClientInterface) PodWarningEventWatcher(ctx context.Context) (watch.Interface, bool, error)
    func (m *MockClientInterface) PodWatcher(ctx context.Context, selector string) (watch.Interface, error)
    func (m *MockClientInterface) Refresh() (bool, error)
    func (m *MockClientInterface) RunLogout(stdout io.Writer) error
    func (m *MockClientInterface) SetCurrentNamespace(namespace string) error
    func (m *MockClientInterface) SetDiscoveryInterface(client discovery.DiscoveryInterface)
    func (m *MockClientInterface) SetNamespace(ns string)
    func (m *MockClientInterface) SetupPortForwarding(pod *v12.Pod, portPairs []string, out, errOut io.Writer, stopChan chan struct{}, address string) error
    func (m *MockClientInterface) TryWithBlockOwnerDeletion(ownerReference v14.OwnerReference, exec func(v14.OwnerReference) error) error
    func (m *MockClientInterface) UpdateDeployment(deploy v10.Deployment) (*v10.Deployment, error)
    func (m *MockClientInterface) UpdateDynamicResource(gvr schema.GroupVersionResource, name string, u *unstructured.Unstructured) error
    func (m *MockClientInterface) UpdatePVCLabels(pvc *v12.PersistentVolumeClaim, labels map[string]string) error
    func (m *MockClientInterface) UpdateSecret(secret *v12.Secret, namespace string) (*v12.Secret, error)
    func (m *MockClientInterface) UpdateService(svc v12.Service) (*v12.Service, error)
    func (m *MockClientInterface) UpdateStorageOwnerReference(pvc *v12.PersistentVolumeClaim, ownerReference ...v14.OwnerReference) error
    func (m *MockClientInterface) WaitAndGetSecret(name, namespace string) (*v12.Secret, error)
    func (m *MockClientInterface) WaitForJobToComplete(job *v11.Job) (*v11.Job, error)
    func (m *MockClientInterface) WaitForServiceAccountInNamespace(namespace, serviceAccountName string) error
type MockClientInterfaceMockRecorder
    func (mr *MockClientInterfaceMockRecorder) ApplyDeployment(deploy interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateDeployment(deploy interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateJob(job, namespace interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateNamespace(name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateNewProject(projectName, wait interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreatePVC(pvc interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateSecret(objectMeta, data, ownerReference interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateSecrets(componentName, commonObjectMeta, svc, ownerReference interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateService(svc interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) CreateTLSSecret(tlsCertificate, tlsPrivKey, objectMeta interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeleteDynamicResource(name, gvr, wait interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeleteJob(jobName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeleteNamespace(name, wait interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeletePVC(pvcName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeleteProject(name, wait interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeleteSecret(secretName, namespace interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeleteService(serviceName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) DeploymentWatcher(ctx, selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ExecCMDInContainer(ctx, containerName, podName, cmd, stdout, stderr, stdin, tty interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GeneratePortForwardReq(podName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetAllPodsInNamespaceMatchingSelector(selector, ns interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetAllResourcesFromSelector(selector, ns interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetBindableKindStatusRestMapping(bindableKindStatuses interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetBindableKinds() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetBindingServiceBinding(name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetCSVWithCR(name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetClient() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetClientConfig() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetConfig() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetCurrentNamespace() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetCurrentNamespacePolicy() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetCurrentProjectName() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetCustomResourcesFromCSV(csv interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetDeploymentAPIVersion() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetDeploymentByName(name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetDeploymentFromSelector(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetDynamicClient() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetDynamicResource(gvr, name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetGVKFromGVR(gvr interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetGVRFromGVK(gvk interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetJobLogs(job, containerName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetNamespace(name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetNamespaceNormal(name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetNamespaces() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetOCVersion() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetOneDeployment(componentName, appName, isPartOfComponent interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetOneDeploymentFromSelector(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetOneService(componentName, appName, isPartOfComponent interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetOneServiceFromSelector(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetOperatorGVRList() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetPVCFromName(pvcName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetPodLogs(podName, containerName, followLog interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetPodUsingComponentName(componentName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetPodsMatchingSelector(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetProject(projectName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetRegistryList() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetResourceSpecDefinition(group, version, kind interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetRestMappingFromGVK(gvk interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetRestMappingFromUnstructured(arg0 interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetRunningPodFromSelector(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetSecret(name, namespace interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetServerVersion(timeout interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetSpecServiceBinding(name interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) GetWorkloadKinds() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) IsCSVSupported() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) IsDeploymentExtensionsV1Beta1() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) IsPodNameMatchingSelector(ctx, podname, selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) IsProjectSupported() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) IsResourceSupported(apiGroup, apiVersion, resourceName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) IsSSASupported() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) IsServiceBindingSupported() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListClusterServiceVersions() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListConfigMaps(labelSelector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListDynamicResources(namespace, gvr, selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListIngresses(namespace, selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListJobs(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListPVCNames(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListPVCs(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListProjectNames() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListSecrets(labelSelector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListServiceBindingsFromAllGroups() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) ListServices(selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) NewServiceBindingServiceObject(serviceNs, unstructuredService, bindingName interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) PatchDynamicResource(exampleCustomResource interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) PodWarningEventWatcher(ctx interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) PodWatcher(ctx, selector interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) Refresh() *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) RunLogout(stdout interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) SetCurrentNamespace(namespace interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) SetDiscoveryInterface(client interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) SetNamespace(ns interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) SetupPortForwarding(pod, portPairs, out, errOut, stopChan, address interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) TryWithBlockOwnerDeletion(ownerReference, exec interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) UpdateDeployment(deploy interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) UpdateDynamicResource(gvr, name, u interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) UpdatePVCLabels(pvc, labels interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) UpdateSecret(secret, namespace interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) UpdateService(svc interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) UpdateStorageOwnerReference(pvc interface{}, ownerReference ...interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) WaitAndGetSecret(name, namespace interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) WaitForJobToComplete(job interface{}) *gomock.Call
    func (mr *MockClientInterfaceMockRecorder) WaitForServiceAccountInNamespace(namespace, serviceAccountName interface{}) *gomock.Call
type NoConnectionError
    func NewNoConnectionError() NoConnectionError
    func (e NoConnectionError) Error() string
type NoOpWatch
    func (o NoOpWatch) ResultChan() <-chan watch.Event
    func (o NoOpWatch) Stop()
type SelfSignedCertificate
    func GenerateSelfSignedCertificate(host string) (SelfSignedCertificate, error)
type ServerInfo
type ServiceNotFoundError
    func (e *ServiceNotFoundError) Error() string

Package files

all.go binding.go configmap.go deployments.go dynamic.go errors.go events.go fakeclient.go ingress_routes.go interface.go jobs.go kclient.go mock_Client.go namespace.go oc_server.go operators.go owner_reference.go pods.go port_forwarding.go projects.go refresh.go registry.go secrets.go services.go user.go utils.go volumes.go

Constants

const (
    ServiceBindingKind    = "ServiceBinding"
    BindableKindsResource = "bindablekinds"
)
const (
    DeploymentKind       = "Deployment"
    DeploymentAPIVersion = "apps/v1"
)

constants for volumes

const (
    JobsKind       = "Job"
    JobsAPIVersion = "batch/v1"
    // JobNameOdoMaxLength is the max length of a job name
    // To be on the safe side, we keep the max length less than the original(k8s) max length;
    // we do this because k8s job in odo is created to run exec commands in Deploy mode and this is not a user created resource,
    // so we do not want to break because of any error with job
    JobNameOdoMaxLength = 60
)

constants for volumes

const (
    PersistentVolumeClaimKind       = "PersistentVolumeClaim"
    PersistentVolumeClaimAPIVersion = "v1"
)

ComponentPortAnnotationName annotation is used on the secrets that are created for each exposed port of the component

const ComponentPortAnnotationName = "component-port"
const FieldManager = "odo"

Variables

var (
    NativeWorkloadKinds = []schema.GroupVersionKind{
        appsv1.SchemeGroupVersion.WithKind("DaemonSet"),
        appsv1.SchemeGroupVersion.WithKind("Deployment"),
        appsv1.SchemeGroupVersion.WithKind("ReplicaSet"),
        corev1.SchemeGroupVersion.WithKind("ReplicationController"),
        appsv1.SchemeGroupVersion.WithKind("StatefulSet"),
    }

    CustomWorkloadKinds = []schema.GroupVersionKind{
        ocappsv1.SchemeGroupVersion.WithKind("DeploymentConfig"),
    }
)
var (
    RouteGVK = schema.GroupVersionKind{
        Group:   "route.openshift.io",
        Version: "v1",
        Kind:    "Route",
    }
)
var SecretGVK = corev1.SchemeGroupVersion.WithKind("Secret")

func APIServiceBindingFromBinding

func APIServiceBindingFromBinding(
    binding bindingApi.ServiceBinding,
) (api.ServiceBinding, error)

APIServiceBindingFromBinding returns a common api.ServiceBinding structure from a ServiceBinding.binding.operators.coreos.com/v1alpha1

func APIServiceBindingFromSpec

func APIServiceBindingFromSpec(spec specApi.ServiceBinding) api.ServiceBinding

APIServiceBindingFromSpec returns a common api.ServiceBinding structure from a ServiceBinding.servicebinding.io/v1alpha3

func Bool

func Bool(b bool) *bool

func ConvertK8sResourceToUnstructured

func ConvertK8sResourceToUnstructured(resource interface{}) (unstructuredResource unstructured.Unstructured, err error)

ConvertK8sResourceToUnstructured converts any K8s resource to unstructured.Unstructured format TODO: Remove this method and use https://github.com/redhat-developer/service-binding-operator/blob/master/pkg/converter/unstructured.go#L11

func ConvertUnstructuredListToResource

func ConvertUnstructuredListToResource(u unstructured.UnstructuredList, obj interface{}) error

func ConvertUnstructuredToResource

func ConvertUnstructuredToResource(u unstructured.Unstructured, obj interface{}) error

func FakeNew

func FakeNew() (*Client, *FakeClientset)

FakeNew creates new fake client for testing returns Client that is filled with fake clients and FakeClientSet that holds fake Clientsets to access Actions, Reactors etc... in fake client fake ingress support is set to default ie only extension v1 beta 1 is supported

func FakeNewWithIngressSupports

func FakeNewWithIngressSupports(networkingv1Supported, extensionV1Supported bool) (*Client, *FakeClientset)

FakeNewWithIngressSupports creates new fake client for testing returns Client that is filled with fake clients and FakeClientSet that holds fake Clientsets to access Actions, Reactors etc... in fake

func FakePodStatus

func FakePodStatus(status corev1.PodPhase, podName string) *corev1.Pod

FakePodStatus returns a pod with the status

func GetGVRFromCR

func GetGVRFromCR(cr *olm.CRDDescription) schema.GroupVersionResource

GetGVRFromCR parses and returns the values for group, version and resource for a given Custom Resource (CR).

func GetInputEnvVarsFromStrings

func GetInputEnvVarsFromStrings(envVars []string) ([]corev1.EnvVar, error)

GetInputEnvVarsFromStrings generates corev1.EnvVar values from the array of string key=value pairs envVars is the array containing the key=value pairs

func NewKubernetesFakedDiscovery

func NewKubernetesFakedDiscovery(extv1b1supported, nwv1suppored bool) *odoFake.FakeDiscovery

func NewServiceBindingObject

func NewServiceBindingObject(
    bindingName string,
    bindAsFiles bool,
    workloadName string,
    namingStrategy string,
    workloadGVK schema.GroupVersionKind,
    mappings []bindingApi.Mapping,
    services []bindingApi.Service,
    status bindingApi.ServiceBindingStatus,
) *bindingApi.ServiceBinding

NewServiceBindingObject returns the bindingApi.ServiceBinding object

type Client

Client is a collection of fields used for client configuration and interaction

type Client struct {
    KubeClient       kubernetes.Interface
    KubeConfig       clientcmd.ClientConfig
    KubeClientConfig *rest.Config
    Namespace        string
    OperatorClient   *operatorsclientset.OperatorsV1alpha1Client

    // DynamicClient interacts with client-go's `dynamic` package. It is used
    // to dynamically create service from an operator. It can take an arbitrary
    // yaml and create k8s/OpenShift resource from it.
    DynamicClient dynamic.Interface
    // contains filtered or unexported fields
}

func New

func New() (*Client, error)

New creates a new client

func NewForConfig

func NewForConfig(config clientcmd.ClientConfig) (client *Client, err error)

NewForConfig creates a new client with the provided configuration or initializes the configuration if none is provided

func (*Client) ApplyDeployment

func (c *Client) ApplyDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)

ApplyDeployment creates or updates a deployment based on the given deployment spec It is using force:true to make sure that if someone changed one of the values that odo manages, odo overrides it with the value it expects instead of failing due to conflict.

func (*Client) CreateDeployment

func (c *Client) CreateDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)

CreateDeployment creates a deployment based on the given deployment spec

func (*Client) CreateJob

func (c *Client) CreateJob(job batchv1.Job, namespace string) (*batchv1.Job, error)

CreateJobs creates a K8s job to execute task

func (*Client) CreateNamespace

func (c *Client) CreateNamespace(name string) (*corev1.Namespace, error)

CreateNamespace creates new namespace

func (*Client) CreateNewProject

func (c *Client) CreateNewProject(projectName string, wait bool) error

CreateNewProject creates project with given projectName

func (*Client) CreatePVC

func (c *Client) CreatePVC(pvc corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)

CreatePVC creates a PVC resource in the cluster with the given name, size and labels

func (*Client) CreateSecret

func (c *Client) CreateSecret(objectMeta metav1.ObjectMeta, data map[string]string, ownerReference metav1.OwnerReference) error

CreateSecret generates and creates the secret commonObjectMeta is the ObjectMeta for the service

func (*Client) CreateSecrets

func (c *Client) CreateSecrets(componentName string, commonObjectMeta metav1.ObjectMeta, svc *corev1.Service, ownerReference metav1.OwnerReference) error

CreateSecrets creates a secret for each port, containing the host and port of the component This is done so other components can later inject the secret into the environment and have the "coordinates" to communicate with this component

func (*Client) CreateService

func (c *Client) CreateService(svc corev1.Service) (*corev1.Service, error)

CreateService generates and creates the service commonObjectMeta is the ObjectMeta for the service

func (*Client) CreateTLSSecret

func (c *Client) CreateTLSSecret(tlsCertificate []byte, tlsPrivKey []byte, objectMeta metav1.ObjectMeta) (*corev1.Secret, error)

CreateTLSSecret creates a TLS Secret with the given certificate and private key serviceName is the name of the service for the target reference ingressDomain is the ingress domain to use for the ingress

func (*Client) DeleteDynamicResource

func (c *Client) DeleteDynamicResource(name string, gvr schema.GroupVersionResource, wait bool) error

DeleteDynamicResource deletes an instance, specified by name, of a Custom Resource if wait is true, it will set the PropagationPolicy to DeletePropagationForeground to wait for owned resources to be deleted (only for resources with a BlockOwnerDeletion set to true)

func (*Client) DeleteJob

func (c *Client) DeleteJob(jobName string) error

func (*Client) DeleteNamespace

func (c *Client) DeleteNamespace(name string, wait bool) error

DeleteNamespace deletes namespace if wait=true , it will wait for deletion

func (*Client) DeletePVC

func (c *Client) DeletePVC(pvcName string) error

DeletePVC deletes the required PVC resource from the cluster

func (*Client) DeleteProject

func (c *Client) DeleteProject(name string, wait bool) error

DeleteProject deletes given project

NOTE: There is a very specific edge case that may happen during project deletion when deleting a project and then immediately creating another. Unfortunately, despite the watch interface, we cannot safely determine if the project is 100% deleted. See this link: https://stackoverflow.com/questions/48208001/deleted-openshift-online-pro-project-has-left-a-trace-so-cannot-create-project-o Will Gordon (Engineer @ Red Hat) describes the issue:

"Projects are deleted asynchronously after you send the delete command. So it's possible that the deletion just hasn't been reconciled yet. It should happen within a minute or so, so try again. Also, please be aware that in a multitenant environment, like OpenShift Online, you are prevented from creating a project with the same name as any other project in the cluster, even if it's not your own. So if you can't create the project, it's possible that someone has already created a project with the same name."

func (*Client) DeleteSecret

func (c *Client) DeleteSecret(secretName, namespace string) error

DeleteSecret updates the given Secret object in the given namespace

func (*Client) DeleteService

func (c *Client) DeleteService(serviceName string) error

DeleteService deletes the service with the given service name

func (*Client) DeploymentWatcher

func (c *Client) DeploymentWatcher(ctx context.Context, selector string) (watch.Interface, error)

DeploymentWatcher returns a watcher on Deployments into the current namespace with the given label selector

func (*Client) ExecCMDInContainer

func (c *Client) ExecCMDInContainer(ctx context.Context, containerName, podName string, cmd []string, stdout, stderr io.Writer, stdin io.Reader, tty bool) error

ExecCMDInContainer execute command in the container of a pod, pass an empty string for containerName to execute in the first container of the pod

func (*Client) GeneratePortForwardReq

func (c *Client) GeneratePortForwardReq(podName string) *rest.Request

GeneratePortForwardReq builds a port forward request

func (*Client) GetAllPodsInNamespaceMatchingSelector

func (c *Client) GetAllPodsInNamespaceMatchingSelector(selector string, ns string) (*corev1.PodList, error)

func (*Client) GetAllResourcesFromSelector

func (c *Client) GetAllResourcesFromSelector(selector string, ns string) ([]unstructured.Unstructured, error)

GetAllResourcesFromSelector returns all resources of any kind (including CRs) matching the given label selector

func (Client) GetBindableKindStatusRestMapping

func (c Client) GetBindableKindStatusRestMapping(bindableKindStatuses []bindingApi.BindableKindsStatus) ([]*meta.RESTMapping, error)

GetBindableKindStatusRestMapping returns a list of *meta.RESTMapping of all the bindable kind operator CRD

func (*Client) GetBindableKinds

func (c *Client) GetBindableKinds() (bindingApi.BindableKinds, error)

GetBindableKinds returns BindableKinds of name "bindable-kinds". "bindable-kinds" is the default resource provided by SBO

func (Client) GetBindingServiceBinding

func (c Client) GetBindingServiceBinding(name string) (bindingApi.ServiceBinding, error)

GetBindingServiceBinding returns a ServiceBinding from group binding.operators.coreos.com/v1alpha1

func (*Client) GetCSVWithCR

func (c *Client) GetCSVWithCR(name string) (*olm.ClusterServiceVersion, error)

GetCSVWithCR returns the CSV (Operator) that contains the CR (service)

func (*Client) GetClient

func (c *Client) GetClient() kubernetes.Interface

func (*Client) GetClientConfig

func (c *Client) GetClientConfig() *rest.Config

func (*Client) GetConfig

func (c *Client) GetConfig() clientcmd.ClientConfig

func (*Client) GetCurrentNamespace

func (c *Client) GetCurrentNamespace() string

func (*Client) GetCurrentNamespacePolicy

func (c *Client) GetCurrentNamespacePolicy() (psaApi.Policy, error)

func (*Client) GetCurrentProjectName

func (c *Client) GetCurrentProjectName() string

GetCurrentProjectName returns the current project name

func (*Client) GetCustomResourcesFromCSV

func (c *Client) GetCustomResourcesFromCSV(csv *olm.ClusterServiceVersion) *[]olm.CRDDescription

GetCustomResourcesFromCSV returns a list of CRs provided by an operator/CSV.

func (*Client) GetDeploymentAPIVersion

func (c *Client) GetDeploymentAPIVersion() (schema.GroupVersionKind, error)

GetDeploymentAPIVersion returns a map with Group, Version, Resource information of Deployment objects depending on the GVR supported by the cluster

func (*Client) GetDeploymentByName

func (c *Client) GetDeploymentByName(name string) (*appsv1.Deployment, error)

GetDeploymentByName gets a deployment by querying by name

func (*Client) GetDeploymentFromSelector

func (c *Client) GetDeploymentFromSelector(selector string) ([]appsv1.Deployment, error)

GetDeploymentFromSelector returns an array of Deployment resources which match the given selector

func (*Client) GetDynamicClient

func (c *Client) GetDynamicClient() dynamic.Interface

func (*Client) GetDynamicResource

func (c *Client) GetDynamicResource(gvr schema.GroupVersionResource, name string) (*unstructured.Unstructured, error)

GetDynamicResource returns an unstructured instance of a Custom Resource currently deployed in the active namespace

func (*Client) GetGVKFromGVR

func (c *Client) GetGVKFromGVR(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error)

func (*Client) GetGVRFromGVK

func (c *Client) GetGVRFromGVK(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)

func (*Client) GetJobLogs

func (c *Client) GetJobLogs(job *batchv1.Job, containerName string) (io.ReadCloser, error)

GetJobLogs retrieves pod logs of a job

func (*Client) GetNamespace

func (c *Client) GetNamespace(name string) (*corev1.Namespace, error)

GetNamespace returns Namespace based on its name Errors related to project not being found or forbidden are translated to nil project for compatibility

func (*Client) GetNamespaceNormal

func (c *Client) GetNamespaceNormal(name string) (*corev1.Namespace, error)

GetNamespace returns Namespace based on its name

func (*Client) GetNamespaces

func (c *Client) GetNamespaces() ([]string, error)

GetNamespaces return list of existing namespaces that user has access to.

func (*Client) GetOCVersion

func (c *Client) GetOCVersion() (string, error)

func (*Client) GetOneDeployment

func (c *Client) GetOneDeployment(componentName, appName string, isPartOfComponent bool) (*appsv1.Deployment, error)

GetOneDeployment returns the Deployment object associated with the given component and app

func (*Client) GetOneDeploymentFromSelector

func (c *Client) GetOneDeploymentFromSelector(selector string) (*appsv1.Deployment, error)

GetOneDeploymentFromSelector returns the Deployment object associated with the given selector. An error is thrown when exactly one Deployment is not found for the selector.

func (*Client) GetOneService

func (c *Client) GetOneService(componentName, appName string, isPartOfComponent bool) (*corev1.Service, error)

GetOneService retrieves the service with the given component and app name An error is thrown when exactly one service is not found for the selector.

func (*Client) GetOneServiceFromSelector

func (c *Client) GetOneServiceFromSelector(selector string) (*corev1.Service, error)

GetOneServiceFromSelector returns the service object associated with the given selector. An error is thrown when exactly one service is not found for the selector.

func (*Client) GetOperatorGVRList

func (c *Client) GetOperatorGVRList() ([]meta.RESTMapping, error)

GetOperatorGVRList creates a slice of rest mappings that are provided by Operators (CSV)

func (*Client) GetPVCFromName

func (c *Client) GetPVCFromName(pvcName string) (*corev1.PersistentVolumeClaim, error)

GetPVCFromName returns the PVC of the given name

func (*Client) GetPodLogs

func (c *Client) GetPodLogs(podName, containerName string, followLog bool) (io.ReadCloser, error)

GetPodLogs prints the log from pod to stdout

func (*Client) GetPodUsingComponentName

func (c *Client) GetPodUsingComponentName(componentName string) (*corev1.Pod, error)

GetPodUsingComponentName gets a pod using the component name

func (*Client) GetPodsMatchingSelector

func (c *Client) GetPodsMatchingSelector(selector string) (*corev1.PodList, error)

func (*Client) GetProject

func (c *Client) GetProject(projectName string) (*projectv1.Project, error)

GetProject returns project based on the name of the project errors related to project not being found or forbidden are translated to nil project for compatibility

func (*Client) GetRegistryList

func (c *Client) GetRegistryList() ([]api.Registry, error)

func (*Client) GetResourceSpecDefinition

func (c *Client) GetResourceSpecDefinition(group, version, kind string) (*spec.Schema, error)

GetResourceSpecDefinition returns the OpenAPI v2 definition of the Kubernetes resource of a given group/version/kind

func (*Client) GetRestMappingFromGVK

func (c *Client) GetRestMappingFromGVK(gvk schema.GroupVersionKind) (*meta.RESTMapping, error)

func (*Client) GetRestMappingFromUnstructured

func (c *Client) GetRestMappingFromUnstructured(u unstructured.Unstructured) (*meta.RESTMapping, error)

GetRestMappingFromUnstructured returns rest mappings from unstructured data

func (*Client) GetRunningPodFromSelector

func (c *Client) GetRunningPodFromSelector(selector string) (*corev1.Pod, error)

GetRunningPodFromSelector gets a pod from the selector

func (*Client) GetSecret

func (c *Client) GetSecret(name, namespace string) (*corev1.Secret, error)

GetSecret returns the Secret object in the given namespace

func (*Client) GetServerVersion

func (c *Client) GetServerVersion(timeout time.Duration) (*ServerInfo, error)

GetServerVersion will fetch the Server Host, OpenShift and Kubernetes Version It will be shown on the execution of odo version command

func (Client) GetSpecServiceBinding

func (c Client) GetSpecServiceBinding(name string) (specApi.ServiceBinding, error)

GetSpecServiceBinding returns a ServiceBinding from group servicebinding.io/v1alpha3

func (Client) GetWorkloadKinds

func (c Client) GetWorkloadKinds() ([]string, []schema.GroupVersionKind, error)

GetWorkloadKinds returns all the workload kinds present in the cluster It considers that all native resources are present and tests only for custom resources Returns an array of Kinds and an array of GVKs

func (*Client) IsCSVSupported

func (c *Client) IsCSVSupported() (bool, error)

IsCSVSupported checks if resource of type service binding request present on the cluster

func (*Client) IsDeploymentExtensionsV1Beta1

func (c *Client) IsDeploymentExtensionsV1Beta1() (bool, error)

func (*Client) IsPodNameMatchingSelector

func (c *Client) IsPodNameMatchingSelector(ctx context.Context, podname string, selector string) (bool, error)

func (*Client) IsProjectSupported

func (c *Client) IsProjectSupported() (bool, error)

IsProjectSupported checks if Project resource type is present on the cluster

func (*Client) IsResourceSupported

func (c *Client) IsResourceSupported(apiGroup, apiVersion, resourceName string) (bool, error)

func (*Client) IsSSASupported

func (c *Client) IsSSASupported() bool

IsSSASupported checks if Server Side Apply is supported by cluster SSA was introduced in Kubernetes 1.16 If there is an error while parsing versions, it assumes that SSA is supported by cluster. Most of clusters these days are 1.16 and up

func (*Client) IsServiceBindingSupported

func (c *Client) IsServiceBindingSupported() (bool, error)

IsServiceBindingSupported checks if resource of type service binding request present on the cluster

func (*Client) ListClusterServiceVersions

func (c *Client) ListClusterServiceVersions() (*olm.ClusterServiceVersionList, error)

ListClusterServiceVersions returns a list of CSVs in the cluster It is equivalent to doing `oc get csvs` using oc cli

func (*Client) ListClusterWideDynamicResources

func (c *Client) ListClusterWideDynamicResources(gvr schema.GroupVersionResource, selector string) (*unstructured.UnstructuredList, error)

ListClusterWideDynamicResources returns an unstructured list of instances of a Custom Resource currently deployed cluster-wide in the cluster. If a selector is passed, then it will be used as a label selector to list the resources.

func (*Client) ListConfigMaps

func (c *Client) ListConfigMaps(labelSelector string) ([]corev1.ConfigMap, error)

ListConfigMaps lists all the configmaps based on the given label selector

func (*Client) ListDynamicResources

func (c *Client) ListDynamicResources(namespace string, gvr schema.GroupVersionResource, selector string) (*unstructured.UnstructuredList, error)

ListDynamicResources returns an unstructured list of instances of a Custom Resource currently deployed in the specified namespace of the cluster. The current namespace is used if the namespace is not specified. If a selector is passed, then it will be used as a label selector to list the resources.

func (*Client) ListIngresses

func (c *Client) ListIngresses(namespace, selector string) (*v1.IngressList, error)

func (*Client) ListJobs

func (c *Client) ListJobs(selector string) (*batchv1.JobList, error)

func (*Client) ListPVCNames

func (c *Client) ListPVCNames(selector string) ([]string, error)

ListPVCNames returns the PVC names for the given selector

func (*Client) ListPVCs

func (c *Client) ListPVCs(selector string) ([]corev1.PersistentVolumeClaim, error)

ListPVCs returns the PVCs based on the given selector

func (*Client) ListProjectNames

func (c *Client) ListProjectNames() ([]string, error)

ListProjectNames return list of existing project names that user has access to.

func (*Client) ListProjects

func (c *Client) ListProjects() (*projectv1.ProjectList, error)

ListProjects return list of existing projects that user has access to.

func (*Client) ListSecrets

func (c *Client) ListSecrets(labelSelector string) ([]corev1.Secret, error)

ListSecrets lists all the secrets based on the given label selector

func (Client) ListServiceBindingsFromAllGroups

func (c Client) ListServiceBindingsFromAllGroups() ([]specApi.ServiceBinding, []bindingApi.ServiceBinding, error)

ListServiceBindingsFromAllGroups returns the list of ServiceBindings in the cluster in the current namespace. The first list on the result contains ServiceBinding resources from group servicebinding.io/v1alpha3 the second list contains ServiceBinding resources from group binding.operators.coreos.com/v1alpha1

func (*Client) ListServices

func (c *Client) ListServices(selector string) ([]corev1.Service, error)

ListServices returns an array of Service resources which match the given selector

func (*Client) NewServiceBindingServiceObject

func (c *Client) NewServiceBindingServiceObject(serviceNs string, unstructuredService unstructured.Unstructured, bindingName string) (bindingApi.Service, error)

NewServiceBindingServiceObject returns the bindingApi.Service object based on the RESTMapping

func (*Client) PatchDynamicResource

func (c *Client) PatchDynamicResource(resource unstructured.Unstructured) (bool, error)

PatchDynamicResource patches a dynamic custom resource and returns true if the generation of the resource increased or the resource is created

func (*Client) PodWarningEventWatcher

func (c *Client) PodWarningEventWatcher(ctx context.Context) (result watch.Interface, isForbidden bool, err error)

PodWarningEventWatcher watch for events in the current directory. If the watch is forbidden, a NoOp implementation of watch.Interface is returned

func (*Client) PodWatcher

func (c *Client) PodWatcher(ctx context.Context, selector string) (watch.Interface, error)

func (*Client) Refresh

func (c *Client) Refresh() (bool, error)

Refresh re-creates a new Kubernetes client and checks if the Config changes If config changed, updates the Kubernetes client with the new configuration and returns true If the namespace or cluster of the current context has changed since the last time the config has been loaded, the function will not update the configuration

func (*Client) RunLogout

func (c *Client) RunLogout(stdout io.Writer) error

RunLogout logs out the current user from cluster

func (*Client) SetCurrentNamespace

func (c *Client) SetCurrentNamespace(namespace string) error

SetCurrentNamespace change current namespace in kubeconfig

func (*Client) SetDiscoveryInterface

func (c *Client) SetDiscoveryInterface(client discovery.DiscoveryInterface)

func (*Client) SetDynamicClient

func (c *Client) SetDynamicClient(scheme *runtime.Scheme, objects ...runtime.Object)

func (*Client) SetNamespace

func (c *Client) SetNamespace(ns string)

func (*Client) SetupPortForwarding

func (c *Client) SetupPortForwarding(pod *corev1.Pod, portPairs []string, out io.Writer, errOut io.Writer, stopChan chan struct{}, address string) error

func (*Client) TryWithBlockOwnerDeletion

func (c *Client) TryWithBlockOwnerDeletion(ownerReference metav1.OwnerReference, exec func(ownerReference metav1.OwnerReference) error) error

TryWithBlockOwnerDeletion will execute `exec` a first time with `BlockOwnerDeletion` set to true in `ownerReference` If a Forbidden errors occurs, it will call `exec` again with the original `ownerReference`

func (*Client) UpdateDeployment

func (c *Client) UpdateDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)

UpdateDeployment updates a deployment based on the given deployment spec

func (*Client) UpdateDynamicResource

func (c *Client) UpdateDynamicResource(gvr schema.GroupVersionResource, name string, u *unstructured.Unstructured) error

UpdateDynamicResource updates a dynamic resource

func (*Client) UpdatePVCLabels

func (c *Client) UpdatePVCLabels(pvc *corev1.PersistentVolumeClaim, labels map[string]string) error

UpdatePVCLabels updates the given PVC with the given labels

func (*Client) UpdateSecret

func (c *Client) UpdateSecret(secret *corev1.Secret, namespace string) (*corev1.Secret, error)

UpdateSecret updates the given Secret object in the given namespace

func (*Client) UpdateService

func (c *Client) UpdateService(svc corev1.Service) (*corev1.Service, error)

UpdateService updates a service based on the given service spec

func (*Client) UpdateStorageOwnerReference

func (c *Client) UpdateStorageOwnerReference(pvc *corev1.PersistentVolumeClaim, ownerReference ...metav1.OwnerReference) error

UpdateStorageOwnerReference updates the given storage with the given owner references

func (*Client) WaitAndGetSecret

func (c *Client) WaitAndGetSecret(name string, namespace string) (*corev1.Secret, error)

WaitAndGetSecret blocks and waits until the secret is available

func (*Client) WaitDynamicResourceDeleted

func (c *Client) WaitDynamicResourceDeleted(gvr schema.GroupVersionResource, name string) error

WaitDynamicResourceDeleted waits for the given resource to be deleted, with a timeout

func (*Client) WaitForJobToComplete

func (c *Client) WaitForJobToComplete(job *batchv1.Job) (*batchv1.Job, error)

WaitForJobToComplete to wait until a job completes or fails; it starts printing log or error if the job does not complete execution after 2 minutes

func (*Client) WaitForServiceAccountInNamespace

func (c *Client) WaitForServiceAccountInNamespace(namespace, serviceAccountName string) error

WaitForServiceAccountInNamespace waits for the given service account to be ready

type ClientInterface

type ClientInterface interface {
    platform.Client

    // binding.go
    IsServiceBindingSupported() (bool, error)
    GetBindableKinds() (bindingApi.BindableKinds, error)
    GetBindableKindStatusRestMapping(bindableKindStatuses []bindingApi.BindableKindsStatus) ([]*meta.RESTMapping, error)
    GetBindingServiceBinding(name string) (bindingApi.ServiceBinding, error)
    GetSpecServiceBinding(name string) (specApi.ServiceBinding, error)
    ListServiceBindingsFromAllGroups() ([]specApi.ServiceBinding, []bindingApi.ServiceBinding, error)
    NewServiceBindingServiceObject(serviceNs string, unstructuredService unstructured.Unstructured, bindingName string) (bindingApi.Service, error)
    GetWorkloadKinds() ([]string, []schema.GroupVersionKind, error)

    // configmap.go
    ListConfigMaps(labelSelector string) ([]corev1.ConfigMap, error)

    // deployment.go
    GetDeploymentByName(name string) (*appsv1.Deployment, error)
    GetOneDeployment(componentName, appName string, isPartOfComponent bool) (*appsv1.Deployment, error)
    GetOneDeploymentFromSelector(selector string) (*appsv1.Deployment, error)
    GetDeploymentFromSelector(selector string) ([]appsv1.Deployment, error)
    CreateDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)
    UpdateDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)
    ApplyDeployment(deploy appsv1.Deployment) (*appsv1.Deployment, error)
    GetDeploymentAPIVersion() (schema.GroupVersionKind, error)
    IsDeploymentExtensionsV1Beta1() (bool, error)
    DeploymentWatcher(ctx context.Context, selector string) (watch.Interface, error)

    // dynamic.go
    PatchDynamicResource(exampleCustomResource unstructured.Unstructured) (bool, error)
    ListDynamicResources(namespace string, gvr schema.GroupVersionResource, selector string) (*unstructured.UnstructuredList, error)
    GetDynamicResource(gvr schema.GroupVersionResource, name string) (*unstructured.Unstructured, error)
    UpdateDynamicResource(gvr schema.GroupVersionResource, name string, u *unstructured.Unstructured) error
    DeleteDynamicResource(name string, gvr schema.GroupVersionResource, wait bool) error

    // events.go
    PodWarningEventWatcher(ctx context.Context) (result watch.Interface, isForbidden bool, err error)

    // kclient.go
    GetClient() kubernetes.Interface
    GetConfig() clientcmd.ClientConfig
    GetClientConfig() *rest.Config
    GetDynamicClient() dynamic.Interface
    GeneratePortForwardReq(podName string) *rest.Request
    SetDiscoveryInterface(client discovery.DiscoveryInterface)
    IsResourceSupported(apiGroup, apiVersion, resourceName string) (bool, error)
    IsSSASupported() bool
    Refresh() (newConfig bool, err error)

    // namespace.go
    GetCurrentNamespace() string
    SetNamespace(ns string)
    GetNamespaces() ([]string, error)
    GetNamespace(name string) (*corev1.Namespace, error)
    GetNamespaceNormal(name string) (*corev1.Namespace, error)
    CreateNamespace(name string) (*corev1.Namespace, error)
    DeleteNamespace(name string, wait bool) error
    SetCurrentNamespace(namespace string) error
    WaitForServiceAccountInNamespace(namespace, serviceAccountName string) error
    GetCurrentNamespacePolicy() (psaApi.Policy, error)

    // oc_server.go
    GetServerVersion(timeout time.Duration) (*ServerInfo, error)
    GetOCVersion() (string, error)

    // operators.go
    IsCSVSupported() (bool, error)
    ListClusterServiceVersions() (*olm.ClusterServiceVersionList, error)
    GetCustomResourcesFromCSV(csv *olm.ClusterServiceVersion) *[]olm.CRDDescription
    GetCSVWithCR(name string) (*olm.ClusterServiceVersion, error)
    GetResourceSpecDefinition(group, version, kind string) (*spec.Schema, error)
    GetRestMappingFromUnstructured(unstructured.Unstructured) (*meta.RESTMapping, error)
    GetRestMappingFromGVK(gvk schema.GroupVersionKind) (*meta.RESTMapping, error)
    GetOperatorGVRList() ([]meta.RESTMapping, error)
    GetGVKFromGVR(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error)
    GetGVRFromGVK(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)

    // owner_reference.go
    TryWithBlockOwnerDeletion(ownerReference metav1.OwnerReference, exec func(ownerReference metav1.OwnerReference) error) error

    // pods.go
    GetPodUsingComponentName(componentName string) (*corev1.Pod, error)
    PodWatcher(ctx context.Context, selector string) (watch.Interface, error)
    IsPodNameMatchingSelector(ctx context.Context, podname string, selector string) (bool, error)

    // port_forwarding.go
    // SetupPortForwarding creates port-forwarding for the pod on the port pairs provided in the
    // ["<localhost-port>":"<remote-pod-port>"] format. errOut is used by the client-go library to output any errors
    // encountered while the port-forwarding is running
    SetupPortForwarding(pod *corev1.Pod, portPairs []string, out io.Writer, errOut io.Writer, stopChan chan struct{}, address string) error

    // projects.go
    CreateNewProject(projectName string, wait bool) error
    DeleteProject(name string, wait bool) error
    GetCurrentProjectName() string
    GetProject(projectName string) (*projectv1.Project, error)
    IsProjectSupported() (bool, error)
    ListProjectNames() ([]string, error)

    // secrets.go
    CreateTLSSecret(tlsCertificate []byte, tlsPrivKey []byte, objectMeta metav1.ObjectMeta) (*corev1.Secret, error)
    GetSecret(name, namespace string) (*corev1.Secret, error)
    UpdateSecret(secret *corev1.Secret, namespace string) (*corev1.Secret, error)
    DeleteSecret(secretName, namespace string) error
    CreateSecret(objectMeta metav1.ObjectMeta, data map[string]string, ownerReference metav1.OwnerReference) error
    CreateSecrets(componentName string, commonObjectMeta metav1.ObjectMeta, svc *corev1.Service, ownerReference metav1.OwnerReference) error
    ListSecrets(labelSelector string) ([]corev1.Secret, error)
    WaitAndGetSecret(name string, namespace string) (*corev1.Secret, error)

    // service.go
    CreateService(svc corev1.Service) (*corev1.Service, error)
    UpdateService(svc corev1.Service) (*corev1.Service, error)
    ListServices(selector string) ([]corev1.Service, error)
    DeleteService(serviceName string) error
    GetOneService(componentName, appName string, isPartOfComponent bool) (*corev1.Service, error)
    GetOneServiceFromSelector(selector string) (*corev1.Service, error)

    // user.go
    RunLogout(stdout io.Writer) error

    // volumes.go
    CreatePVC(pvc corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)
    DeletePVC(pvcName string) error
    ListPVCs(selector string) ([]corev1.PersistentVolumeClaim, error)
    ListPVCNames(selector string) ([]string, error)
    GetPVCFromName(pvcName string) (*corev1.PersistentVolumeClaim, error)
    UpdatePVCLabels(pvc *corev1.PersistentVolumeClaim, labels map[string]string) error
    UpdateStorageOwnerReference(pvc *corev1.PersistentVolumeClaim, ownerReference ...metav1.OwnerReference) error

    // ingress_routes.go
    ListIngresses(namespace, selector string) (*v1.IngressList, error)

    ListJobs(selector string) (*batchv1.JobList, error)
    // CreateJob creates a K8s job to execute task
    CreateJob(job batchv1.Job, namespace string) (*batchv1.Job, error)
    // WaitForJobToComplete to wait until a job completes or fails; it starts printing log or error if the job does not complete execution after 1 minute
    WaitForJobToComplete(job *batchv1.Job) (*batchv1.Job, error)
    // GetJobLogs retrieves pod logs of a job
    GetJobLogs(job *batchv1.Job, containerName string) (io.ReadCloser, error)
    DeleteJob(jobName string) error

    // registry.go
    // GetRegistryList returns all Devfile registries from both ClusterDevfileRegistriesList (cluster-scoped)
    // and DevfileRegistriesList (namespace-scoped) resources.
    // Registries from DevfileRegistriesList resources are returned first in the list.
    GetRegistryList() ([]api.Registry, error)
}

type DeploymentNotFoundError

DeploymentNotFoundError returns an error if no deployment is found with the selector

type DeploymentNotFoundError struct {
    Selector string
}

func (*DeploymentNotFoundError) Error

func (e *DeploymentNotFoundError) Error() string

type FakeClientset

FakeClientset holds fake ClientSets this is returned by FakeNew to access methods of fake client sets

type FakeClientset struct {
    Kubernetes              *fakeKubeClientset.Clientset
    ServiceCatalogClientSet *fakeServiceCatalogClientSet.Clientset
    ProjClientset           *fakeProjClientset.Clientset
    RouteClientset          *fakeRouteClientset.Clientset
    AppsClientset           *fakeAppsClientset.Clientset
}

type GVRN

type GVRN struct {
    // contains filtered or unexported fields
}

type MockClientInterface

MockClientInterface is a mock of ClientInterface interface.

type MockClientInterface struct {
    // contains filtered or unexported fields
}

func NewMockClientInterface

func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface

NewMockClientInterface creates a new mock instance.

func (*MockClientInterface) ApplyDeployment

func (m *MockClientInterface) ApplyDeployment(deploy v10.Deployment) (*v10.Deployment, error)

ApplyDeployment mocks base method.

func (*MockClientInterface) CreateDeployment

func (m *MockClientInterface) CreateDeployment(deploy v10.Deployment) (*v10.Deployment, error)

CreateDeployment mocks base method.

func (*MockClientInterface) CreateJob

func (m *MockClientInterface) CreateJob(job v11.Job, namespace string) (*v11.Job, error)

CreateJob mocks base method.

func (*MockClientInterface) CreateNamespace

func (m *MockClientInterface) CreateNamespace(name string) (*v12.Namespace, error)

CreateNamespace mocks base method.

func (*MockClientInterface) CreateNewProject

func (m *MockClientInterface) CreateNewProject(projectName string, wait bool) error

CreateNewProject mocks base method.

func (*MockClientInterface) CreatePVC

func (m *MockClientInterface) CreatePVC(pvc v12.PersistentVolumeClaim) (*v12.PersistentVolumeClaim, error)

CreatePVC mocks base method.

func (*MockClientInterface) CreateSecret

func (m *MockClientInterface) CreateSecret(objectMeta v14.ObjectMeta, data map[string]string, ownerReference v14.OwnerReference) error

CreateSecret mocks base method.

func (*MockClientInterface) CreateSecrets

func (m *MockClientInterface) CreateSecrets(componentName string, commonObjectMeta v14.ObjectMeta, svc *v12.Service, ownerReference v14.OwnerReference) error

CreateSecrets mocks base method.

func (*MockClientInterface) CreateService

func (m *MockClientInterface) CreateService(svc v12.Service) (*v12.Service, error)

CreateService mocks base method.

func (*MockClientInterface) CreateTLSSecret

func (m *MockClientInterface) CreateTLSSecret(tlsCertificate, tlsPrivKey []byte, objectMeta v14.ObjectMeta) (*v12.Secret, error)

CreateTLSSecret mocks base method.

func (*MockClientInterface) DeleteDynamicResource

func (m *MockClientInterface) DeleteDynamicResource(name string, gvr schema.GroupVersionResource, wait bool) error

DeleteDynamicResource mocks base method.

func (*MockClientInterface) DeleteJob

func (m *MockClientInterface) DeleteJob(jobName string) error

DeleteJob mocks base method.

func (*MockClientInterface) DeleteNamespace

func (m *MockClientInterface) DeleteNamespace(name string, wait bool) error

DeleteNamespace mocks base method.

func (*MockClientInterface) DeletePVC

func (m *MockClientInterface) DeletePVC(pvcName string) error

DeletePVC mocks base method.

func (*MockClientInterface) DeleteProject

func (m *MockClientInterface) DeleteProject(name string, wait bool) error

DeleteProject mocks base method.

func (*MockClientInterface) DeleteSecret

func (m *MockClientInterface) DeleteSecret(secretName, namespace string) error

DeleteSecret mocks base method.

func (*MockClientInterface) DeleteService

func (m *MockClientInterface) DeleteService(serviceName string) error

DeleteService mocks base method.

func (*MockClientInterface) DeploymentWatcher

func (m *MockClientInterface) DeploymentWatcher(ctx context.Context, selector string) (watch.Interface, error)

DeploymentWatcher mocks base method.

func (*MockClientInterface) EXPECT

func (m *MockClientInterface) EXPECT() *MockClientInterfaceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClientInterface) ExecCMDInContainer

func (m *MockClientInterface) ExecCMDInContainer(ctx context.Context, containerName, podName string, cmd []string, stdout, stderr io.Writer, stdin io.Reader, tty bool) error

ExecCMDInContainer mocks base method.

func (*MockClientInterface) GeneratePortForwardReq

func (m *MockClientInterface) GeneratePortForwardReq(podName string) *rest.Request

GeneratePortForwardReq mocks base method.

func (*MockClientInterface) GetAllPodsInNamespaceMatchingSelector

func (m *MockClientInterface) GetAllPodsInNamespaceMatchingSelector(selector, ns string) (*v12.PodList, error)

GetAllPodsInNamespaceMatchingSelector mocks base method.

func (*MockClientInterface) GetAllResourcesFromSelector

func (m *MockClientInterface) GetAllResourcesFromSelector(selector, ns string) ([]unstructured.Unstructured, error)

GetAllResourcesFromSelector mocks base method.

func (*MockClientInterface) GetBindableKindStatusRestMapping

func (m *MockClientInterface) GetBindableKindStatusRestMapping(bindableKindStatuses []v1alpha10.BindableKindsStatus) ([]*meta.RESTMapping, error)

GetBindableKindStatusRestMapping mocks base method.

func (*MockClientInterface) GetBindableKinds

func (m *MockClientInterface) GetBindableKinds() (v1alpha10.BindableKinds, error)

GetBindableKinds mocks base method.

func (*MockClientInterface) GetBindingServiceBinding

func (m *MockClientInterface) GetBindingServiceBinding(name string) (v1alpha10.ServiceBinding, error)

GetBindingServiceBinding mocks base method.

func (*MockClientInterface) GetCSVWithCR

func (m *MockClientInterface) GetCSVWithCR(name string) (*v1alpha1.ClusterServiceVersion, error)

GetCSVWithCR mocks base method.

func (*MockClientInterface) GetClient

func (m *MockClientInterface) GetClient() kubernetes.Interface

GetClient mocks base method.

func (*MockClientInterface) GetClientConfig

func (m *MockClientInterface) GetClientConfig() *rest.Config

GetClientConfig mocks base method.

func (*MockClientInterface) GetConfig

func (m *MockClientInterface) GetConfig() clientcmd.ClientConfig

GetConfig mocks base method.

func (*MockClientInterface) GetCurrentNamespace

func (m *MockClientInterface) GetCurrentNamespace() string

GetCurrentNamespace mocks base method.

func (*MockClientInterface) GetCurrentNamespacePolicy

func (m *MockClientInterface) GetCurrentNamespacePolicy() (api0.Policy, error)

GetCurrentNamespacePolicy mocks base method.

func (*MockClientInterface) GetCurrentProjectName

func (m *MockClientInterface) GetCurrentProjectName() string

GetCurrentProjectName mocks base method.

func (*MockClientInterface) GetCustomResourcesFromCSV

func (m *MockClientInterface) GetCustomResourcesFromCSV(csv *v1alpha1.ClusterServiceVersion) *[]v1alpha1.CRDDescription

GetCustomResourcesFromCSV mocks base method.

func (*MockClientInterface) GetDeploymentAPIVersion

func (m *MockClientInterface) GetDeploymentAPIVersion() (schema.GroupVersionKind, error)

GetDeploymentAPIVersion mocks base method.

func (*MockClientInterface) GetDeploymentByName

func (m *MockClientInterface) GetDeploymentByName(name string) (*v10.Deployment, error)

GetDeploymentByName mocks base method.

func (*MockClientInterface) GetDeploymentFromSelector

func (m *MockClientInterface) GetDeploymentFromSelector(selector string) ([]v10.Deployment, error)

GetDeploymentFromSelector mocks base method.

func (*MockClientInterface) GetDynamicClient

func (m *MockClientInterface) GetDynamicClient() dynamic.Interface

GetDynamicClient mocks base method.

func (*MockClientInterface) GetDynamicResource

func (m *MockClientInterface) GetDynamicResource(gvr schema.GroupVersionResource, name string) (*unstructured.Unstructured, error)

GetDynamicResource mocks base method.

func (*MockClientInterface) GetGVKFromGVR

func (m *MockClientInterface) GetGVKFromGVR(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error)

GetGVKFromGVR mocks base method.

func (*MockClientInterface) GetGVRFromGVK

func (m *MockClientInterface) GetGVRFromGVK(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)

GetGVRFromGVK mocks base method.

func (*MockClientInterface) GetJobLogs

func (m *MockClientInterface) GetJobLogs(job *v11.Job, containerName string) (io.ReadCloser, error)

GetJobLogs mocks base method.

func (*MockClientInterface) GetNamespace

func (m *MockClientInterface) GetNamespace(name string) (*v12.Namespace, error)

GetNamespace mocks base method.

func (*MockClientInterface) GetNamespaceNormal

func (m *MockClientInterface) GetNamespaceNormal(name string) (*v12.Namespace, error)

GetNamespaceNormal mocks base method.

func (*MockClientInterface) GetNamespaces

func (m *MockClientInterface) GetNamespaces() ([]string, error)

GetNamespaces mocks base method.

func (*MockClientInterface) GetOCVersion

func (m *MockClientInterface) GetOCVersion() (string, error)

GetOCVersion mocks base method.

func (*MockClientInterface) GetOneDeployment

func (m *MockClientInterface) GetOneDeployment(componentName, appName string, isPartOfComponent bool) (*v10.Deployment, error)

GetOneDeployment mocks base method.

func (*MockClientInterface) GetOneDeploymentFromSelector

func (m *MockClientInterface) GetOneDeploymentFromSelector(selector string) (*v10.Deployment, error)

GetOneDeploymentFromSelector mocks base method.

func (*MockClientInterface) GetOneService

func (m *MockClientInterface) GetOneService(componentName, appName string, isPartOfComponent bool) (*v12.Service, error)

GetOneService mocks base method.

func (*MockClientInterface) GetOneServiceFromSelector

func (m *MockClientInterface) GetOneServiceFromSelector(selector string) (*v12.Service, error)

GetOneServiceFromSelector mocks base method.

func (*MockClientInterface) GetOperatorGVRList

func (m *MockClientInterface) GetOperatorGVRList() ([]meta.RESTMapping, error)

GetOperatorGVRList mocks base method.

func (*MockClientInterface) GetPVCFromName

func (m *MockClientInterface) GetPVCFromName(pvcName string) (*v12.PersistentVolumeClaim, error)

GetPVCFromName mocks base method.

func (*MockClientInterface) GetPodLogs

func (m *MockClientInterface) GetPodLogs(podName, containerName string, followLog bool) (io.ReadCloser, error)

GetPodLogs mocks base method.

func (*MockClientInterface) GetPodUsingComponentName

func (m *MockClientInterface) GetPodUsingComponentName(componentName string) (*v12.Pod, error)

GetPodUsingComponentName mocks base method.

func (*MockClientInterface) GetPodsMatchingSelector

func (m *MockClientInterface) GetPodsMatchingSelector(selector string) (*v12.PodList, error)

GetPodsMatchingSelector mocks base method.

func (*MockClientInterface) GetProject

func (m *MockClientInterface) GetProject(projectName string) (*v1.Project, error)

GetProject mocks base method.

func (*MockClientInterface) GetRegistryList

func (m *MockClientInterface) GetRegistryList() ([]api.Registry, error)

GetRegistryList mocks base method.

func (*MockClientInterface) GetResourceSpecDefinition

func (m *MockClientInterface) GetResourceSpecDefinition(group, version, kind string) (*spec.Schema, error)

GetResourceSpecDefinition mocks base method.

func (*MockClientInterface) GetRestMappingFromGVK

func (m *MockClientInterface) GetRestMappingFromGVK(gvk schema.GroupVersionKind) (*meta.RESTMapping, error)

GetRestMappingFromGVK mocks base method.

func (*MockClientInterface) GetRestMappingFromUnstructured

func (m *MockClientInterface) GetRestMappingFromUnstructured(arg0 unstructured.Unstructured) (*meta.RESTMapping, error)

GetRestMappingFromUnstructured mocks base method.

func (*MockClientInterface) GetRunningPodFromSelector

func (m *MockClientInterface) GetRunningPodFromSelector(selector string) (*v12.Pod, error)

GetRunningPodFromSelector mocks base method.

func (*MockClientInterface) GetSecret

func (m *MockClientInterface) GetSecret(name, namespace string) (*v12.Secret, error)

GetSecret mocks base method.

func (*MockClientInterface) GetServerVersion

func (m *MockClientInterface) GetServerVersion(timeout time.Duration) (*ServerInfo, error)

GetServerVersion mocks base method.

func (*MockClientInterface) GetSpecServiceBinding

func (m *MockClientInterface) GetSpecServiceBinding(name string) (v1alpha3.ServiceBinding, error)

GetSpecServiceBinding mocks base method.

func (*MockClientInterface) GetWorkloadKinds

func (m *MockClientInterface) GetWorkloadKinds() ([]string, []schema.GroupVersionKind, error)

GetWorkloadKinds mocks base method.

func (*MockClientInterface) IsCSVSupported

func (m *MockClientInterface) IsCSVSupported() (bool, error)

IsCSVSupported mocks base method.

func (*MockClientInterface) IsDeploymentExtensionsV1Beta1

func (m *MockClientInterface) IsDeploymentExtensionsV1Beta1() (bool, error)

IsDeploymentExtensionsV1Beta1 mocks base method.

func (*MockClientInterface) IsPodNameMatchingSelector

func (m *MockClientInterface) IsPodNameMatchingSelector(ctx context.Context, podname, selector string) (bool, error)

IsPodNameMatchingSelector mocks base method.

func (*MockClientInterface) IsProjectSupported

func (m *MockClientInterface) IsProjectSupported() (bool, error)

IsProjectSupported mocks base method.

func (*MockClientInterface) IsResourceSupported

func (m *MockClientInterface) IsResourceSupported(apiGroup, apiVersion, resourceName string) (bool, error)

IsResourceSupported mocks base method.

func (*MockClientInterface) IsSSASupported

func (m *MockClientInterface) IsSSASupported() bool

IsSSASupported mocks base method.

func (*MockClientInterface) IsServiceBindingSupported

func (m *MockClientInterface) IsServiceBindingSupported() (bool, error)

IsServiceBindingSupported mocks base method.

func (*MockClientInterface) ListClusterServiceVersions

func (m *MockClientInterface) ListClusterServiceVersions() (*v1alpha1.ClusterServiceVersionList, error)

ListClusterServiceVersions mocks base method.

func (*MockClientInterface) ListConfigMaps

func (m *MockClientInterface) ListConfigMaps(labelSelector string) ([]v12.ConfigMap, error)

ListConfigMaps mocks base method.

func (*MockClientInterface) ListDynamicResources

func (m *MockClientInterface) ListDynamicResources(namespace string, gvr schema.GroupVersionResource, selector string) (*unstructured.UnstructuredList, error)

ListDynamicResources mocks base method.

func (*MockClientInterface) ListIngresses

func (m *MockClientInterface) ListIngresses(namespace, selector string) (*v13.IngressList, error)

ListIngresses mocks base method.

func (*MockClientInterface) ListJobs

func (m *MockClientInterface) ListJobs(selector string) (*v11.JobList, error)

ListJobs mocks base method.

func (*MockClientInterface) ListPVCNames

func (m *MockClientInterface) ListPVCNames(selector string) ([]string, error)

ListPVCNames mocks base method.

func (*MockClientInterface) ListPVCs

func (m *MockClientInterface) ListPVCs(selector string) ([]v12.PersistentVolumeClaim, error)

ListPVCs mocks base method.

func (*MockClientInterface) ListProjectNames

func (m *MockClientInterface) ListProjectNames() ([]string, error)

ListProjectNames mocks base method.

func (*MockClientInterface) ListSecrets

func (m *MockClientInterface) ListSecrets(labelSelector string) ([]v12.Secret, error)

ListSecrets mocks base method.

func (*MockClientInterface) ListServiceBindingsFromAllGroups

func (m *MockClientInterface) ListServiceBindingsFromAllGroups() ([]v1alpha3.ServiceBinding, []v1alpha10.ServiceBinding, error)

ListServiceBindingsFromAllGroups mocks base method.

func (*MockClientInterface) ListServices

func (m *MockClientInterface) ListServices(selector string) ([]v12.Service, error)

ListServices mocks base method.

func (*MockClientInterface) NewServiceBindingServiceObject

func (m *MockClientInterface) NewServiceBindingServiceObject(serviceNs string, unstructuredService unstructured.Unstructured, bindingName string) (v1alpha10.Service, error)

NewServiceBindingServiceObject mocks base method.

func (*MockClientInterface) PatchDynamicResource

func (m *MockClientInterface) PatchDynamicResource(exampleCustomResource unstructured.Unstructured) (bool, error)

PatchDynamicResource mocks base method.

func (*MockClientInterface) PodWarningEventWatcher

func (m *MockClientInterface) PodWarningEventWatcher(ctx context.Context) (watch.Interface, bool, error)

PodWarningEventWatcher mocks base method.

func (*MockClientInterface) PodWatcher

func (m *MockClientInterface) PodWatcher(ctx context.Context, selector string) (watch.Interface, error)

PodWatcher mocks base method.

func (*MockClientInterface) Refresh

func (m *MockClientInterface) Refresh() (bool, error)

Refresh mocks base method.

func (*MockClientInterface) RunLogout

func (m *MockClientInterface) RunLogout(stdout io.Writer) error

RunLogout mocks base method.

func (*MockClientInterface) SetCurrentNamespace

func (m *MockClientInterface) SetCurrentNamespace(namespace string) error

SetCurrentNamespace mocks base method.

func (*MockClientInterface) SetDiscoveryInterface

func (m *MockClientInterface) SetDiscoveryInterface(client discovery.DiscoveryInterface)

SetDiscoveryInterface mocks base method.

func (*MockClientInterface) SetNamespace

func (m *MockClientInterface) SetNamespace(ns string)

SetNamespace mocks base method.

func (*MockClientInterface) SetupPortForwarding

func (m *MockClientInterface) SetupPortForwarding(pod *v12.Pod, portPairs []string, out, errOut io.Writer, stopChan chan struct{}, address string) error

SetupPortForwarding mocks base method.

func (*MockClientInterface) TryWithBlockOwnerDeletion

func (m *MockClientInterface) TryWithBlockOwnerDeletion(ownerReference v14.OwnerReference, exec func(v14.OwnerReference) error) error

TryWithBlockOwnerDeletion mocks base method.

func (*MockClientInterface) UpdateDeployment

func (m *MockClientInterface) UpdateDeployment(deploy v10.Deployment) (*v10.Deployment, error)

UpdateDeployment mocks base method.

func (*MockClientInterface) UpdateDynamicResource

func (m *MockClientInterface) UpdateDynamicResource(gvr schema.GroupVersionResource, name string, u *unstructured.Unstructured) error

UpdateDynamicResource mocks base method.

func (*MockClientInterface) UpdatePVCLabels

func (m *MockClientInterface) UpdatePVCLabels(pvc *v12.PersistentVolumeClaim, labels map[string]string) error

UpdatePVCLabels mocks base method.

func (*MockClientInterface) UpdateSecret

func (m *MockClientInterface) UpdateSecret(secret *v12.Secret, namespace string) (*v12.Secret, error)

UpdateSecret mocks base method.

func (*MockClientInterface) UpdateService

func (m *MockClientInterface) UpdateService(svc v12.Service) (*v12.Service, error)

UpdateService mocks base method.

func (*MockClientInterface) UpdateStorageOwnerReference

func (m *MockClientInterface) UpdateStorageOwnerReference(pvc *v12.PersistentVolumeClaim, ownerReference ...v14.OwnerReference) error

UpdateStorageOwnerReference mocks base method.

func (*MockClientInterface) WaitAndGetSecret

func (m *MockClientInterface) WaitAndGetSecret(name, namespace string) (*v12.Secret, error)

WaitAndGetSecret mocks base method.

func (*MockClientInterface) WaitForJobToComplete

func (m *MockClientInterface) WaitForJobToComplete(job *v11.Job) (*v11.Job, error)

WaitForJobToComplete mocks base method.

func (*MockClientInterface) WaitForServiceAccountInNamespace

func (m *MockClientInterface) WaitForServiceAccountInNamespace(namespace, serviceAccountName string) error

WaitForServiceAccountInNamespace mocks base method.

type MockClientInterfaceMockRecorder

MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.

type MockClientInterfaceMockRecorder struct {
    // contains filtered or unexported fields
}

func (*MockClientInterfaceMockRecorder) ApplyDeployment

func (mr *MockClientInterfaceMockRecorder) ApplyDeployment(deploy interface{}) *gomock.Call

ApplyDeployment indicates an expected call of ApplyDeployment.

func (*MockClientInterfaceMockRecorder) CreateDeployment

func (mr *MockClientInterfaceMockRecorder) CreateDeployment(deploy interface{}) *gomock.Call

CreateDeployment indicates an expected call of CreateDeployment.

func (*MockClientInterfaceMockRecorder) CreateJob

func (mr *MockClientInterfaceMockRecorder) CreateJob(job, namespace interface{}) *gomock.Call

CreateJob indicates an expected call of CreateJob.

func (*MockClientInterfaceMockRecorder) CreateNamespace

func (mr *MockClientInterfaceMockRecorder) CreateNamespace(name interface{}) *gomock.Call

CreateNamespace indicates an expected call of CreateNamespace.

func (*MockClientInterfaceMockRecorder) CreateNewProject

func (mr *MockClientInterfaceMockRecorder) CreateNewProject(projectName, wait interface{}) *gomock.Call

CreateNewProject indicates an expected call of CreateNewProject.

func (*MockClientInterfaceMockRecorder) CreatePVC

func (mr *MockClientInterfaceMockRecorder) CreatePVC(pvc interface{}) *gomock.Call

CreatePVC indicates an expected call of CreatePVC.

func (*MockClientInterfaceMockRecorder) CreateSecret

func (mr *MockClientInterfaceMockRecorder) CreateSecret(objectMeta, data, ownerReference interface{}) *gomock.Call

CreateSecret indicates an expected call of CreateSecret.

func (*MockClientInterfaceMockRecorder) CreateSecrets

func (mr *MockClientInterfaceMockRecorder) CreateSecrets(componentName, commonObjectMeta, svc, ownerReference interface{}) *gomock.Call

CreateSecrets indicates an expected call of CreateSecrets.

func (*MockClientInterfaceMockRecorder) CreateService

func (mr *MockClientInterfaceMockRecorder) CreateService(svc interface{}) *gomock.Call

CreateService indicates an expected call of CreateService.

func (*MockClientInterfaceMockRecorder) CreateTLSSecret

func (mr *MockClientInterfaceMockRecorder) CreateTLSSecret(tlsCertificate, tlsPrivKey, objectMeta interface{}) *gomock.Call

CreateTLSSecret indicates an expected call of CreateTLSSecret.

func (*MockClientInterfaceMockRecorder) DeleteDynamicResource

func (mr *MockClientInterfaceMockRecorder) DeleteDynamicResource(name, gvr, wait interface{}) *gomock.Call

DeleteDynamicResource indicates an expected call of DeleteDynamicResource.

func (*MockClientInterfaceMockRecorder) DeleteJob

func (mr *MockClientInterfaceMockRecorder) DeleteJob(jobName interface{}) *gomock.Call

DeleteJob indicates an expected call of DeleteJob.

func (*MockClientInterfaceMockRecorder) DeleteNamespace

func (mr *MockClientInterfaceMockRecorder) DeleteNamespace(name, wait interface{}) *gomock.Call

DeleteNamespace indicates an expected call of DeleteNamespace.

func (*MockClientInterfaceMockRecorder) DeletePVC

func (mr *MockClientInterfaceMockRecorder) DeletePVC(pvcName interface{}) *gomock.Call

DeletePVC indicates an expected call of DeletePVC.

func (*MockClientInterfaceMockRecorder) DeleteProject

func (mr *MockClientInterfaceMockRecorder) DeleteProject(name, wait interface{}) *gomock.Call

DeleteProject indicates an expected call of DeleteProject.

func (*MockClientInterfaceMockRecorder) DeleteSecret

func (mr *MockClientInterfaceMockRecorder) DeleteSecret(secretName, namespace interface{}) *gomock.Call

DeleteSecret indicates an expected call of DeleteSecret.

func (*MockClientInterfaceMockRecorder) DeleteService

func (mr *MockClientInterfaceMockRecorder) DeleteService(serviceName interface{}) *gomock.Call

DeleteService indicates an expected call of DeleteService.

func (*MockClientInterfaceMockRecorder) DeploymentWatcher

func (mr *MockClientInterfaceMockRecorder) DeploymentWatcher(ctx, selector interface{}) *gomock.Call

DeploymentWatcher indicates an expected call of DeploymentWatcher.

func (*MockClientInterfaceMockRecorder) ExecCMDInContainer

func (mr *MockClientInterfaceMockRecorder) ExecCMDInContainer(ctx, containerName, podName, cmd, stdout, stderr, stdin, tty interface{}) *gomock.Call

ExecCMDInContainer indicates an expected call of ExecCMDInContainer.

func (*MockClientInterfaceMockRecorder) GeneratePortForwardReq

func (mr *MockClientInterfaceMockRecorder) GeneratePortForwardReq(podName interface{}) *gomock.Call

GeneratePortForwardReq indicates an expected call of GeneratePortForwardReq.

func (*MockClientInterfaceMockRecorder) GetAllPodsInNamespaceMatchingSelector

func (mr *MockClientInterfaceMockRecorder) GetAllPodsInNamespaceMatchingSelector(selector, ns interface{}) *gomock.Call

GetAllPodsInNamespaceMatchingSelector indicates an expected call of GetAllPodsInNamespaceMatchingSelector.

func (*MockClientInterfaceMockRecorder) GetAllResourcesFromSelector

func (mr *MockClientInterfaceMockRecorder) GetAllResourcesFromSelector(selector, ns interface{}) *gomock.Call

GetAllResourcesFromSelector indicates an expected call of GetAllResourcesFromSelector.

func (*MockClientInterfaceMockRecorder) GetBindableKindStatusRestMapping

func (mr *MockClientInterfaceMockRecorder) GetBindableKindStatusRestMapping(bindableKindStatuses interface{}) *gomock.Call

GetBindableKindStatusRestMapping indicates an expected call of GetBindableKindStatusRestMapping.

func (*MockClientInterfaceMockRecorder) GetBindableKinds

func (mr *MockClientInterfaceMockRecorder) GetBindableKinds() *gomock.Call

GetBindableKinds indicates an expected call of GetBindableKinds.

func (*MockClientInterfaceMockRecorder) GetBindingServiceBinding

func (mr *MockClientInterfaceMockRecorder) GetBindingServiceBinding(name interface{}) *gomock.Call

GetBindingServiceBinding indicates an expected call of GetBindingServiceBinding.

func (*MockClientInterfaceMockRecorder) GetCSVWithCR

func (mr *MockClientInterfaceMockRecorder) GetCSVWithCR(name interface{}) *gomock.Call

GetCSVWithCR indicates an expected call of GetCSVWithCR.

func (*MockClientInterfaceMockRecorder) GetClient

func (mr *MockClientInterfaceMockRecorder) GetClient() *gomock.Call

GetClient indicates an expected call of GetClient.

func (*MockClientInterfaceMockRecorder) GetClientConfig

func (mr *MockClientInterfaceMockRecorder) GetClientConfig() *gomock.Call

GetClientConfig indicates an expected call of GetClientConfig.

func (*MockClientInterfaceMockRecorder) GetConfig

func (mr *MockClientInterfaceMockRecorder) GetConfig() *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockClientInterfaceMockRecorder) GetCurrentNamespace

func (mr *MockClientInterfaceMockRecorder) GetCurrentNamespace() *gomock.Call

GetCurrentNamespace indicates an expected call of GetCurrentNamespace.

func (*MockClientInterfaceMockRecorder) GetCurrentNamespacePolicy

func (mr *MockClientInterfaceMockRecorder) GetCurrentNamespacePolicy() *gomock.Call

GetCurrentNamespacePolicy indicates an expected call of GetCurrentNamespacePolicy.

func (*MockClientInterfaceMockRecorder) GetCurrentProjectName

func (mr *MockClientInterfaceMockRecorder) GetCurrentProjectName() *gomock.Call

GetCurrentProjectName indicates an expected call of GetCurrentProjectName.

func (*MockClientInterfaceMockRecorder) GetCustomResourcesFromCSV

func (mr *MockClientInterfaceMockRecorder) GetCustomResourcesFromCSV(csv interface{}) *gomock.Call

GetCustomResourcesFromCSV indicates an expected call of GetCustomResourcesFromCSV.

func (*MockClientInterfaceMockRecorder) GetDeploymentAPIVersion

func (mr *MockClientInterfaceMockRecorder) GetDeploymentAPIVersion() *gomock.Call

GetDeploymentAPIVersion indicates an expected call of GetDeploymentAPIVersion.

func (*MockClientInterfaceMockRecorder) GetDeploymentByName

func (mr *MockClientInterfaceMockRecorder) GetDeploymentByName(name interface{}) *gomock.Call

GetDeploymentByName indicates an expected call of GetDeploymentByName.

func (*MockClientInterfaceMockRecorder) GetDeploymentFromSelector

func (mr *MockClientInterfaceMockRecorder) GetDeploymentFromSelector(selector interface{}) *gomock.Call

GetDeploymentFromSelector indicates an expected call of GetDeploymentFromSelector.

func (*MockClientInterfaceMockRecorder) GetDynamicClient

func (mr *MockClientInterfaceMockRecorder) GetDynamicClient() *gomock.Call

GetDynamicClient indicates an expected call of GetDynamicClient.

func (*MockClientInterfaceMockRecorder) GetDynamicResource

func (mr *MockClientInterfaceMockRecorder) GetDynamicResource(gvr, name interface{}) *gomock.Call

GetDynamicResource indicates an expected call of GetDynamicResource.

func (*MockClientInterfaceMockRecorder) GetGVKFromGVR

func (mr *MockClientInterfaceMockRecorder) GetGVKFromGVR(gvr interface{}) *gomock.Call

GetGVKFromGVR indicates an expected call of GetGVKFromGVR.

func (*MockClientInterfaceMockRecorder) GetGVRFromGVK

func (mr *MockClientInterfaceMockRecorder) GetGVRFromGVK(gvk interface{}) *gomock.Call

GetGVRFromGVK indicates an expected call of GetGVRFromGVK.

func (*MockClientInterfaceMockRecorder) GetJobLogs

func (mr *MockClientInterfaceMockRecorder) GetJobLogs(job, containerName interface{}) *gomock.Call

GetJobLogs indicates an expected call of GetJobLogs.

func (*MockClientInterfaceMockRecorder) GetNamespace

func (mr *MockClientInterfaceMockRecorder) GetNamespace(name interface{}) *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockClientInterfaceMockRecorder) GetNamespaceNormal

func (mr *MockClientInterfaceMockRecorder) GetNamespaceNormal(name interface{}) *gomock.Call

GetNamespaceNormal indicates an expected call of GetNamespaceNormal.

func (*MockClientInterfaceMockRecorder) GetNamespaces

func (mr *MockClientInterfaceMockRecorder) GetNamespaces() *gomock.Call

GetNamespaces indicates an expected call of GetNamespaces.

func (*MockClientInterfaceMockRecorder) GetOCVersion

func (mr *MockClientInterfaceMockRecorder) GetOCVersion() *gomock.Call

GetOCVersion indicates an expected call of GetOCVersion.

func (*MockClientInterfaceMockRecorder) GetOneDeployment

func (mr *MockClientInterfaceMockRecorder) GetOneDeployment(componentName, appName, isPartOfComponent interface{}) *gomock.Call

GetOneDeployment indicates an expected call of GetOneDeployment.

func (*MockClientInterfaceMockRecorder) GetOneDeploymentFromSelector

func (mr *MockClientInterfaceMockRecorder) GetOneDeploymentFromSelector(selector interface{}) *gomock.Call

GetOneDeploymentFromSelector indicates an expected call of GetOneDeploymentFromSelector.

func (*MockClientInterfaceMockRecorder) GetOneService

func (mr *MockClientInterfaceMockRecorder) GetOneService(componentName, appName, isPartOfComponent interface{}) *gomock.Call

GetOneService indicates an expected call of GetOneService.

func (*MockClientInterfaceMockRecorder) GetOneServiceFromSelector

func (mr *MockClientInterfaceMockRecorder) GetOneServiceFromSelector(selector interface{}) *gomock.Call

GetOneServiceFromSelector indicates an expected call of GetOneServiceFromSelector.

func (*MockClientInterfaceMockRecorder) GetOperatorGVRList

func (mr *MockClientInterfaceMockRecorder) GetOperatorGVRList() *gomock.Call

GetOperatorGVRList indicates an expected call of GetOperatorGVRList.

func (*MockClientInterfaceMockRecorder) GetPVCFromName

func (mr *MockClientInterfaceMockRecorder) GetPVCFromName(pvcName interface{}) *gomock.Call

GetPVCFromName indicates an expected call of GetPVCFromName.

func (*MockClientInterfaceMockRecorder) GetPodLogs

func (mr *MockClientInterfaceMockRecorder) GetPodLogs(podName, containerName, followLog interface{}) *gomock.Call

GetPodLogs indicates an expected call of GetPodLogs.

func (*MockClientInterfaceMockRecorder) GetPodUsingComponentName

func (mr *MockClientInterfaceMockRecorder) GetPodUsingComponentName(componentName interface{}) *gomock.Call

GetPodUsingComponentName indicates an expected call of GetPodUsingComponentName.

func (*MockClientInterfaceMockRecorder) GetPodsMatchingSelector

func (mr *MockClientInterfaceMockRecorder) GetPodsMatchingSelector(selector interface{}) *gomock.Call

GetPodsMatchingSelector indicates an expected call of GetPodsMatchingSelector.

func (*MockClientInterfaceMockRecorder) GetProject

func (mr *MockClientInterfaceMockRecorder) GetProject(projectName interface{}) *gomock.Call

GetProject indicates an expected call of GetProject.

func (*MockClientInterfaceMockRecorder) GetRegistryList

func (mr *MockClientInterfaceMockRecorder) GetRegistryList() *gomock.Call

GetRegistryList indicates an expected call of GetRegistryList.

func (*MockClientInterfaceMockRecorder) GetResourceSpecDefinition

func (mr *MockClientInterfaceMockRecorder) GetResourceSpecDefinition(group, version, kind interface{}) *gomock.Call

GetResourceSpecDefinition indicates an expected call of GetResourceSpecDefinition.

func (*MockClientInterfaceMockRecorder) GetRestMappingFromGVK

func (mr *MockClientInterfaceMockRecorder) GetRestMappingFromGVK(gvk interface{}) *gomock.Call

GetRestMappingFromGVK indicates an expected call of GetRestMappingFromGVK.

func (*MockClientInterfaceMockRecorder) GetRestMappingFromUnstructured

func (mr *MockClientInterfaceMockRecorder) GetRestMappingFromUnstructured(arg0 interface{}) *gomock.Call

GetRestMappingFromUnstructured indicates an expected call of GetRestMappingFromUnstructured.

func (*MockClientInterfaceMockRecorder) GetRunningPodFromSelector

func (mr *MockClientInterfaceMockRecorder) GetRunningPodFromSelector(selector interface{}) *gomock.Call

GetRunningPodFromSelector indicates an expected call of GetRunningPodFromSelector.

func (*MockClientInterfaceMockRecorder) GetSecret

func (mr *MockClientInterfaceMockRecorder) GetSecret(name, namespace interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret.

func (*MockClientInterfaceMockRecorder) GetServerVersion

func (mr *MockClientInterfaceMockRecorder) GetServerVersion(timeout interface{}) *gomock.Call

GetServerVersion indicates an expected call of GetServerVersion.

func (*MockClientInterfaceMockRecorder) GetSpecServiceBinding

func (mr *MockClientInterfaceMockRecorder) GetSpecServiceBinding(name interface{}) *gomock.Call

GetSpecServiceBinding indicates an expected call of GetSpecServiceBinding.

func (*MockClientInterfaceMockRecorder) GetWorkloadKinds

func (mr *MockClientInterfaceMockRecorder) GetWorkloadKinds() *gomock.Call

GetWorkloadKinds indicates an expected call of GetWorkloadKinds.

func (*MockClientInterfaceMockRecorder) IsCSVSupported

func (mr *MockClientInterfaceMockRecorder) IsCSVSupported() *gomock.Call

IsCSVSupported indicates an expected call of IsCSVSupported.

func (*MockClientInterfaceMockRecorder) IsDeploymentExtensionsV1Beta1

func (mr *MockClientInterfaceMockRecorder) IsDeploymentExtensionsV1Beta1() *gomock.Call

IsDeploymentExtensionsV1Beta1 indicates an expected call of IsDeploymentExtensionsV1Beta1.

func (*MockClientInterfaceMockRecorder) IsPodNameMatchingSelector

func (mr *MockClientInterfaceMockRecorder) IsPodNameMatchingSelector(ctx, podname, selector interface{}) *gomock.Call

IsPodNameMatchingSelector indicates an expected call of IsPodNameMatchingSelector.

func (*MockClientInterfaceMockRecorder) IsProjectSupported

func (mr *MockClientInterfaceMockRecorder) IsProjectSupported() *gomock.Call

IsProjectSupported indicates an expected call of IsProjectSupported.

func (*MockClientInterfaceMockRecorder) IsResourceSupported

func (mr *MockClientInterfaceMockRecorder) IsResourceSupported(apiGroup, apiVersion, resourceName interface{}) *gomock.Call

IsResourceSupported indicates an expected call of IsResourceSupported.

func (*MockClientInterfaceMockRecorder) IsSSASupported

func (mr *MockClientInterfaceMockRecorder) IsSSASupported() *gomock.Call

IsSSASupported indicates an expected call of IsSSASupported.

func (*MockClientInterfaceMockRecorder) IsServiceBindingSupported

func (mr *MockClientInterfaceMockRecorder) IsServiceBindingSupported() *gomock.Call

IsServiceBindingSupported indicates an expected call of IsServiceBindingSupported.

func (*MockClientInterfaceMockRecorder) ListClusterServiceVersions

func (mr *MockClientInterfaceMockRecorder) ListClusterServiceVersions() *gomock.Call

ListClusterServiceVersions indicates an expected call of ListClusterServiceVersions.

func (*MockClientInterfaceMockRecorder) ListConfigMaps

func (mr *MockClientInterfaceMockRecorder) ListConfigMaps(labelSelector interface{}) *gomock.Call

ListConfigMaps indicates an expected call of ListConfigMaps.

func (*MockClientInterfaceMockRecorder) ListDynamicResources

func (mr *MockClientInterfaceMockRecorder) ListDynamicResources(namespace, gvr, selector interface{}) *gomock.Call

ListDynamicResources indicates an expected call of ListDynamicResources.

func (*MockClientInterfaceMockRecorder) ListIngresses

func (mr *MockClientInterfaceMockRecorder) ListIngresses(namespace, selector interface{}) *gomock.Call

ListIngresses indicates an expected call of ListIngresses.

func (*MockClientInterfaceMockRecorder) ListJobs

func (mr *MockClientInterfaceMockRecorder) ListJobs(selector interface{}) *gomock.Call

ListJobs indicates an expected call of ListJobs.

func (*MockClientInterfaceMockRecorder) ListPVCNames

func (mr *MockClientInterfaceMockRecorder) ListPVCNames(selector interface{}) *gomock.Call

ListPVCNames indicates an expected call of ListPVCNames.

func (*MockClientInterfaceMockRecorder) ListPVCs

func (mr *MockClientInterfaceMockRecorder) ListPVCs(selector interface{}) *gomock.Call

ListPVCs indicates an expected call of ListPVCs.

func (*MockClientInterfaceMockRecorder) ListProjectNames

func (mr *MockClientInterfaceMockRecorder) ListProjectNames() *gomock.Call

ListProjectNames indicates an expected call of ListProjectNames.

func (*MockClientInterfaceMockRecorder) ListSecrets

func (mr *MockClientInterfaceMockRecorder) ListSecrets(labelSelector interface{}) *gomock.Call

ListSecrets indicates an expected call of ListSecrets.

func (*MockClientInterfaceMockRecorder) ListServiceBindingsFromAllGroups

func (mr *MockClientInterfaceMockRecorder) ListServiceBindingsFromAllGroups() *gomock.Call

ListServiceBindingsFromAllGroups indicates an expected call of ListServiceBindingsFromAllGroups.

func (*MockClientInterfaceMockRecorder) ListServices

func (mr *MockClientInterfaceMockRecorder) ListServices(selector interface{}) *gomock.Call

ListServices indicates an expected call of ListServices.

func (*MockClientInterfaceMockRecorder) NewServiceBindingServiceObject

func (mr *MockClientInterfaceMockRecorder) NewServiceBindingServiceObject(serviceNs, unstructuredService, bindingName interface{}) *gomock.Call

NewServiceBindingServiceObject indicates an expected call of NewServiceBindingServiceObject.

func (*MockClientInterfaceMockRecorder) PatchDynamicResource

func (mr *MockClientInterfaceMockRecorder) PatchDynamicResource(exampleCustomResource interface{}) *gomock.Call

PatchDynamicResource indicates an expected call of PatchDynamicResource.

func (*MockClientInterfaceMockRecorder) PodWarningEventWatcher

func (mr *MockClientInterfaceMockRecorder) PodWarningEventWatcher(ctx interface{}) *gomock.Call

PodWarningEventWatcher indicates an expected call of PodWarningEventWatcher.

func (*MockClientInterfaceMockRecorder) PodWatcher

func (mr *MockClientInterfaceMockRecorder) PodWatcher(ctx, selector interface{}) *gomock.Call

PodWatcher indicates an expected call of PodWatcher.

func (*MockClientInterfaceMockRecorder) Refresh

func (mr *MockClientInterfaceMockRecorder) Refresh() *gomock.Call

Refresh indicates an expected call of Refresh.

func (*MockClientInterfaceMockRecorder) RunLogout

func (mr *MockClientInterfaceMockRecorder) RunLogout(stdout interface{}) *gomock.Call

RunLogout indicates an expected call of RunLogout.

func (*MockClientInterfaceMockRecorder) SetCurrentNamespace

func (mr *MockClientInterfaceMockRecorder) SetCurrentNamespace(namespace interface{}) *gomock.Call

SetCurrentNamespace indicates an expected call of SetCurrentNamespace.

func (*MockClientInterfaceMockRecorder) SetDiscoveryInterface

func (mr *MockClientInterfaceMockRecorder) SetDiscoveryInterface(client interface{}) *gomock.Call

SetDiscoveryInterface indicates an expected call of SetDiscoveryInterface.

func (*MockClientInterfaceMockRecorder) SetNamespace

func (mr *MockClientInterfaceMockRecorder) SetNamespace(ns interface{}) *gomock.Call

SetNamespace indicates an expected call of SetNamespace.

func (*MockClientInterfaceMockRecorder) SetupPortForwarding

func (mr *MockClientInterfaceMockRecorder) SetupPortForwarding(pod, portPairs, out, errOut, stopChan, address interface{}) *gomock.Call

SetupPortForwarding indicates an expected call of SetupPortForwarding.

func (*MockClientInterfaceMockRecorder) TryWithBlockOwnerDeletion

func (mr *MockClientInterfaceMockRecorder) TryWithBlockOwnerDeletion(ownerReference, exec interface{}) *gomock.Call

TryWithBlockOwnerDeletion indicates an expected call of TryWithBlockOwnerDeletion.

func (*MockClientInterfaceMockRecorder) UpdateDeployment

func (mr *MockClientInterfaceMockRecorder) UpdateDeployment(deploy interface{}) *gomock.Call

UpdateDeployment indicates an expected call of UpdateDeployment.

func (*MockClientInterfaceMockRecorder) UpdateDynamicResource

func (mr *MockClientInterfaceMockRecorder) UpdateDynamicResource(gvr, name, u interface{}) *gomock.Call

UpdateDynamicResource indicates an expected call of UpdateDynamicResource.

func (*MockClientInterfaceMockRecorder) UpdatePVCLabels

func (mr *MockClientInterfaceMockRecorder) UpdatePVCLabels(pvc, labels interface{}) *gomock.Call

UpdatePVCLabels indicates an expected call of UpdatePVCLabels.

func (*MockClientInterfaceMockRecorder) UpdateSecret

func (mr *MockClientInterfaceMockRecorder) UpdateSecret(secret, namespace interface{}) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret.

func (*MockClientInterfaceMockRecorder) UpdateService

func (mr *MockClientInterfaceMockRecorder) UpdateService(svc interface{}) *gomock.Call

UpdateService indicates an expected call of UpdateService.

func (*MockClientInterfaceMockRecorder) UpdateStorageOwnerReference

func (mr *MockClientInterfaceMockRecorder) UpdateStorageOwnerReference(pvc interface{}, ownerReference ...interface{}) *gomock.Call

UpdateStorageOwnerReference indicates an expected call of UpdateStorageOwnerReference.

func (*MockClientInterfaceMockRecorder) WaitAndGetSecret

func (mr *MockClientInterfaceMockRecorder) WaitAndGetSecret(name, namespace interface{}) *gomock.Call

WaitAndGetSecret indicates an expected call of WaitAndGetSecret.

func (*MockClientInterfaceMockRecorder) WaitForJobToComplete

func (mr *MockClientInterfaceMockRecorder) WaitForJobToComplete(job interface{}) *gomock.Call

WaitForJobToComplete indicates an expected call of WaitForJobToComplete.

func (*MockClientInterfaceMockRecorder) WaitForServiceAccountInNamespace

func (mr *MockClientInterfaceMockRecorder) WaitForServiceAccountInNamespace(namespace, serviceAccountName interface{}) *gomock.Call

WaitForServiceAccountInNamespace indicates an expected call of WaitForServiceAccountInNamespace.

type NoConnectionError

type NoConnectionError struct{}

func NewNoConnectionError

func NewNoConnectionError() NoConnectionError

func (NoConnectionError) Error

func (e NoConnectionError) Error() string

type NoOpWatch

type NoOpWatch struct{}

func (NoOpWatch) ResultChan

func (o NoOpWatch) ResultChan() <-chan watch.Event

func (NoOpWatch) Stop

func (o NoOpWatch) Stop()

type SelfSignedCertificate

SelfSignedCertificate struct is the return type of function GenerateSelfSignedCertificate CertPem is the byte array for certificate pem encode KeyPem is the byte array for key pem encode

type SelfSignedCertificate struct {
    CertPem []byte
    KeyPem  []byte
}

func GenerateSelfSignedCertificate

func GenerateSelfSignedCertificate(host string) (SelfSignedCertificate, error)

GenerateSelfSignedCertificate creates a self-signed SSl certificate

type ServerInfo

ServerInfo contains the fields that contain the server's information like address, OpenShift and Kubernetes versions

type ServerInfo struct {
    Address           string
    OpenShiftVersion  string
    KubernetesVersion string
}

type ServiceNotFoundError

ServiceNotFoundError returns an error if no service is found with the selector

type ServiceNotFoundError struct {
    Selector string
}

func (*ServiceNotFoundError) Error

func (e *ServiceNotFoundError) Error() string

Subdirectories

Name Synopsis
..
fake