Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Set = wire.NewSet( wire.Struct(new(Repository), "*"), wire.Bind(new(Interface), new(*Repository)), )
Set provides an implementation and interface for Kubeconfig.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶ added in v1.25.2
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶ added in v1.25.2
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 ¶ added in v1.25.2
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) FindByKey ¶ added in v1.25.2
func (_m *MockInterface) FindByKey(dir string, key tokencache.Key) (*oidc.TokenSet, error)
FindByKey provides a mock function with given fields: dir, key
func (*MockInterface) Save ¶ added in v1.25.2
func (_m *MockInterface) Save(dir string, key tokencache.Key, tokenSet oidc.TokenSet) error
Save provides a mock function with given fields: dir, key, tokenSet
type MockInterface_Expecter ¶ added in v1.25.2
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) FindByKey ¶ added in v1.25.2
func (_e *MockInterface_Expecter) FindByKey(dir interface{}, key interface{}) *MockInterface_FindByKey_Call
FindByKey is a helper method to define mock.On call
- dir string
- key tokencache.Key
func (*MockInterface_Expecter) Save ¶ added in v1.25.2
func (_e *MockInterface_Expecter) Save(dir interface{}, key interface{}, tokenSet interface{}) *MockInterface_Save_Call
Save is a helper method to define mock.On call
- dir string
- key tokencache.Key
- tokenSet oidc.TokenSet
type MockInterface_FindByKey_Call ¶ added in v1.25.2
MockInterface_FindByKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByKey'
func (*MockInterface_FindByKey_Call) Return ¶ added in v1.25.2
func (_c *MockInterface_FindByKey_Call) Return(_a0 *oidc.TokenSet, _a1 error) *MockInterface_FindByKey_Call
func (*MockInterface_FindByKey_Call) Run ¶ added in v1.25.2
func (_c *MockInterface_FindByKey_Call) Run(run func(dir string, key tokencache.Key)) *MockInterface_FindByKey_Call
type MockInterface_Save_Call ¶ added in v1.25.2
MockInterface_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*MockInterface_Save_Call) Return ¶ added in v1.25.2
func (_c *MockInterface_Save_Call) Return(_a0 error) *MockInterface_Save_Call
func (*MockInterface_Save_Call) Run ¶ added in v1.25.2
func (_c *MockInterface_Save_Call) Run(run func(dir string, key tokencache.Key, tokenSet oidc.TokenSet)) *MockInterface_Save_Call
type Repository ¶
type Repository struct{}
Repository provides access to the token cache on the local filesystem. Filename of a token cache is sha256 digest of the issuer, zero-character and client ID.
func (*Repository) FindByKey ¶
func (r *Repository) FindByKey(dir string, key tokencache.Key) (*oidc.TokenSet, error)
func (*Repository) Save ¶
func (r *Repository) Save(dir string, key tokencache.Key, tokenSet oidc.TokenSet) error