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: 12 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(ds store.IStore) *secretBiz

New creates a new instance of secretBiz with the provided data store.

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

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.

Jump to

Keyboard shortcuts

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