repository

package
v0.0.0-...-44a5619 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Set provides an implementation and interface for Kubeconfig.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	FindByKey(dir string, key tokencache.Key) (*oidc.TokenSet, error)
	Save(dir string, key tokencache.Key, tokenSet oidc.TokenSet) error
}

type MockInterface

type MockInterface struct {
	mock.Mock
}

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) FindByKey

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

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

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

func (*MockInterface_Expecter) FindByKey

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

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

type MockInterface_FindByKey_Call struct {
	*mock.Call
}

MockInterface_FindByKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByKey'

func (*MockInterface_FindByKey_Call) Return

func (*MockInterface_FindByKey_Call) Run

type MockInterface_Save_Call

type MockInterface_Save_Call struct {
	*mock.Call
}

MockInterface_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'

func (*MockInterface_Save_Call) Return

func (*MockInterface_Save_Call) Run

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL