mocks

package
v1.365.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultClient added in v1.361.0

type VaultClient struct {
	mock.Mock
}

VaultClient is an autogenerated mock type for the VaultClient type

func NewVaultClient added in v1.361.0

func NewVaultClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *VaultClient

NewVaultClient creates a new instance of VaultClient. 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 (*VaultClient) EXPECT added in v1.361.0

func (_m *VaultClient) EXPECT() *VaultClient_Expecter

func (*VaultClient) GetKvSecret added in v1.361.0

func (_m *VaultClient) GetKvSecret(_a0 string) (map[string]string, error)

GetKvSecret provides a mock function with given fields: _a0

func (*VaultClient) GetOIDCTokenByValidation added in v1.361.0

func (_m *VaultClient) GetOIDCTokenByValidation(_a0 string) (string, error)

GetOIDCTokenByValidation provides a mock function with given fields: _a0

func (*VaultClient) MustRevokeToken added in v1.361.0

func (_m *VaultClient) MustRevokeToken()

MustRevokeToken provides a mock function with given fields:

type VaultClient_Expecter added in v1.361.0

type VaultClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*VaultClient_Expecter) GetKvSecret added in v1.361.0

func (_e *VaultClient_Expecter) GetKvSecret(_a0 interface{}) *VaultClient_GetKvSecret_Call

GetKvSecret is a helper method to define mock.On call

  • _a0 string

func (*VaultClient_Expecter) GetOIDCTokenByValidation added in v1.361.0

func (_e *VaultClient_Expecter) GetOIDCTokenByValidation(_a0 interface{}) *VaultClient_GetOIDCTokenByValidation_Call

GetOIDCTokenByValidation is a helper method to define mock.On call

  • _a0 string

func (*VaultClient_Expecter) MustRevokeToken added in v1.361.0

MustRevokeToken is a helper method to define mock.On call

type VaultClient_GetKvSecret_Call added in v1.361.0

type VaultClient_GetKvSecret_Call struct {
	*mock.Call
}

VaultClient_GetKvSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKvSecret'

func (*VaultClient_GetKvSecret_Call) Return added in v1.361.0

func (*VaultClient_GetKvSecret_Call) Run added in v1.361.0

func (*VaultClient_GetKvSecret_Call) RunAndReturn added in v1.361.0

type VaultClient_GetOIDCTokenByValidation_Call added in v1.361.0

type VaultClient_GetOIDCTokenByValidation_Call struct {
	*mock.Call
}

VaultClient_GetOIDCTokenByValidation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOIDCTokenByValidation'

func (*VaultClient_GetOIDCTokenByValidation_Call) Return added in v1.361.0

func (*VaultClient_GetOIDCTokenByValidation_Call) Run added in v1.361.0

func (*VaultClient_GetOIDCTokenByValidation_Call) RunAndReturn added in v1.361.0

type VaultClient_MustRevokeToken_Call added in v1.361.0

type VaultClient_MustRevokeToken_Call struct {
	*mock.Call
}

VaultClient_MustRevokeToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustRevokeToken'

func (*VaultClient_MustRevokeToken_Call) Return added in v1.361.0

func (*VaultClient_MustRevokeToken_Call) Run added in v1.361.0

func (*VaultClient_MustRevokeToken_Call) RunAndReturn added in v1.361.0

Jump to

Keyboard shortcuts

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