Documentation ¶
Overview ¶
Package secret is a generated GoMock package.
Index ¶
- func New(cache *cache.ChainCache[any]) *secretBiz
- type MockSecretBiz
- func (m *MockSecretBiz) Del(arg0 context.Context, arg1 *v1.DelSecretRequest) error
- func (m *MockSecretBiz) EXPECT() *MockSecretBizMockRecorder
- func (m *MockSecretBiz) Get(arg0 context.Context, arg1 *v1.GetSecretRequest) (*v1.GetSecretResponse, error)
- func (m *MockSecretBiz) Set(arg0 context.Context, arg1 *v1.SetSecretRequest) error
- type MockSecretBizMockRecorder
- type SecretBiz
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cache *cache.ChainCache[any]) *secretBiz
New creates a new instance of secretBiz.
Types ¶
type MockSecretBiz ¶
type MockSecretBiz struct {
// contains filtered or unexported fields
}
MockSecretBiz is a mock of SecretBiz interface.
func NewMockSecretBiz ¶
func NewMockSecretBiz(ctrl *gomock.Controller) *MockSecretBiz
NewMockSecretBiz creates a new mock instance.
func (*MockSecretBiz) Del ¶
func (m *MockSecretBiz) Del(arg0 context.Context, arg1 *v1.DelSecretRequest) error
Del mocks base method.
func (*MockSecretBiz) EXPECT ¶
func (m *MockSecretBiz) EXPECT() *MockSecretBizMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretBiz) Get ¶
func (m *MockSecretBiz) Get(arg0 context.Context, arg1 *v1.GetSecretRequest) (*v1.GetSecretResponse, error)
Get mocks base method.
func (*MockSecretBiz) Set ¶
func (m *MockSecretBiz) Set(arg0 context.Context, arg1 *v1.SetSecretRequest) error
Set mocks base method.
type MockSecretBizMockRecorder ¶
type MockSecretBizMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretBizMockRecorder is the mock recorder for MockSecretBiz.
func (*MockSecretBizMockRecorder) Del ¶
func (mr *MockSecretBizMockRecorder) Del(arg0, arg1 any) *gomock.Call
Del indicates an expected call of Del.
type SecretBiz ¶
type SecretBiz interface { Set(ctx context.Context, rq *v1.SetSecretRequest) error Get(ctx context.Context, rq *v1.GetSecretRequest) (*v1.GetSecretResponse, error) Del(ctx context.Context, rq *v1.DelSecretRequest) error }
SecretBiz is the interface for managing secrets in the cache.
Click to show internal directories.
Click to hide internal directories.