secret

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 9 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 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

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

func (*MockSecretBiz) Get

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.

func (*MockSecretBizMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockSecretBizMockRecorder) Set

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

Set indicates an expected call of Set.

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.

Jump to

Keyboard shortcuts

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