Documentation ¶
Index ¶
- Constants
- type MockConfigMapClient
- func (m MockConfigMapClient) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)
- func (m MockConfigMapClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (m MockConfigMapClient) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (*v1.ConfigMap, error)
- type MockCoreV1
- type MockErrorConfigMapClient
- func (m MockErrorConfigMapClient) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)
- func (m MockErrorConfigMapClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (m MockErrorConfigMapClient) Update(ctx context.Context, configMap *v1.ConfigMap, opts metav1.UpdateOptions) (*v1.ConfigMap, error)
- type MockErrorCoreV1
- type MockErrorK8sClient
- type MockK8sClient
Constants ¶
View Source
const ExpectedError string = "expect me"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfigMapClient ¶
type MockConfigMapClient struct {
corev1.ConfigMapInterface
}
func (MockConfigMapClient) Create ¶
func (m MockConfigMapClient) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)
func (MockConfigMapClient) Delete ¶
func (m MockConfigMapClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
type MockCoreV1 ¶
type MockCoreV1 struct {
corev1.CoreV1Interface
}
func (MockCoreV1) ConfigMaps ¶
func (m MockCoreV1) ConfigMaps(namespace string) corev1.ConfigMapInterface
type MockErrorConfigMapClient ¶
type MockErrorConfigMapClient struct {
corev1.ConfigMapInterface
}
func (MockErrorConfigMapClient) Create ¶
func (m MockErrorConfigMapClient) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)
func (MockErrorConfigMapClient) Delete ¶
func (m MockErrorConfigMapClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
type MockErrorCoreV1 ¶
type MockErrorCoreV1 struct {
corev1.CoreV1Interface
}
func (MockErrorCoreV1) ConfigMaps ¶
func (m MockErrorCoreV1) ConfigMaps(namespace string) corev1.ConfigMapInterface
type MockErrorK8sClient ¶
type MockErrorK8sClient struct {
kubernetes.Interface
}
func (MockErrorK8sClient) CoreV1 ¶
func (m MockErrorK8sClient) CoreV1() corev1.CoreV1Interface
type MockK8sClient ¶
type MockK8sClient struct {
kubernetes.Interface
}
func (MockK8sClient) CoreV1 ¶
func (m MockK8sClient) CoreV1() corev1.CoreV1Interface
Click to show internal directories.
Click to hide internal directories.