Documentation ¶
Overview ¶
Package secret is a generated GoMock package.
Index ¶
- 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
- type SecretExpansion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 creates a new secret based on the provided request. Create(ctx context.Context, rq *v1.CreateSecretRequest) (*v1.SecretReply, error) // Update updates an existing secret based on the provided request. Update(ctx context.Context, rq *v1.UpdateSecretRequest) error // Delete removes a secret based on the provided request. Delete(ctx context.Context, rq *v1.DeleteSecretRequest) error // Get retrieves a secret by name based on the provided request. Get(ctx context.Context, rq *v1.GetSecretRequest) (*v1.SecretReply, error) // List retrieves a list of all secrets based on the provided request. List(ctx context.Context, rq *v1.ListSecretRequest) (*v1.ListSecretResponse, error) SecretExpansion }
SecretBiz defines the interface for managing secrets.
type SecretExpansion ¶
type SecretExpansion interface { }
SecretExpansion defines additional methods for secret operations.