mocks

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultAuth

type VaultAuth struct {
	mock.Mock
}

VaultAuth is an autogenerated mock type for the VaultAuth type

func NewVaultAuth

func NewVaultAuth(t interface {
	mock.TestingT
	Cleanup(func())
}) *VaultAuth

NewVaultAuth creates a new instance of VaultAuth. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VaultAuth) CreateClientSecret

func (_m *VaultAuth) CreateClientSecret(ctx context.Context, username string, password string) (string, error)

CreateClientSecret provides a mock function with given fields: ctx, username, password

func (*VaultAuth) GetM2MToken

func (_m *VaultAuth) GetM2MToken(ctx context.Context) (string, error)

GetM2MToken provides a mock function with given fields: ctx

func (*VaultAuth) GetVaultToken

func (_m *VaultAuth) GetVaultToken(ctx context.Context) (string, error)

GetVaultToken provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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