Documentation ¶
Index ¶
- Variables
- type Interface
- type Loader
- type MockInterface
- type MockInterface_Expecter
- type MockInterface_GetCurrentAuthProvider_Call
- func (_c *MockInterface_GetCurrentAuthProvider_Call) Return(_a0 *kubeconfig.AuthProvider, _a1 error) *MockInterface_GetCurrentAuthProvider_Call
- func (_c *MockInterface_GetCurrentAuthProvider_Call) Run(run func(explicitFilename string, contextName kubeconfig.ContextName, ...)) *MockInterface_GetCurrentAuthProvider_Call
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
GetCurrentAuthProvider(explicitFilename string, contextName kubeconfig.ContextName, userName kubeconfig.UserName) (*kubeconfig.AuthProvider, error)
}
type Loader ¶
type Loader struct{}
func (Loader) GetCurrentAuthProvider ¶
func (Loader) GetCurrentAuthProvider(explicitFilename string, contextName kubeconfig.ContextName, userName kubeconfig.UserName) (*kubeconfig.AuthProvider, error)
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface
NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) GetCurrentAuthProvider ¶
func (_m *MockInterface) GetCurrentAuthProvider(explicitFilename string, contextName kubeconfig.ContextName, userName kubeconfig.UserName) (*kubeconfig.AuthProvider, error)
GetCurrentAuthProvider provides a mock function with given fields: explicitFilename, contextName, userName
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) GetCurrentAuthProvider ¶
func (_e *MockInterface_Expecter) GetCurrentAuthProvider(explicitFilename interface{}, contextName interface{}, userName interface{}) *MockInterface_GetCurrentAuthProvider_Call
GetCurrentAuthProvider is a helper method to define mock.On call
- explicitFilename string
- contextName kubeconfig.ContextName
- userName kubeconfig.UserName
type MockInterface_GetCurrentAuthProvider_Call ¶
MockInterface_GetCurrentAuthProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentAuthProvider'
func (*MockInterface_GetCurrentAuthProvider_Call) Return ¶
func (_c *MockInterface_GetCurrentAuthProvider_Call) Return(_a0 *kubeconfig.AuthProvider, _a1 error) *MockInterface_GetCurrentAuthProvider_Call
func (*MockInterface_GetCurrentAuthProvider_Call) Run ¶
func (_c *MockInterface_GetCurrentAuthProvider_Call) Run(run func(explicitFilename string, contextName kubeconfig.ContextName, userName kubeconfig.UserName)) *MockInterface_GetCurrentAuthProvider_Call
Click to show internal directories.
Click to hide internal directories.