k8s_client

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package k8s_client is a generated GoMock package.

Index

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)
}

func NewK8SClient

func NewK8SClient(configPath string, logger *logrus.Logger) (K8SClient, error)

type K8SClientBuilder

type K8SClientBuilder func(configPath string, logger *logrus.Logger) (K8SClient, error)

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

ApproveCsr mocks base method

func (*MockK8SClient) EXPECT

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL