Documentation ¶
Index ¶
- func ConfigMapMock(ns, name string) *corev1.ConfigMap
- func SecretMock(ns, name string, data map[string][]byte) *corev1.Secret
- func SecretMockRV(ns, name string) *corev1.Secret
- func UnstructuredSecretMock(ns, name string) (*unstructured.Unstructured, error)
- func UnstructuredSecretMockRV(ns, name string) (*unstructured.Unstructured, error)
- type Fake
- func (f *Fake) AddMockResource(resource runtime.Object)
- func (f *Fake) AddMockedUnstructuredConfigMap(name string)
- func (f *Fake) AddMockedUnstructuredSecret(name string) *unstructured.Unstructured
- func (f *Fake) AddMockedUnstructuredSecretRV(name string) *unstructured.Unstructured
- func (f *Fake) AddNamespacedMockedSecret(name string, namespace string, data map[string][]byte)
- func (f *Fake) FakeDynClient() *fakedynamic.FakeDynamicClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMapMock ¶
ConfigMapMock returns a dummy config-map object.
func SecretMock ¶
SecretMock returns a Secret based on PostgreSQL operator usage.
func SecretMockRV ¶ added in v0.3.0
SecretMockRV returns a Secret with a resourceVersion.
func UnstructuredSecretMock ¶ added in v0.1.1
func UnstructuredSecretMock(ns, name string) (*unstructured.Unstructured, error)
func UnstructuredSecretMockRV ¶ added in v0.3.0
func UnstructuredSecretMockRV(ns, name string) (*unstructured.Unstructured, error)
Types ¶
type Fake ¶
type Fake struct { S *runtime.Scheme // runtime client scheme // contains filtered or unexported fields }
Fake defines all the elements to fake a kubernetes api client.
func (*Fake) AddMockResource ¶ added in v0.0.21
func (*Fake) AddMockedUnstructuredConfigMap ¶ added in v0.1.1
AddMockedUnstructuredConfigMap add mocked object from ConfigMapMock.
func (*Fake) AddMockedUnstructuredSecret ¶ added in v0.1.1
func (f *Fake) AddMockedUnstructuredSecret(name string) *unstructured.Unstructured
AddMockedUnstructuredSecret add mocked object from SecretMock.
func (*Fake) AddMockedUnstructuredSecretRV ¶ added in v0.3.0
func (f *Fake) AddMockedUnstructuredSecretRV(name string) *unstructured.Unstructured
AddMockedUnstructuredSecret add mocked object from SecretMock. This secret is created with a resourceVersion
func (*Fake) AddNamespacedMockedSecret ¶ added in v0.1.1
AddNamespacedMockedSecret add mocked object from SecretMock in a namespace which isn't necessarily same as that of the ServiceBinding namespace.
func (*Fake) FakeDynClient ¶
func (f *Fake) FakeDynClient() *fakedynamic.FakeDynamicClient
FakeDynClient returns fake dynamic api client.