Documentation ¶
Overview ¶
Package credentialplugin provides the use-cases for running as a client-go credentials plugin.
See https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GetToken ¶
type GetToken struct { Authentication authentication.Interface TokenCacheRepository repository.Interface Writer writer.Interface Mutex mutex.Interface Logger logger.Interface }
type Input ¶
type Input struct { Provider oidc.Provider TokenCacheDir string GrantOptionSet authentication.GrantOptionSet TLSClientConfig tlsclientconfig.Config }
Input represents an input DTO of the GetToken use-case.
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) Do ¶
func (_m *MockInterface) Do(ctx context.Context, in Input) error
Do provides a mock function with given fields: ctx, in
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
type MockInterface_Do_Call ¶
MockInterface_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*MockInterface_Do_Call) Return ¶
func (_c *MockInterface_Do_Call) Return(_a0 error) *MockInterface_Do_Call
func (*MockInterface_Do_Call) Run ¶
func (_c *MockInterface_Do_Call) Run(run func(ctx context.Context, in Input)) *MockInterface_Do_Call
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) Do ¶
func (_e *MockInterface_Expecter) Do(ctx interface{}, in interface{}) *MockInterface_Do_Call
Do is a helper method to define mock.On call
- ctx context.Context
- in Input