privatelinkservice

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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

View Source
const (
	DefaultCacheTTL = 120 * time.Second
)

Variables

View Source
var (
	ErrMissingPLSName                               = fmt.Errorf("missing PLS name")
	ErrLoadBalancerFrontendIPConfigurationsNotFound = fmt.Errorf("load balancer frontend IP configurations not found")
)

Functions

func NewCache

func NewCache(
	client privatelinkserviceclient.Interface,
	cacheTTL time.Duration,
	disableAPICallCache bool,
) (cache.Resource, error)

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

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.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, resourceGroup, frontendIPConfigID, crt any) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) List

func (mr *MockRepositoryMockRecorder) List(ctx, resourceGroup any) *gomock.Call

List indicates an expected call of List.

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)

Jump to

Keyboard shortcuts

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