Documentation ¶
Index ¶
- type MockKubeClient
- func (m *MockKubeClient) Build(reader io.Reader, validate bool) (kube.ResourceList, error)
- func (m *MockKubeClient) Create(resources kube.ResourceList) (*kube.Result, error)
- func (m *MockKubeClient) Delete(resources kube.ResourceList) (*kube.Result, []error)
- func (m *MockKubeClient) IsReachable() error
- func (m *MockKubeClient) Update(original, target kube.ResourceList, force bool) (*kube.Result, error)
- func (m *MockKubeClient) Wait(resources kube.ResourceList, timeout time.Duration) error
- func (m *MockKubeClient) WaitAndGetCompletedPodPhase(name string, timeout time.Duration) (v1.PodPhase, error)
- func (m *MockKubeClient) WaitWithJobs(resources kube.ResourceList, timeout time.Duration) error
- func (m *MockKubeClient) WatchUntilReady(resources kube.ResourceList, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockKubeClient ¶
type MockKubeClient struct{}
MockKubeClient mocks Helm KubernetesClient interface
func (*MockKubeClient) Build ¶
func (m *MockKubeClient) Build(reader io.Reader, validate bool) (kube.ResourceList, error)
Build is taken from https://github.com/kubernetes/cli-runtime/blob/master/pkg/resource/builder_example_test.go#L77
func (*MockKubeClient) Create ¶
func (m *MockKubeClient) Create(resources kube.ResourceList) (*kube.Result, error)
func (*MockKubeClient) Delete ¶
func (m *MockKubeClient) Delete(resources kube.ResourceList) (*kube.Result, []error)
func (*MockKubeClient) IsReachable ¶
func (m *MockKubeClient) IsReachable() error
func (*MockKubeClient) Update ¶
func (m *MockKubeClient) Update(original, target kube.ResourceList, force bool) (*kube.Result, error)
func (*MockKubeClient) Wait ¶
func (m *MockKubeClient) Wait(resources kube.ResourceList, timeout time.Duration) error
func (*MockKubeClient) WaitAndGetCompletedPodPhase ¶
func (*MockKubeClient) WaitWithJobs ¶
func (m *MockKubeClient) WaitWithJobs(resources kube.ResourceList, timeout time.Duration) error
func (*MockKubeClient) WatchUntilReady ¶
func (m *MockKubeClient) WatchUntilReady(resources kube.ResourceList, timeout time.Duration) error
Click to show internal directories.
Click to hide internal directories.