Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: repo.go
Generated by this command:
mockgen -destination=./mock_repo.go -package=privatelinkservice -copyright_file ../../../hack/boilerplate/boilerplate.generatego.txt -source=repo.go Repository
Package privatelinkservice is a generated GoMock package.
Index ¶
- Constants
- Variables
- func NewCache(client privatelinkserviceclient.Interface, cacheTTL time.Duration, ...) (cache.Resource, error)
- type MockRepository
- func (m *MockRepository) CreateOrUpdate(ctx context.Context, resourceGroup string, pls armnetwork.PrivateLinkService) (*armnetwork.PrivateLinkService, error)
- func (m *MockRepository) Delete(ctx context.Context, resourceGroup, plsName, lbFrontendID string) error
- func (m *MockRepository) DeletePEConnection(ctx context.Context, resourceGroup, plsName, peConnName string) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, resourceGroup, frontendIPConfigID string, ...) (*armnetwork.PrivateLinkService, error)
- func (m *MockRepository) List(ctx context.Context, resourceGroup string) ([]*armnetwork.PrivateLinkService, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) CreateOrUpdate(ctx, resourceGroup, pls any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, resourceGroup, plsName, lbFrontendID any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) DeletePEConnection(ctx, resourceGroup, plsName, peConnName any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, resourceGroup, frontendIPConfigID, crt any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) List(ctx, resourceGroup any) *gomock.Call
- type Repository
Constants ¶
const (
DefaultCacheTTL = 120 * time.Second
)
Variables ¶
var ( ErrMissingPLSName = fmt.Errorf("missing PLS name") ErrLoadBalancerFrontendIPConfigurationsNotFound = fmt.Errorf("load balancer frontend IP configurations not found") )
Functions ¶
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) CreateOrUpdate ¶
func (m *MockRepository) CreateOrUpdate(ctx context.Context, resourceGroup string, pls armnetwork.PrivateLinkService) (*armnetwork.PrivateLinkService, error)
CreateOrUpdate mocks base method.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, resourceGroup, plsName, lbFrontendID string) error
Delete mocks base method.
func (*MockRepository) DeletePEConnection ¶
func (m *MockRepository) DeletePEConnection(ctx context.Context, resourceGroup, plsName, peConnName string) error
DeletePEConnection mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) Get ¶
func (m *MockRepository) Get(ctx context.Context, resourceGroup, frontendIPConfigID string, crt cache.AzureCacheReadType) (*armnetwork.PrivateLinkService, error)
Get mocks base method.
func (*MockRepository) List ¶
func (m *MockRepository) List(ctx context.Context, resourceGroup string) ([]*armnetwork.PrivateLinkService, error)
List mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) CreateOrUpdate ¶
func (mr *MockRepositoryMockRecorder) CreateOrUpdate(ctx, resourceGroup, pls any) *gomock.Call
CreateOrUpdate indicates an expected call of CreateOrUpdate.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, resourceGroup, plsName, lbFrontendID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) DeletePEConnection ¶
func (mr *MockRepositoryMockRecorder) DeletePEConnection(ctx, resourceGroup, plsName, peConnName any) *gomock.Call
DeletePEConnection indicates an expected call of DeletePEConnection.
type Repository ¶
type Repository interface { Get(ctx context.Context, resourceGroup, frontendIPConfigID string, crt cache.AzureCacheReadType) (*armnetwork.PrivateLinkService, error) List(ctx context.Context, resourceGroup string) ([]*armnetwork.PrivateLinkService, error) CreateOrUpdate(ctx context.Context, resourceGroup string, pls armnetwork.PrivateLinkService) (*armnetwork.PrivateLinkService, error) Delete(ctx context.Context, resourceGroup, plsName, lbFrontendID string) error DeletePEConnection(ctx context.Context, resourceGroup, plsName, peConnName string) error }
func NewRepo ¶
func NewRepo( client privatelinkserviceclient.Interface, cacheTTL time.Duration, disableAPICallCache bool, ) (Repository, error)