Documentation ¶
Overview ¶
Package k8s_client is a generated GoMock package.
Index ¶
- type K8SClient
- type K8SClientBuilder
- type MockK8SClient
- func (m *MockK8SClient) ApproveCsr(csr *v1beta1.CertificateSigningRequest) error
- func (m *MockK8SClient) EXPECT() *MockK8SClientMockRecorder
- func (m *MockK8SClient) GetConfigMap(namespace, name string) (*v1.ConfigMap, error)
- func (m *MockK8SClient) GetPodLogs(namespace, podName string, sinceSeconds int64) (string, error)
- func (m *MockK8SClient) GetPods(namespace string, labelMatch map[string]string) ([]v1.Pod, error)
- func (m *MockK8SClient) ListCsrs() (*v1beta1.CertificateSigningRequestList, error)
- func (m *MockK8SClient) ListMasterNodes() (*v1.NodeList, error)
- func (m *MockK8SClient) ListNodes() (*v1.NodeList, error)
- func (m *MockK8SClient) PatchEtcd() error
- func (m *MockK8SClient) RunOCctlCommand(args []string, kubeconfigPath string, o ops.Ops) (string, error)
- func (m *MockK8SClient) UnPatchEtcd() error
- type MockK8SClientMockRecorder
- func (mr *MockK8SClientMockRecorder) ApproveCsr(csr interface{}) *gomock.Call
- func (mr *MockK8SClientMockRecorder) GetConfigMap(namespace, name interface{}) *gomock.Call
- func (mr *MockK8SClientMockRecorder) GetPodLogs(namespace, podName, sinceSeconds interface{}) *gomock.Call
- func (mr *MockK8SClientMockRecorder) GetPods(namespace, labelMatch interface{}) *gomock.Call
- func (mr *MockK8SClientMockRecorder) ListCsrs() *gomock.Call
- func (mr *MockK8SClientMockRecorder) ListMasterNodes() *gomock.Call
- func (mr *MockK8SClientMockRecorder) ListNodes() *gomock.Call
- func (mr *MockK8SClientMockRecorder) PatchEtcd() *gomock.Call
- func (mr *MockK8SClientMockRecorder) RunOCctlCommand(args, kubeconfigPath, o interface{}) *gomock.Call
- func (mr *MockK8SClientMockRecorder) UnPatchEtcd() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8SClient ¶
type K8SClient interface { ListMasterNodes() (*v1.NodeList, error) PatchEtcd() error UnPatchEtcd() error ListNodes() (*v1.NodeList, error) RunOCctlCommand(args []string, kubeconfigPath string, o ops.Ops) (string, error) ApproveCsr(csr *v1beta1.CertificateSigningRequest) error ListCsrs() (*v1beta1.CertificateSigningRequestList, error) GetConfigMap(namespace string, name string) (*v1.ConfigMap, error) GetPodLogs(namespace string, podName string, sinceSeconds int64) (string, error) GetPods(namespace string, labelMatch map[string]string) ([]v1.Pod, error) }
type K8SClientBuilder ¶
type MockK8SClient ¶
type MockK8SClient struct {
// contains filtered or unexported fields
}
MockK8SClient is a mock of K8SClient interface
func NewMockK8SClient ¶
func NewMockK8SClient(ctrl *gomock.Controller) *MockK8SClient
NewMockK8SClient creates a new mock instance
func (*MockK8SClient) ApproveCsr ¶
func (m *MockK8SClient) ApproveCsr(csr *v1beta1.CertificateSigningRequest) error
ApproveCsr mocks base method
func (*MockK8SClient) EXPECT ¶
func (m *MockK8SClient) EXPECT() *MockK8SClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockK8SClient) GetConfigMap ¶
func (m *MockK8SClient) GetConfigMap(namespace, name string) (*v1.ConfigMap, error)
GetConfigMap mocks base method
func (*MockK8SClient) GetPodLogs ¶ added in v1.0.5
func (m *MockK8SClient) GetPodLogs(namespace, podName string, sinceSeconds int64) (string, error)
GetPodLogs mocks base method
func (*MockK8SClient) ListCsrs ¶
func (m *MockK8SClient) ListCsrs() (*v1beta1.CertificateSigningRequestList, error)
ListCsrs mocks base method
func (*MockK8SClient) ListMasterNodes ¶
func (m *MockK8SClient) ListMasterNodes() (*v1.NodeList, error)
ListMasterNodes mocks base method
func (*MockK8SClient) ListNodes ¶
func (m *MockK8SClient) ListNodes() (*v1.NodeList, error)
ListNodes mocks base method
func (*MockK8SClient) PatchEtcd ¶
func (m *MockK8SClient) PatchEtcd() error
PatchEtcd mocks base method
func (*MockK8SClient) RunOCctlCommand ¶
func (m *MockK8SClient) RunOCctlCommand(args []string, kubeconfigPath string, o ops.Ops) (string, error)
RunOCctlCommand mocks base method
func (*MockK8SClient) UnPatchEtcd ¶ added in v1.0.4
func (m *MockK8SClient) UnPatchEtcd() error
UnPatchEtcd mocks base method
type MockK8SClientMockRecorder ¶
type MockK8SClientMockRecorder struct {
// contains filtered or unexported fields
}
MockK8SClientMockRecorder is the mock recorder for MockK8SClient
func (*MockK8SClientMockRecorder) ApproveCsr ¶
func (mr *MockK8SClientMockRecorder) ApproveCsr(csr interface{}) *gomock.Call
ApproveCsr indicates an expected call of ApproveCsr
func (*MockK8SClientMockRecorder) GetConfigMap ¶
func (mr *MockK8SClientMockRecorder) GetConfigMap(namespace, name interface{}) *gomock.Call
GetConfigMap indicates an expected call of GetConfigMap
func (*MockK8SClientMockRecorder) GetPodLogs ¶ added in v1.0.5
func (mr *MockK8SClientMockRecorder) GetPodLogs(namespace, podName, sinceSeconds interface{}) *gomock.Call
GetPodLogs indicates an expected call of GetPodLogs
func (*MockK8SClientMockRecorder) GetPods ¶ added in v1.0.5
func (mr *MockK8SClientMockRecorder) GetPods(namespace, labelMatch interface{}) *gomock.Call
GetPods indicates an expected call of GetPods
func (*MockK8SClientMockRecorder) ListCsrs ¶
func (mr *MockK8SClientMockRecorder) ListCsrs() *gomock.Call
ListCsrs indicates an expected call of ListCsrs
func (*MockK8SClientMockRecorder) ListMasterNodes ¶
func (mr *MockK8SClientMockRecorder) ListMasterNodes() *gomock.Call
ListMasterNodes indicates an expected call of ListMasterNodes
func (*MockK8SClientMockRecorder) ListNodes ¶
func (mr *MockK8SClientMockRecorder) ListNodes() *gomock.Call
ListNodes indicates an expected call of ListNodes
func (*MockK8SClientMockRecorder) PatchEtcd ¶
func (mr *MockK8SClientMockRecorder) PatchEtcd() *gomock.Call
PatchEtcd indicates an expected call of PatchEtcd
func (*MockK8SClientMockRecorder) RunOCctlCommand ¶
func (mr *MockK8SClientMockRecorder) RunOCctlCommand(args, kubeconfigPath, o interface{}) *gomock.Call
RunOCctlCommand indicates an expected call of RunOCctlCommand
func (*MockK8SClientMockRecorder) UnPatchEtcd ¶ added in v1.0.4
func (mr *MockK8SClientMockRecorder) UnPatchEtcd() *gomock.Call
UnPatchEtcd indicates an expected call of UnPatchEtcd