...

Package auth

Overview ▾

Package auth is a generated GoMock package.

type Client

type Client interface {
    Login(server, username, password, token, caAuth string, skipTLS bool) error
}

type KubernetesClient

type KubernetesClient struct{}

func NewKubernetesClient

func NewKubernetesClient() *KubernetesClient

func (KubernetesClient) Login

func (o KubernetesClient) Login(server, username, password, token, caAuth string, skipTLS bool) error

Login takes care of authentication part and returns error, if any

type MockClient

MockClient is a mock of Client interface.

type MockClient struct {
    // contains filtered or unexported fields
}

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) Login

func (m *MockClient) Login(server, username, password, token, caAuth string, skipTLS bool) error

Login mocks base method.

type MockClientMockRecorder

MockClientMockRecorder is the mock recorder for MockClient.

type MockClientMockRecorder struct {
    // contains filtered or unexported fields
}

func (*MockClientMockRecorder) Login

func (mr *MockClientMockRecorder) Login(server, username, password, token, caAuth, skipTLS interface{}) *gomock.Call

Login indicates an expected call of Login.