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) 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)
- type MockK8SClientMockRecorder
- func (mr *MockK8SClientMockRecorder) ApproveCsr(csr interface{}) *gomock.Call
- func (mr *MockK8SClientMockRecorder) GetConfigMap(namespace, name 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
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 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) }
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) 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
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) 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