secret

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package secret is a generated GoMock package.

Index

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.

func New

func New(ds store.IStore) *secretBiz

New creates a new instance of the secretBiz struct.

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSecretBiz) Get

Get mocks base method.

func (*MockSecretBiz) List

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.

func (*MockSecretBizMockRecorder) List

func (mr *MockSecretBizMockRecorder) List(arg0, arg1 any) *gomock.Call

List indicates an expected call of List.

func (*MockSecretBizMockRecorder) Update

func (mr *MockSecretBizMockRecorder) Update(arg0, arg1 any) *gomock.Call

Update indicates an expected call of Update.

type SecretBiz

SecretBiz defines functions used to handle secret rquest.

Jump to

Keyboard shortcuts

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