Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCertificateFetcher
- type MockCertificateFetcherMockRecorder
- type MockGatewaySecretRegistry
- func (m *MockGatewaySecretRegistry) CanFetchSecrets(ctx context.Context, info core.GatewayID, secrets []string) (bool, error)
- func (m *MockGatewaySecretRegistry) EXPECT() *MockGatewaySecretRegistryMockRecorder
- func (m *MockGatewaySecretRegistry) GatewayExists(ctx context.Context, info core.GatewayID) (bool, error)
- type MockGatewaySecretRegistryMockRecorder
- type MockSecretCache
- type MockSecretCacheMockRecorder
- type MockSecretClient
- type MockSecretClientMockRecorder
- type MockSecretManager
- func (m *MockSecretManager) EXPECT() *MockSecretManagerMockRecorder
- func (m *MockSecretManager) Manage(ctx context.Context)
- func (m *MockSecretManager) SetResourcesForNode(ctx context.Context, names []string, node string) error
- func (m *MockSecretManager) Unwatch(ctx context.Context, names []string, node string) error
- func (m *MockSecretManager) UnwatchAll(ctx context.Context, node string) error
- func (m *MockSecretManager) Watch(ctx context.Context, names []string, node string) error
- type MockSecretManagerMockRecorder
- func (mr *MockSecretManagerMockRecorder) Manage(ctx interface{}) *gomock.Call
- func (mr *MockSecretManagerMockRecorder) SetResourcesForNode(ctx, names, node interface{}) *gomock.Call
- func (mr *MockSecretManagerMockRecorder) Unwatch(ctx, names, node interface{}) *gomock.Call
- func (mr *MockSecretManagerMockRecorder) UnwatchAll(ctx, node interface{}) *gomock.Call
- func (mr *MockSecretManagerMockRecorder) Watch(ctx, names, node interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCertificateFetcher ¶
type MockCertificateFetcher struct {
// contains filtered or unexported fields
}
MockCertificateFetcher is a mock of CertificateFetcher interface.
func NewMockCertificateFetcher ¶
func NewMockCertificateFetcher(ctrl *gomock.Controller) *MockCertificateFetcher
NewMockCertificateFetcher creates a new mock instance.
func (*MockCertificateFetcher) EXPECT ¶
func (m *MockCertificateFetcher) EXPECT() *MockCertificateFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCertificateFetcher) RootPool ¶
func (m *MockCertificateFetcher) RootPool() *x509.CertPool
RootPool mocks base method.
func (*MockCertificateFetcher) SPIFFE ¶
func (m *MockCertificateFetcher) SPIFFE() *url.URL
SPIFFE mocks base method.
func (*MockCertificateFetcher) TLSCertificate ¶
func (m *MockCertificateFetcher) TLSCertificate() *tls.Certificate
TLSCertificate mocks base method.
type MockCertificateFetcherMockRecorder ¶
type MockCertificateFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockCertificateFetcherMockRecorder is the mock recorder for MockCertificateFetcher.
func (*MockCertificateFetcherMockRecorder) RootPool ¶
func (mr *MockCertificateFetcherMockRecorder) RootPool() *gomock.Call
RootPool indicates an expected call of RootPool.
func (*MockCertificateFetcherMockRecorder) SPIFFE ¶
func (mr *MockCertificateFetcherMockRecorder) SPIFFE() *gomock.Call
SPIFFE indicates an expected call of SPIFFE.
func (*MockCertificateFetcherMockRecorder) TLSCertificate ¶
func (mr *MockCertificateFetcherMockRecorder) TLSCertificate() *gomock.Call
TLSCertificate indicates an expected call of TLSCertificate.
type MockGatewaySecretRegistry ¶
type MockGatewaySecretRegistry struct {
// contains filtered or unexported fields
}
MockGatewaySecretRegistry is a mock of GatewaySecretRegistry interface.
func NewMockGatewaySecretRegistry ¶
func NewMockGatewaySecretRegistry(ctrl *gomock.Controller) *MockGatewaySecretRegistry
NewMockGatewaySecretRegistry creates a new mock instance.
func (*MockGatewaySecretRegistry) CanFetchSecrets ¶
func (m *MockGatewaySecretRegistry) CanFetchSecrets(ctx context.Context, info core.GatewayID, secrets []string) (bool, error)
CanFetchSecrets mocks base method.
func (*MockGatewaySecretRegistry) EXPECT ¶
func (m *MockGatewaySecretRegistry) EXPECT() *MockGatewaySecretRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGatewaySecretRegistry) GatewayExists ¶
func (m *MockGatewaySecretRegistry) GatewayExists(ctx context.Context, info core.GatewayID) (bool, error)
GatewayExists mocks base method.
type MockGatewaySecretRegistryMockRecorder ¶
type MockGatewaySecretRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockGatewaySecretRegistryMockRecorder is the mock recorder for MockGatewaySecretRegistry.
func (*MockGatewaySecretRegistryMockRecorder) CanFetchSecrets ¶
func (mr *MockGatewaySecretRegistryMockRecorder) CanFetchSecrets(ctx, info, secrets interface{}) *gomock.Call
CanFetchSecrets indicates an expected call of CanFetchSecrets.
func (*MockGatewaySecretRegistryMockRecorder) GatewayExists ¶
func (mr *MockGatewaySecretRegistryMockRecorder) GatewayExists(ctx, info interface{}) *gomock.Call
GatewayExists indicates an expected call of GatewayExists.
type MockSecretCache ¶
type MockSecretCache struct {
// contains filtered or unexported fields
}
MockSecretCache is a mock of SecretCache interface.
func NewMockSecretCache ¶
func NewMockSecretCache(ctrl *gomock.Controller) *MockSecretCache
NewMockSecretCache creates a new mock instance.
func (*MockSecretCache) DeleteResource ¶
func (m *MockSecretCache) DeleteResource(name string) error
DeleteResource mocks base method.
func (*MockSecretCache) EXPECT ¶
func (m *MockSecretCache) EXPECT() *MockSecretCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretCache) UpdateResource ¶
func (m *MockSecretCache) UpdateResource(name string, res types.Resource) error
UpdateResource mocks base method.
type MockSecretCacheMockRecorder ¶
type MockSecretCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretCacheMockRecorder is the mock recorder for MockSecretCache.
func (*MockSecretCacheMockRecorder) DeleteResource ¶
func (mr *MockSecretCacheMockRecorder) DeleteResource(name interface{}) *gomock.Call
DeleteResource indicates an expected call of DeleteResource.
func (*MockSecretCacheMockRecorder) UpdateResource ¶
func (mr *MockSecretCacheMockRecorder) UpdateResource(name, res interface{}) *gomock.Call
UpdateResource indicates an expected call of UpdateResource.
type MockSecretClient ¶
type MockSecretClient struct {
// contains filtered or unexported fields
}
MockSecretClient is a mock of SecretClient interface.
func NewMockSecretClient ¶
func NewMockSecretClient(ctrl *gomock.Controller) *MockSecretClient
NewMockSecretClient creates a new mock instance.
func (*MockSecretClient) EXPECT ¶
func (m *MockSecretClient) EXPECT() *MockSecretClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretClient) FetchSecret ¶
func (m *MockSecretClient) FetchSecret(ctx context.Context, name string) (*envoy_extensions_transport_sockets_tls_v3.Secret, time.Time, error)
FetchSecret mocks base method.
type MockSecretClientMockRecorder ¶
type MockSecretClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretClientMockRecorder is the mock recorder for MockSecretClient.
func (*MockSecretClientMockRecorder) FetchSecret ¶
func (mr *MockSecretClientMockRecorder) FetchSecret(ctx, name interface{}) *gomock.Call
FetchSecret indicates an expected call of FetchSecret.
type MockSecretManager ¶
type MockSecretManager struct {
// contains filtered or unexported fields
}
MockSecretManager is a mock of SecretManager interface.
func NewMockSecretManager ¶
func NewMockSecretManager(ctrl *gomock.Controller) *MockSecretManager
NewMockSecretManager creates a new mock instance.
func (*MockSecretManager) EXPECT ¶
func (m *MockSecretManager) EXPECT() *MockSecretManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretManager) Manage ¶
func (m *MockSecretManager) Manage(ctx context.Context)
Manage mocks base method.
func (*MockSecretManager) SetResourcesForNode ¶
func (m *MockSecretManager) SetResourcesForNode(ctx context.Context, names []string, node string) error
SetResourcesForNode mocks base method.
func (*MockSecretManager) UnwatchAll ¶
func (m *MockSecretManager) UnwatchAll(ctx context.Context, node string) error
UnwatchAll mocks base method.
type MockSecretManagerMockRecorder ¶
type MockSecretManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretManagerMockRecorder is the mock recorder for MockSecretManager.
func (*MockSecretManagerMockRecorder) Manage ¶
func (mr *MockSecretManagerMockRecorder) Manage(ctx interface{}) *gomock.Call
Manage indicates an expected call of Manage.
func (*MockSecretManagerMockRecorder) SetResourcesForNode ¶
func (mr *MockSecretManagerMockRecorder) SetResourcesForNode(ctx, names, node interface{}) *gomock.Call
SetResourcesForNode indicates an expected call of SetResourcesForNode.
func (*MockSecretManagerMockRecorder) Unwatch ¶
func (mr *MockSecretManagerMockRecorder) Unwatch(ctx, names, node interface{}) *gomock.Call
Unwatch indicates an expected call of Unwatch.
func (*MockSecretManagerMockRecorder) UnwatchAll ¶
func (mr *MockSecretManagerMockRecorder) UnwatchAll(ctx, node interface{}) *gomock.Call
UnwatchAll indicates an expected call of UnwatchAll.
func (*MockSecretManagerMockRecorder) Watch ¶
func (mr *MockSecretManagerMockRecorder) Watch(ctx, names, node interface{}) *gomock.Call
Watch indicates an expected call of Watch.