mock_vaultclient

package
v2.0.0-...-f3fe0fa Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_vaultclient is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVaultClient

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

MockVaultClient is a mock of VaultClient interface.

func NewMockVaultClient

func NewMockVaultClient(ctrl *gomock.Controller) *MockVaultClient

NewMockVaultClient creates a new mock instance.

func (*MockVaultClient) Address

func (m *MockVaultClient) Address() string

Address mocks base method.

func (*MockVaultClient) CreateSSHCertificate

func (m *MockVaultClient) CreateSSHCertificate(sshConfig config.SSHCertificateType) error

CreateSSHCertificate mocks base method.

func (*MockVaultClient) Delegate

func (m *MockVaultClient) Delegate() *api.Client

Delegate mocks base method.

func (*MockVaultClient) EXPECT

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

func (*MockVaultClient) FetchAWSSTSCredential

func (m *MockVaultClient) FetchAWSSTSCredential(awsConfig config.AWSType, stsTTL time.Duration) (*vaultclient.AWSSTSCredential, *util.WrappedToken, error)

FetchAWSSTSCredential mocks base method.

func (*MockVaultClient) Read

func (m *MockVaultClient) Read(arg0 string) (*api.Secret, error)

Read mocks base method.

func (*MockVaultClient) ReadWithData

func (m *MockVaultClient) ReadWithData(arg0 string, arg1 map[string][]string) (*api.Secret, error)

ReadWithData mocks base method.

func (*MockVaultClient) RefreshVaultToken

func (m *MockVaultClient) RefreshVaultToken() (*api.Secret, error)

RefreshVaultToken mocks base method.

func (*MockVaultClient) ServiceSecretPrefix

func (m *MockVaultClient) ServiceSecretPrefix(configVersion int) string

ServiceSecretPrefix mocks base method.

func (*MockVaultClient) SetToken

func (m *MockVaultClient) SetToken(token string)

SetToken mocks base method.

func (*MockVaultClient) VerifyVaultToken

func (m *MockVaultClient) VerifyVaultToken(vaultToken string) (*api.Secret, error)

VerifyVaultToken mocks base method.

type MockVaultClientMockRecorder

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

MockVaultClientMockRecorder is the mock recorder for MockVaultClient.

func (*MockVaultClientMockRecorder) Address

func (mr *MockVaultClientMockRecorder) Address() *gomock.Call

Address indicates an expected call of Address.

func (*MockVaultClientMockRecorder) CreateSSHCertificate

func (mr *MockVaultClientMockRecorder) CreateSSHCertificate(sshConfig interface{}) *gomock.Call

CreateSSHCertificate indicates an expected call of CreateSSHCertificate.

func (*MockVaultClientMockRecorder) Delegate

func (mr *MockVaultClientMockRecorder) Delegate() *gomock.Call

Delegate indicates an expected call of Delegate.

func (*MockVaultClientMockRecorder) FetchAWSSTSCredential

func (mr *MockVaultClientMockRecorder) FetchAWSSTSCredential(awsConfig, stsTTL interface{}) *gomock.Call

FetchAWSSTSCredential indicates an expected call of FetchAWSSTSCredential.

func (*MockVaultClientMockRecorder) Read

func (mr *MockVaultClientMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockVaultClientMockRecorder) ReadWithData

func (mr *MockVaultClientMockRecorder) ReadWithData(arg0, arg1 interface{}) *gomock.Call

ReadWithData indicates an expected call of ReadWithData.

func (*MockVaultClientMockRecorder) RefreshVaultToken

func (mr *MockVaultClientMockRecorder) RefreshVaultToken() *gomock.Call

RefreshVaultToken indicates an expected call of RefreshVaultToken.

func (*MockVaultClientMockRecorder) ServiceSecretPrefix

func (mr *MockVaultClientMockRecorder) ServiceSecretPrefix(configVersion interface{}) *gomock.Call

ServiceSecretPrefix indicates an expected call of ServiceSecretPrefix.

func (*MockVaultClientMockRecorder) SetToken

func (mr *MockVaultClientMockRecorder) SetToken(token interface{}) *gomock.Call

SetToken indicates an expected call of SetToken.

func (*MockVaultClientMockRecorder) VerifyVaultToken

func (mr *MockVaultClientMockRecorder) VerifyVaultToken(vaultToken interface{}) *gomock.Call

VerifyVaultToken indicates an expected call of VerifyVaultToken.

Jump to

Keyboard shortcuts

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