type Client interface { Login(server, username, password, token, caAuth string, skipTLS bool) error }
type KubernetesClient struct{}
func NewKubernetesClient() *KubernetesClient
func (o KubernetesClient) Login(server, username, password, token, caAuth string, skipTLS bool) error
Login takes care of authentication part and returns error, if any
MockClient is a mock of Client interface.
type MockClient struct {
// contains filtered or unexported fields
}
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClient) Login(server, username, password, token, caAuth string, skipTLS bool) error
Login mocks base method.
MockClientMockRecorder is the mock recorder for MockClient.
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockClientMockRecorder) Login(server, username, password, token, caAuth, skipTLS interface{}) *gomock.Call
Login indicates an expected call of Login.