testing

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2020 CLOUD&HEAT Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgentController

type MockAgentController struct {
	mock.Mock
}

func NewMockAgentController

func NewMockAgentController() *MockAgentController

func (*MockAgentController) PushConfig

func (m *MockAgentController) PushConfig(cfg *model.LoadBalancer) error

type MockLoadBalancerModelGenerator

type MockLoadBalancerModelGenerator struct {
	mock.Mock
}

func NewMockLoadBalancerModelGenerator

func NewMockLoadBalancerModelGenerator() *MockLoadBalancerModelGenerator

func (*MockLoadBalancerModelGenerator) GenerateModel

func (m *MockLoadBalancerModelGenerator) GenerateModel(portAssignment map[string]string) (*model.LoadBalancer, error)

type MockPortMapper

type MockPortMapper struct {
	mock.Mock
}

func NewMockPortMapper

func NewMockPortMapper() *MockPortMapper

func (*MockPortMapper) GetModel

func (m *MockPortMapper) GetModel() map[string]string

func (*MockPortMapper) GetServiceL3Port

func (m *MockPortMapper) GetServiceL3Port(id model.ServiceIdentifier) (string, error)

func (*MockPortMapper) GetUsedL3Ports

func (m *MockPortMapper) GetUsedL3Ports() ([]string, error)

func (*MockPortMapper) MapService

func (m *MockPortMapper) MapService(svc *corev1.Service) error

func (*MockPortMapper) SetAvailableL3Ports

func (m *MockPortMapper) SetAvailableL3Ports(portIDs []string) ([]model.ServiceIdentifier, error)

func (*MockPortMapper) UnmapService

func (m *MockPortMapper) UnmapService(id model.ServiceIdentifier) error

Jump to

Keyboard shortcuts

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