Documentation ¶
Overview ¶
Package secret is a generated GoMock package.
Index ¶
- func ModelToReply(secretM *model.SecretM) *v1.SecretReply
- func New(ds store.IStore) *secretBiz
- type MockSecretBiz
- func (m *MockSecretBiz) Create(arg0 context.Context, arg1 *v1.CreateSecretRequest) (*v1.SecretReply, error)
- func (m *MockSecretBiz) Delete(arg0 context.Context, arg1 *v1.DeleteSecretRequest) error
- func (m *MockSecretBiz) EXPECT() *MockSecretBizMockRecorder
- func (m *MockSecretBiz) Get(arg0 context.Context, arg1 *v1.GetSecretRequest) (*v1.SecretReply, error)
- func (m *MockSecretBiz) List(arg0 context.Context, arg1 *v1.ListSecretRequest) (*v1.ListSecretResponse, error)
- func (m *MockSecretBiz) Update(arg0 context.Context, arg1 *v1.UpdateSecretRequest) error
- type MockSecretBizMockRecorder
- func (mr *MockSecretBizMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockSecretBizMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockSecretBizMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockSecretBizMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockSecretBizMockRecorder) Update(arg0, arg1 any) *gomock.Call
- type SecretBiz
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelToReply ¶
func ModelToReply(secretM *model.SecretM) *v1.SecretReply
ModelToReply converts a model.SecretM to a v1.SecretReply. It copies the data from secretM to secret and sets the CreatedAt and UpdatedAt fields to their respective timestamps.
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) Create ¶
func (m *MockSecretBiz) Create(arg0 context.Context, arg1 *v1.CreateSecretRequest) (*v1.SecretReply, error)
Create mocks base method.
func (*MockSecretBiz) Delete ¶
func (m *MockSecretBiz) Delete(arg0 context.Context, arg1 *v1.DeleteSecretRequest) error
Delete 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.SecretReply, error)
Get mocks base method.
func (*MockSecretBiz) List ¶
func (m *MockSecretBiz) List(arg0 context.Context, arg1 *v1.ListSecretRequest) (*v1.ListSecretResponse, error)
List mocks base method.
func (*MockSecretBiz) Update ¶
func (m *MockSecretBiz) Update(arg0 context.Context, arg1 *v1.UpdateSecretRequest) error
Update mocks base method.
type MockSecretBizMockRecorder ¶
type MockSecretBizMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretBizMockRecorder is the mock recorder for MockSecretBiz.
func (*MockSecretBizMockRecorder) Create ¶
func (mr *MockSecretBizMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockSecretBizMockRecorder) Delete ¶
func (mr *MockSecretBizMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSecretBizMockRecorder) Get ¶
func (mr *MockSecretBizMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
type SecretBiz ¶
type SecretBiz interface { Create(ctx context.Context, rq *v1.CreateSecretRequest) (*v1.SecretReply, error) List(ctx context.Context, rq *v1.ListSecretRequest) (*v1.ListSecretResponse, error) Get(ctx context.Context, rq *v1.GetSecretRequest) (*v1.SecretReply, error) Update(ctx context.Context, rq *v1.UpdateSecretRequest) error Delete(ctx context.Context, rq *v1.DeleteSecretRequest) error }
SecretBiz defines functions used to handle secret rquest.